public void addOutMapping(String parameterName, String variableName, Transformation transformation) { outMapping.add(new DataAssociation(parameterName, variableName, null, transformation)); }
public void addInMapping(String parameterName, String variableName) { inMapping.add(new DataAssociation(variableName, parameterName, null, null)); }
public void addOutMapping(String parameterName, String variableName) { outMapping.add(new DataAssociation(parameterName, variableName, null, null)); }
public void addInMapping(String subVariableName, String variableName) { inMapping.add(new DataAssociation(subVariableName, variableName, null, null)); }
public void addInMapping(String parameterName, String variableName) { inMapping.add(new DataAssociation(variableName, parameterName, null, null)); }
public void addOutMapping(String parameterName, String variableName) { outMapping.add(new DataAssociation(parameterName, variableName, null, null)); }
public void addInMapping(String parameterName, String variableName) { inMapping.add(new DataAssociation(variableName, parameterName, null, null)); }
public void addInMapping(String parameterName, String variableName, Transformation transformation) { inMapping.add(new DataAssociation(variableName, parameterName, null, transformation)); }
public void addOutMapping(String parameterName, String variableName) { outMapping.add(new DataAssociation(parameterName, variableName, null, null)); }
public void addOutMapping(String parameterName, String variableName) { outMapping.add(new DataAssociation(parameterName, variableName, null, null)); }
subNode = subNode.getNextSibling(); ruleSetNode.addOutAssociation(new DataAssociation(dataOutputs.get(source), target, assignments, transformation));
subNode = subNode.getNextSibling(); workItemNode.addOutAssociation(new DataAssociation(dataOutputs.get(source), target, assignments, transformation));
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)); } }
subNode = subNode.getNextSibling(); ruleSetNode.addInAssociation(new DataAssociation( source, dataInputs.get(target), assignments, transformation));
workItemNode.addInAssociation(new DataAssociation( source, dataInputs.get(target), assignments, transformation));
workItemNode.addInAssociation(new DataAssociation(entry.getValue(), "Data_" + entry.getKey(), Collections.emptyList(), null)); workItemNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null));
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); String decisionRef = element.getAttribute("decisionRef"); if (decisionRef == null) { throw new IllegalArgumentException("Decision information is mandatory"); } RuleSetNode ruleSetNode = (RuleSetNode) node; ruleSetNode.setRuleFlowGroup(decisionRef); ruleSetNode.setLanguage(RuleSetNode.DRL_LANG); ruleSetNode.setNamespace((String) ruleSetNode.removeParameter(NAMESPACE_PROP)); ruleSetNode.setModel((String) ruleSetNode.removeParameter(MODEL_PROP)); ruleSetNode.setDecision((String) ruleSetNode.removeParameter(DECISION_PROP)); 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); ruleSetNode.setMetaData("DataInputs", inputTypes); ruleSetNode.setMetaData("DataOutputs", outputTypes); for (Entry<String, String> entry : inputs.entrySet()) { ruleSetNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null)); } for (Entry<String, String> entry : outputs.entrySet()) { ruleSetNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null)); } }
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); HumanTaskNode humanTaskNode = (HumanTaskNode) node; Work work = humanTaskNode.getWork(); work.setName("Human Task"); String performerRef = element.getAttribute("performerRef"); if (performerRef != null) { humanTaskNode.getWork().setParameter("ActorId", performerRef); } 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); humanTaskNode.setMetaData("DataInputs", inputTypes); humanTaskNode.setMetaData("DataOutputs", outputTypes); humanTaskNode.getWork().setParameter("NodeName", humanTaskNode.getName()); humanTaskNode.getWork().setParameter("TaskName", humanTaskNode.getName().replaceAll("\\s", "")); for (Entry<String, String> entry : inputs.entrySet()) { humanTaskNode.addInAssociation(new DataAssociation(entry.getValue(), entry.getKey(), Collections.emptyList(), null)); } for (Entry<String, String> entry : outputs.entrySet()) { humanTaskNode.addOutAssociation(new DataAssociation(entry.getKey(), entry.getValue(), Collections.emptyList(), null)); } }
public void addInMapping(String parameterName, String variableName) { inMapping.add(new DataAssociation(variableName, parameterName, null, null)); }
public void addInMapping(String parameterName, String variableName) { inMapping.add(new DataAssociation(variableName, parameterName, null, null)); }