public override void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity) { Element connectorDefinition = findCamundaExtensionElement(serviceTaskElement, "connector"); if (connectorDefinition != null) { Element connectorIdElement = connectorDefinition.element("connectorId"); string connectorId = null; if (connectorIdElement != null) { connectorId = connectorIdElement.Text.Trim(); } if (connectorIdElement == null || connectorId.Length == 0) { throw new BpmnParseException("No 'id' defined for connector.", connectorDefinition); } IoMapping ioMapping = parseInputOutput(connectorDefinition); activity.ActivityBehavior = new ServiceTaskConnectorActivityBehavior(connectorId, ioMapping); } }
public ServiceTaskConnectorActivityBehavior(string connectorId, IoMapping ioMapping) { this.connectorId = connectorId; this.ioMapping = ioMapping; }