public SubProcessNodeFactory independent(boolean independent) { getSubProcessNode().setIndependent(independent); return this; }
public void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); SubProcessNode subProcessNode = (SubProcessNode) node; String processId = element.getAttribute("processId"); if (processId != null && processId.length() > 0) { subProcessNode.setProcessId(processId); } String waitForCompletion = element.getAttribute("waitForCompletion"); subProcessNode.setWaitForCompletion(!"false".equals(waitForCompletion)); String independent = element.getAttribute("independent"); subProcessNode.setIndependent(!"false".equals(independent)); for (String eventType: subProcessNode.getActionTypes()) { handleAction(subProcessNode, element, eventType); } }
protected void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); SubProcessNode subProcessNode = (SubProcessNode) node; String processId = element.getAttribute("processRef"); String isBlocking = element.getAttribute("isBlocking"); if (isBlocking == null || isBlocking.isEmpty()) { isBlocking = "true"; } subProcessNode.setProcessId(processId); subProcessNode.setWaitForCompletion(Boolean.parseBoolean(isBlocking)); subProcessNode.setIndependent(false); Map<String, String> inputs = new HashMap<>(); Map<String, String> outputs = new HashMap<>(); Map<String, String> inputTypes = new HashMap<>(); Map<String, String> outputTypes = new HashMap<>(); loadDataInputsAndOutputs(element, inputs, outputs, inputTypes, outputTypes, parser); subProcessNode.setMetaData("DataInputs", inputTypes); subProcessNode.setMetaData("DataOutputs", outputTypes); subProcessNode.setMetaData("customAbortParent", "false"); for (Entry<String, String> entry : inputs.entrySet()) { subProcessNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null)); } for (Entry<String, String> entry : outputs.entrySet()) { subProcessNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null)); } }
subProcessNode.setIndependent(false);
subProcess.setProcessId("processId"); subProcess.setWaitForCompletion(false); subProcess.setIndependent(false); subProcess.addInMapping("subvar1", "var1"); subProcess.addOutMapping("subvar2", "var2");
public SubProcessNodeFactory independent(boolean independent) { getSubProcessNode().setIndependent(independent); return this; }
public void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); SubProcessNode subProcessNode = (SubProcessNode) node; String processId = element.getAttribute("processId"); if (processId != null && processId.length() > 0) { subProcessNode.setProcessId(processId); } String waitForCompletion = element.getAttribute("waitForCompletion"); subProcessNode.setWaitForCompletion(!"false".equals(waitForCompletion)); String independent = element.getAttribute("independent"); subProcessNode.setIndependent(!"false".equals(independent)); for (String eventType: subProcessNode.getActionTypes()) { handleAction(subProcessNode, element, eventType); } }
protected void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); SubProcessNode subProcessNode = (SubProcessNode) node; String processId = element.getAttribute("processRef"); String isBlocking = element.getAttribute("isBlocking"); if (isBlocking == null || isBlocking.isEmpty()) { isBlocking = "true"; } subProcessNode.setProcessId(processId); subProcessNode.setWaitForCompletion(Boolean.parseBoolean(isBlocking)); subProcessNode.setIndependent(false); Map<String, String> inputs = new HashMap<>(); Map<String, String> outputs = new HashMap<>(); Map<String, String> inputTypes = new HashMap<>(); Map<String, String> outputTypes = new HashMap<>(); loadDataInputsAndOutputs(element, inputs, outputs, inputTypes, outputTypes, parser); subProcessNode.setMetaData("DataInputs", inputTypes); subProcessNode.setMetaData("DataOutputs", outputTypes); subProcessNode.setMetaData("customAbortParent", "false"); for (Entry<String, String> entry : inputs.entrySet()) { subProcessNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null)); } for (Entry<String, String> entry : outputs.entrySet()) { subProcessNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null)); } }
subProcessNode.setIndependent(false);