}
public boolean updateSubprocess(final ProcessInstance parentPi, String executionId, ProcessToolContext ctx) {
ProcessEngine engine = getProcessEngine(ctx);
ExecutionService executionService = engine.getExecutionService();
Execution jbpmPi = executionService.findExecutionById(executionId);
if(jbpmPi != null){
Execution subprocess = jbpmPi.getSubProcessInstance();
if(subprocess != null){
ctx.getHibernateSession().refresh(subprocess);