Start Workflow programmatically
@Reference
WorkflowService wfService;
...
WorkflowSession wfSession = wfService.getWorkflowSession(jcrSession);
WorkflowModel model = wfSession.getModel("/etc/workflow/models/x/jcr:content/model");
WorkflowData data = wfSession.newWorkflowData("JCR_PATH", payloadPath);
Workflow workflow = wfSession.startWorkflow(model, data);
No comments:
Post a Comment