03-04-2015 03:52 AM
public void notify(DelegateExecution process) {
String parentId = process.getParentId();//returuns null
ProcessInstance parent = process.getEngineServices().getRuntimeService().createProcessInstanceQuery()
.processInstanceId(parentId).singleResult();
System.out.println(parent.getBusinessKey());
}
public void notify(DelegateExecution process) {
String parentId = ((ExecutionEntity)process).getSuperExecution().getProcessInstanceId();
ProcessInstance parent = process.getEngineServices().getRuntimeService().createProcessInstanceQuery()
.processInstanceId(parentId).singleResult();//returns null
System.out.println(parent.getBusinessKey());
}
public void notify(DelegateExecution process) {
ExecutionEntity parent = ((ExecutionEntity)process).getSuperExecution();
System.out.println(parent.getBusinessKey());//success
}
03-04-2015 10:12 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.