03-27-2013 03:42 PM
03-28-2013 05:25 AM
/**
* Returns the {@link BpmnModel} corresponding with the process definition with
* the provided process definition id. The {@link BpmnModel} is a pojo versions
* of the BPMN 2.0 xml and can be used to introspect the process definition
* using regular Java.
*/
BpmnModel getBpmnModel(String processDefinitionId);
public ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId) {
return commandExecutor.execute(new GetDeploymentProcessDefinitionCmd(processDefinitionId));
}
03-29-2013 06:25 AM
rt = getProcessEngine().getRuntimeService();
Execution parentExec = rt.createProcessInstanceQuery().variableValueEquals(variableName, variableValue).singleResult();
RepositoryServiceImpl repoServiceImpl = (RepositoryServiceImpl) getProcessEngine().getRepositoryService();
for (Execution e : rt.createExecutionQuery().processInstanceId(parentExec.getProcessInstanceId()).list()) {
ExecutionEntity ee = (ExecutionEntity) e;
ReadOnlyProcessDefinition processDef = repoServiceImpl.getDeployedProcessDefinition(ee.getProcessDefinitionId());
PvmActivity activity = processDef.findActivity(ee.getActivityId());
List<org.activiti.engine.impl.pvm.PvmTransition> transitions = activity.getOutgoingTransitions();
}
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.