10-04-2010 03:37 AM
Execution ex = processEngine.getRuntimeService()
.createExecutionQuery()
.executionId(task.getExecutionId())
.singleResult();
PvmActivity activity = ((ExecutionEntity) ex).getActivity(); // is null
String actId = ((ExecutionEntity) ex).getActivityId(); // is not null
10-04-2010 04:46 AM
Execution ex = m_processEngine.getRuntimeService()
.createExecutionQuery()
.executionId(task.getExecutionId())
.singleResult();
String actId = ((ExecutionEntity) ex).getActivityId();
ProcessDefinitionImpl p = ((ExecutionEntity) m_processInstance)
.getActivity()
.getProcessDefinition();
PvmActivity activity = p.findActivity(actId);
Ok, it may not look extremly elegant, but it works. 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.