use of org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior in project Activiti by Activiti.
the class AddListenerUserTaskParseHandler method executeParse.
protected void executeParse(BpmnParse bpmnParse, UserTask userTask) {
super.executeParse(bpmnParse, userTask);
ScopeImpl scope = bpmnParse.getCurrentScope();
ProcessDefinitionImpl processDefinition = scope.getProcessDefinition();
ActivityImpl activity = processDefinition.findActivity(userTask.getId());
SimulatorParserUtils.setSimulationBehavior(scope, userTask);
UserTaskActivityBehavior userTaskActivity = (UserTaskActivityBehavior) activity.getActivityBehavior();
userTaskActivity.getTaskDefinition().addTaskListener(eventName, taskListener);
}
Aggregations