<sequenceFlow>
<conditionExpression xsi:type="tFormalExpression">
${beanClass.beanMethod() == 'foo'}
</conditionExpression>
</sequenceFlow>
Can we access current process info(processInstanceId, processDefinitionId, etc...) in the bean method; just like we can in the service tasks with the DelegateExecution class.
HistoricTaskInstance task = historyService.createHistoricTaskInstanceQuery().processInstanceId(execution.getProcessInstanceId()).orderByHistoricTaskInstanceEndTime().desc().singleResult();
String assignee = task.getAssignee();