Search in sources :

Example 6 with TaskOutputJqAssignmentAction

use of io.automatiko.engine.workflow.base.instance.impl.jq.TaskOutputJqAssignmentAction 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;
}
Also used : Assignment(io.automatiko.engine.workflow.process.core.node.Assignment) DataAssociation(io.automatiko.engine.workflow.process.core.node.DataAssociation) TaskOutputJqAssignmentAction(io.automatiko.engine.workflow.base.instance.impl.jq.TaskOutputJqAssignmentAction)

Aggregations

TaskOutputJqAssignmentAction (io.automatiko.engine.workflow.base.instance.impl.jq.TaskOutputJqAssignmentAction)6 DataAssociation (io.automatiko.engine.workflow.process.core.node.DataAssociation)6 Assignment (io.automatiko.engine.workflow.process.core.node.Assignment)5 BooleanLiteralExpr (com.github.javaparser.ast.expr.BooleanLiteralExpr)2 NullLiteralExpr (com.github.javaparser.ast.expr.NullLiteralExpr)2 StringLiteralExpr (com.github.javaparser.ast.expr.StringLiteralExpr)2 EventTypeFilter (io.automatiko.engine.workflow.base.core.event.EventTypeFilter)2 TaskInputJqAssignmentAction (io.automatiko.engine.workflow.base.instance.impl.jq.TaskInputJqAssignmentAction)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 Expression (com.github.javaparser.ast.expr.Expression)1 IntegerLiteralExpr (com.github.javaparser.ast.expr.IntegerLiteralExpr)1 LongLiteralExpr (com.github.javaparser.ast.expr.LongLiteralExpr)1 WorkflowProcess (io.automatiko.engine.api.definition.process.WorkflowProcess)1 Work (io.automatiko.engine.workflow.base.core.Work)1 JsonNodeDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.JsonNodeDataType)1 ParameterDefinitionImpl (io.automatiko.engine.workflow.base.core.impl.ParameterDefinitionImpl)1 WorkImpl (io.automatiko.engine.workflow.base.core.impl.WorkImpl)1 Timer (io.automatiko.engine.workflow.base.core.timer.Timer)1 BoundaryEventNode (io.automatiko.engine.workflow.process.core.node.BoundaryEventNode)1 EventNode (io.automatiko.engine.workflow.process.core.node.EventNode)1