February 2019
Intermediate to advanced
446 pages
10h 55m
English
So far, we have defined the task and workflow blueprints. We need to trigger and execute the workflow that creates the instance of the defined workflow blueprint. A workflow can be triggered using the workflowClient bean we created earlier. We passed the Event object, which is a model/VO:
startWorkflow() method's argument:Map<String, Object> inputParamMap = new HashMap<>();inputParamMap.put(Constants.EVENT, event);StartWorkflowRequest req = new StartWorkflowRequest();req.setName(Constants.EVENT_WF);req.setVersion(1);req.setCorrelationId(event.getUserID());req.setInput(inputParamMap);wfClient.startWorkflow(req);
Here, we have set the following properties in StartWorkflowRequest, which is passed to start ...
Read now
Unlock full access