public ActivityImpl parseScriptTask ( Element scriptTaskElement , ScopeImpl scope ) { ActivityImpl activity = createActivityOnScope ( scriptTaskElement , scope ) ; ScriptTaskActivityBehavior activityBehavior = parseScriptTaskElement ( scriptTaskElement ) ; if ( activityBehavior != null ) { parseAsynchronousContinuationForActivity ( scriptTaskElement , activity ) ; activity . setActivityBehavior ( activityBehavior ) ; parseExecutionListenersOnScope ( scriptTaskElement , activity ) ; for ( BpmnParseListener parseListener : parseListeners ) { parseListener . parseScriptTask ( scriptTaskElement , scope , activity ) ; } } return activity ; }
Parses a scriptTask declaration .