/**
* Parses a receive task.
*/
public ActivityImpl parseReceiveTask(Element receiveTaskElement, ScopeImpl scope) {
ActivityImpl activity = createActivityOnScope(receiveTaskElement, scope);
activity.setActivityBehavior(new ReceiveTaskActivityBehavior());
parseAsynchronousContinuation(receiveTaskElement, activity);
parseExecutionListenersOnScope(receiveTaskElement, activity);