AEM trigger workflow from Java - Create translation project
Triggering workflow from Java and automate the process to create translation project using workflow. Code snippet import com.day.cq.workflow.model.WorkflowModel; import com.day.cq.workflow.WorkflowService; @Reference private WorkflowService workflowService ; WorkflowSession wfSession = workflowService .getWorkflowSession( session ); // We can have any workflow model here - For creating language copy I am using create_language_copy workflow. String workflowName = "/var/workflow/models/wcm-translation/create_language_copy" ; / / Get the workflow model WorkflowModel wfModel = wfSession .getModel( workflowName ); String languageEnMasterPath = "master page path"; // Get the workflow data // Workflow Data - Provide the master language page path from where the language copy to be created WorkflowData wfData = wfSession .newWorkflowData( "JCR_PATH" , languageEnMasterPath ); // Add meta data values final Ma...