Search in sources :

Example 11 with WorkImpl

use of io.automatiko.engine.workflow.base.core.impl.WorkImpl in project automatiko-engine by automatiko-io.

the class WorkItemNodeFactory method workParameter.

public WorkItemNodeFactory workParameter(String name, Object value) {
    Work work = getWorkItemNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getWorkItemNode().setWork(work);
    }
    work.setParameter(name, value);
    return this;
}
Also used : Work(io.automatiko.engine.workflow.base.core.Work) WorkImpl(io.automatiko.engine.workflow.base.core.impl.WorkImpl)

Example 12 with WorkImpl

use of io.automatiko.engine.workflow.base.core.impl.WorkImpl in project automatiko-engine by automatiko-io.

the class WorkItemNodeFactory method workParameterDefinition.

public WorkItemNodeFactory workParameterDefinition(String name, DataType dataType) {
    Work work = getWorkItemNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getWorkItemNode().setWork(work);
    }
    Set<ParameterDefinition> parameterDefinitions = work.getParameterDefinitions();
    parameterDefinitions.add(new ParameterDefinitionImpl(name, dataType));
    work.setParameterDefinitions(parameterDefinitions);
    return this;
}
Also used : Work(io.automatiko.engine.workflow.base.core.Work) WorkImpl(io.automatiko.engine.workflow.base.core.impl.WorkImpl) ParameterDefinitionImpl(io.automatiko.engine.workflow.base.core.impl.ParameterDefinitionImpl) ParameterDefinition(io.automatiko.engine.workflow.base.core.ParameterDefinition)

Example 13 with WorkImpl

use of io.automatiko.engine.workflow.base.core.impl.WorkImpl in project automatiko-engine by automatiko-io.

the class HumanTaskNodeFactory method comment.

public HumanTaskNodeFactory comment(String comment) {
    Work work = getHumanTaskNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
    }
    work.setParameter(WORK_COMMENT, comment);
    return this;
}
Also used : Work(io.automatiko.engine.workflow.base.core.Work) WorkImpl(io.automatiko.engine.workflow.base.core.impl.WorkImpl)

Example 14 with WorkImpl

use of io.automatiko.engine.workflow.base.core.impl.WorkImpl in project automatiko-engine by automatiko-io.

the class HumanTaskNodeFactory method taskName.

public HumanTaskNodeFactory taskName(String taskName) {
    Work work = getHumanTaskNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
    }
    work.setParameter(WORK_TASK_NAME, taskName);
    return this;
}
Also used : Work(io.automatiko.engine.workflow.base.core.Work) WorkImpl(io.automatiko.engine.workflow.base.core.impl.WorkImpl)

Example 15 with WorkImpl

use of io.automatiko.engine.workflow.base.core.impl.WorkImpl in project automatiko-engine by automatiko-io.

the class HumanTaskNodeFactory method actorId.

public HumanTaskNodeFactory actorId(String actorId) {
    Work work = getHumanTaskNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
    }
    work.setParameter(WORK_ACTOR_ID, actorId);
    return this;
}
Also used : Work(io.automatiko.engine.workflow.base.core.Work) WorkImpl(io.automatiko.engine.workflow.base.core.impl.WorkImpl)

Aggregations

WorkImpl (io.automatiko.engine.workflow.base.core.impl.WorkImpl)17 Work (io.automatiko.engine.workflow.base.core.Work)16 WorkItemNode (io.automatiko.engine.workflow.process.core.node.WorkItemNode)5 ParameterDefinition (io.automatiko.engine.workflow.base.core.ParameterDefinition)4 ParameterDefinitionImpl (io.automatiko.engine.workflow.base.core.impl.ParameterDefinitionImpl)4 ObjectDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.ObjectDataType)2 ArrayList (java.util.ArrayList)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 Variable (io.automatiko.engine.workflow.base.core.context.variable.Variable)1 IntegerDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.IntegerDataType)1 JsonNodeDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.JsonNodeDataType)1 StringDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.StringDataType)1 TaskInputJqAssignmentAction (io.automatiko.engine.workflow.base.instance.impl.jq.TaskInputJqAssignmentAction)1 TaskOutputJqAssignmentAction (io.automatiko.engine.workflow.base.instance.impl.jq.TaskOutputJqAssignmentAction)1 ItemDefinition (io.automatiko.engine.workflow.bpmn2.core.ItemDefinition)1 ProcessBuildData (io.automatiko.engine.workflow.compiler.xml.ProcessBuildData)1 Assignment (io.automatiko.engine.workflow.process.core.node.Assignment)1 DataAssociation (io.automatiko.engine.workflow.process.core.node.DataAssociation)1 EndNode (io.automatiko.engine.workflow.process.core.node.EndNode)1 HumanTaskNode (io.automatiko.engine.workflow.process.core.node.HumanTaskNode)1