public ActivityImpl parseTask(Element taskElement, ScopeImpl scope) {
    ActivityImpl activity = createActivityOnScope(taskElement, scope);
    activity.setActivityBehavior(new TaskActivityBehavior());

    parseAsynchronousContinuationForActivity(taskElement, activity);

    parseExecutionListenersOnScope(taskElement, activity);

    for (BpmnParseListener parseListener : parseListeners) {
      parseListener.parseTask(taskElement, scope, activity);
    }
//    createMessageJobDeclForAsyncActivity(activity, true);
    return activity;
  }
public ActivityImpl parseTask ( Element taskElement , ScopeImpl scope ) { ActivityImpl activity = createActivityOnScope ( taskElement , scope ) ; activity . setActivityBehavior ( new TaskActivityBehavior ( ) ) ; parseAsynchronousContinuationForActivity ( taskElement , activity ) ; parseExecutionListenersOnScope ( taskElement , activity ) ; for ( BpmnParseListener parseListener : parseListeners ) { parseListener . parseTask ( taskElement , scope , activity ) ; } return activity ; }
Parses a task with no specific type (behaves as passthrough).