05-01-2012 08:37 AM
ProcessInstance pi = (ProcessInstance) rus.createProcessInstanceQuery().processInstanceId(job.getProcessInstanceId()).singleResult();
ExecutionEntity e = (ExecutionEntity) rus.createExecutionQuery().executionId(job.getExecutionId()).singleResult();
ProcessDefinitionEntity pd = (ProcessDefinitionEntity) rs.createProcessDefinitionQuery().processDefinitionId(e.getProcessDefinitionId()).singleResult();
Node node = XMLUtils.inputStreamToNode(rs.getResourceAsStream(pd.getDeploymentId(), pd.getResourceName()));
String name = XMLUtils.getString(node, "//*[@id=\""+e.getActivityId()+"\"]/@name");
05-02-2012 03:39 AM
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.