Class JbpmServiceBuilder
java.lang.Object
com.skava.accounts.workflow.config.JbpmServiceBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWorkflowProcessId
(String jbpmWorkflow) This method is used to fetch the processId from bpmn content.void
init()
jbpmProcess
(String jbpmWorkflow, AccountWorkflowRuleRequest workflowCartRequest) This method is used to start the jbpm.startBpmnProcess
(org.kie.api.runtime.KieSession ksession, Map<String, Object> parameters, String processId) This method is used to start the process.startProcess
(Map<String, Object> workItem, String bpmnContent) This method is used to start the process.
-
Constructor Details
-
JbpmServiceBuilder
public JbpmServiceBuilder()
-
-
Method Details
-
init
@PostConstruct public void init() -
jbpmProcess
public WorkflowOutputModel jbpmProcess(String jbpmWorkflow, AccountWorkflowRuleRequest workflowCartRequest) This method is used to start the jbpm.- Parameters:
jbpmWorkflow
-workflowCartRequest
-- Returns:
-
getWorkflowProcessId
This method is used to fetch the processId from bpmn content.- Parameters:
jbpmWorkflow
-- Returns:
- processId
-
startProcess
This method is used to start the process.- Parameters:
workItem
-bpmnContent
-- Returns:
- output
-
startBpmnProcess
public WorkflowOutputModel startBpmnProcess(org.kie.api.runtime.KieSession ksession, Map<String, Object> parameters, String processId) This method is used to start the process.- Parameters:
ksession
-parameters
-processId
-- Returns:
- processResponse
-