// IoMappings ////////////////////////////////////////////////////////
protected void parseActivityInputOutput(Element activityElement, ActivityImpl activity) {
Element extensionElements = activityElement.element("extensionElements");
if(extensionElements != null) {
IoMapping inputOutput = parseInputOutput(extensionElements);
if(inputOutput != null) {
if(checkActivityInputOutputSupported(activityElement)) {
if (activity.getActivityBehavior() instanceof MultiInstanceActivityBehavior) {
if (!inputOutput.getOutputParameters().isEmpty()) {
addError("Output parameters not allowed for multi-instance constructs", activityElement);
}
MultiInstanceActivityBehavior behavior = (MultiInstanceActivityBehavior) activity.getActivityBehavior();
behavior.setIoMapping(inputOutput);