assertThat(decisionTask.getOutAssociations()).hasSize(0);
assertThat(decisionTask.getInAssociations().get(0).getTarget()).isEqualTo("toApprove"); assertThat(decisionTask.getOutAssociations()).hasSize(1); assertThat(decisionTask.getOutAssociations().get(0).getSources()).hasSize(1); assertThat(decisionTask.getOutAssociations().get(0).getSources().get(0)).isEqualTo("decided"); assertThat(decisionTask.getOutAssociations().get(0).getTarget()).isEqualTo("caseFile_invoice");
private void processOutputs(Map<String, Object> objects) { RuleSetNode ruleSetNode = getRuleSetNode(); if (ruleSetNode != null) { for (Iterator<DataAssociation> iterator = ruleSetNode.getOutAssociations().iterator(); iterator.hasNext(); ) { DataAssociation association = iterator.next(); if (association.getTransformation() != null) {
@Override public void build(Process process, ProcessDescr processDescr, ProcessBuildContext context, Node node) { super.build(process, processDescr, context, node); WorkflowProcess wfProcess = (WorkflowProcess) process; Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("imports", wfProcess.getImports()); parameters.put("classloader", context.getConfiguration().getClassLoader()); for (DataAssociation dataAssociation: ((RuleSetNode) node).getInAssociations()) { Transformation transformation = dataAssociation.getTransformation(); if (transformation != null) { DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage()); transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters)); } } for (DataAssociation dataAssociation: ((RuleSetNode) node).getOutAssociations()) { Transformation transformation = dataAssociation.getTransformation(); if (transformation != null) { DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage()); transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters)); } } }
assertThat(decisionTask.getOutAssociations()).hasSize(0);
private void processOutputs(Map<String, Object> objects) { RuleSetNode ruleSetNode = getRuleSetNode(); if (ruleSetNode != null) { for (Iterator<DataAssociation> iterator = ruleSetNode.getOutAssociations().iterator(); iterator.hasNext(); ) { DataAssociation association = iterator.next(); if (association.getTransformation() != null) {
assertThat(decisionTask.getInAssociations().get(0).getTarget()).isEqualTo("toApprove"); assertThat(decisionTask.getOutAssociations()).hasSize(1); assertThat(decisionTask.getOutAssociations().get(0).getSources()).hasSize(1); assertThat(decisionTask.getOutAssociations().get(0).getSources().get(0)).isEqualTo("decided"); assertThat(decisionTask.getOutAssociations().get(0).getTarget()).isEqualTo("caseFile_invoice");
@Override public void build(Process process, ProcessDescr processDescr, ProcessBuildContext context, Node node) { super.build(process, processDescr, context, node); WorkflowProcess wfProcess = (WorkflowProcess) process; Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("imports", wfProcess.getImports()); parameters.put("classloader", context.getConfiguration().getClassLoader()); for (DataAssociation dataAssociation: ((RuleSetNode) node).getInAssociations()) { Transformation transformation = dataAssociation.getTransformation(); if (transformation != null) { DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage()); transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters)); } } for (DataAssociation dataAssociation: ((RuleSetNode) node).getOutAssociations()) { Transformation transformation = dataAssociation.getTransformation(); if (transformation != null) { DataTransformer transformer = DataTransformerRegistry.get().find(transformation.getLanguage()); transformation.setCompiledExpression(transformer.compile(transformation.getExpression(), parameters)); } } }