Community

How to Get Parent Process Id/Key in Subprocess

reply from HuiSheng Xu in jBPM - View the full discussion

Hi Apurv,

 

Unfortunately,  we cannot get super process from Execution interface.  If you need to get the super process defintion id, you have to cast execution to ExecutionImpl.

 

 

ExecutionImpl executionImpl = (ExecutionImpl) execution;

 

executionImpl.getSuperProcessExecution().getProcessDefinitionId()

Reply to this message by going to Community

Start a new discussion in jBPM at Community