/** Configures the common action parts. */ public void readAction(Element actionElement, Action action) { // if a name is specified for this action String actionName = actionElement.attributeValue("name"); if (actionName != null) { action.setName(actionName); // add the action to the named process action repository processDefinition.addAction(action); } String acceptPropagatedEvents = actionElement.attributeValue("accept-propagated-events"); action.setPropagationAllowed(readBoolean(acceptPropagatedEvents, true)); String asyncText = actionElement.attributeValue("async"); if ("exclusive".equalsIgnoreCase(asyncText)) { action.setAsyncExclusive(true); } else if (readBoolean(asyncText, false)) { action.setAsync(true); } }
/** Configures the common action parts. */ public void readAction(Element actionElement, Action action) { // if a name is specified for this action String actionName = actionElement.attributeValue("name"); if (actionName != null) { action.setName(actionName); // add the action to the named process action repository processDefinition.addAction(action); } String acceptPropagatedEvents = actionElement.attributeValue("accept-propagated-events"); action.setPropagationAllowed(readBoolean(acceptPropagatedEvents, true)); String asyncText = actionElement.attributeValue("async"); if ("exclusive".equalsIgnoreCase(asyncText)) { action.setAsyncExclusive(true); } else if (readBoolean(asyncText, false)) { action.setAsync(true); } }