Search in sources :

Example 16 with WorkImpl

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

the class HumanTaskNodeFactory method content.

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

Example 17 with WorkImpl

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

the class HumanTaskNodeFactory method groupId.

public HumanTaskNodeFactory groupId(String groupId) {
    Work work = getHumanTaskNode().getWork();
    if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
    }
    work.setParameter(WORK_GROUP_ID, groupId);
    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