public ActivityImpl parseUserTask ( Element userTaskElement , ScopeImpl scope ) { ActivityImpl activity = createActivityOnScope ( userTaskElement , scope ) ; parseAsynchronousContinuationForActivity ( userTaskElement , activity ) ; TaskDefinition taskDefinition = parseTaskDefinition ( userTaskElement , activity . getId ( ) , ( ProcessDefinitionEntity ) scope . getProcessDefinition ( ) ) ; TaskDecorator taskDecorator = new TaskDecorator ( taskDefinition , expressionManager ) ; UserTaskActivityBehavior userTaskActivity = new UserTaskActivityBehavior ( taskDecorator ) ; activity . setActivityBehavior ( userTaskActivity ) ; parseProperties ( userTaskElement , activity ) ; parseExecutionListenersOnScope ( userTaskElement , activity ) ; for ( BpmnParseListener parseListener : parseListeners ) { parseListener . parseUserTask ( userTaskElement , scope , activity ) ; } return activity ; }
Parses a userTask declaration .