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