use of io.automatiko.engine.workflow.process.core.node.DataAssociation in project automatiko-engine by automatiko-io.
the class CompositeContextNodeFactory method inMappingWithJqAssignment.
public CompositeContextNodeFactory inMappingWithJqAssignment(String stateDataFilter) {
Assignment inputAssignment = new Assignment("jq", "", "");
inputAssignment.setMetaData("Action", new InputJqAssignmentAction(stateDataFilter));
getCompositeNode().addInAssociation(new DataAssociation(Collections.emptyList(), "", Arrays.asList(inputAssignment), null));
return this;
}
use of io.automatiko.engine.workflow.process.core.node.DataAssociation in project automatiko-engine by automatiko-io.
the class MappableNodeFactory method outMappingWithJqAssignment.
default MappableNodeFactory outMappingWithJqAssignment(String outputExpression, String scopeExpression, boolean ignoreScopeExpression) {
Assignment outAssignment = new Assignment("jq", null, null);
outAssignment.setMetaData("Action", new TaskOutputJqAssignmentAction(outputExpression, scopeExpression, ignoreScopeExpression));
getMappableNode().addOutAssociation(new DataAssociation(Collections.emptyList(), "", Arrays.asList(outAssignment), null));
return this;
}
use of io.automatiko.engine.workflow.process.core.node.DataAssociation in project automatiko-engine by automatiko-io.
the class StartNodeFactory method outMapping.
public StartNodeFactory outMapping(String source, String target, String assignmentDialect, String assignmentFrom, String assignmentTo) {
List<Assignment> assignments = null;
if (assignmentFrom != null && assignmentTo != null) {
assignments = Arrays.asList(new Assignment(assignmentDialect, assignmentFrom, assignmentTo));
}
DataAssociation dataAssociation = new DataAssociation(source, target, assignments, null);
getStartNode().addOutAssociation(dataAssociation);
return this;
}
Aggregations