01-08-2011 06:50 PM
Execution execution = processEngine.getRuntimeService().findExecutionById(executionId);
processEngine.getRepositoryService().createDeployment().addClasspathResource("processes/si_gateway_example.bpmn20.xml").deploy();
Map<String, Object> vars = new HashMap<String, Object>();
vars.put("abc", 232);
processEngine.getRuntimeService().startProcessInstanceByKey("testProcess", vars);
01-08-2011 07:00 PM
Execution execution = runtimeService.createExecutionQuery()
.executionId(id).singleResult();
01-09-2011 04:49 PM
Execution execution = processService.createExecutionQuery().executionId(executionId).singleResult();
List<Execution> listExec = processService.createExecutionQuery().list();
logger.info("List size is " + listExec.size());
for (Execution execution2 : listExec) {
logger.info("Instance id is " + execution2.getProcessInstanceId());
logger.info("execution instance is " + execution2);
}
logger.info("Execution instance " + execution);
01-10-2011 04:11 AM
01-10-2011 06:49 AM
List<HistoricProcessInstance> listProcessInstance = processEngine.getHistoryService().createHistoricProcessInstanceQuery().list();
for (HistoricProcessInstance historicProcessInstance : listProcessInstance) {
logger.info("Historic Instance id is " + historicProcessInstance.getId());
logger.info("Historic Business id is " + historicProcessInstance.getBusinessKey());
logger.info("Historic Business Def id is " + historicProcessInstance.getProcessDefinitionId());
logger.info("Historic Start time is " + historicProcessInstance.getStartTime());
logger.info("Historic End time is " + historicProcessInstance.getEndTime());
logger.info("Historic End time is " + historicProcessInstance.getEndTime());
}
processEngine.getRepositoryService().createDeployment().addClasspathResource("processes/si_gateway_example.bpmn20.xml").deploy(); processEngine.getRuntimeService().startProcessInstanceByKey("sigatewayProcess", vars);
01-10-2011 07:27 AM
01-10-2011 07:42 AM
01-10-2011 09:29 AM
<serviceTask id="sigw" name="Spring Integration Gateway" activiti:expression="#{gateway}"/>
<!– Activiti sends a message 'to' (inbound) Spring Integration 'from' Activiti –>
<activiti:inbound-gateway
process-engine="processEngine"
request-channel="request"
async="true"
reply-channel="response"
forward-process-variables-as-message-headers="true"
update-process-variables-from-reply-message-headers="true"
id="gateway"
/>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.