ProcessInstance pi = executionContext.getContextInstance().getProcessInstance(); log.debug("process instance id" + pi.getId()); …… }