Search in sources :

Example 21 with Work

use of io.automatiko.engine.workflow.base.core.Work 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 22 with Work

use of io.automatiko.engine.workflow.base.core.Work 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 23 with Work

use of io.automatiko.engine.workflow.base.core.Work 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)

Example 24 with Work

use of io.automatiko.engine.workflow.base.core.Work 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 25 with Work

use of io.automatiko.engine.workflow.base.core.Work 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

Work (io.automatiko.engine.workflow.base.core.Work)25 WorkImpl (io.automatiko.engine.workflow.base.core.impl.WorkImpl)16 WorkItemNode (io.automatiko.engine.workflow.process.core.node.WorkItemNode)10 ParameterDefinitionImpl (io.automatiko.engine.workflow.base.core.impl.ParameterDefinitionImpl)5 ParameterDefinition (io.automatiko.engine.workflow.base.core.ParameterDefinition)4 ArrayList (java.util.ArrayList)4 ObjectDataType (io.automatiko.engine.workflow.base.core.datatype.impl.type.ObjectDataType)3 EndNode (io.automatiko.engine.workflow.process.core.node.EndNode)3 HumanTaskNode (io.automatiko.engine.workflow.process.core.node.HumanTaskNode)3 StartNode (io.automatiko.engine.workflow.process.core.node.StartNode)3 LongLiteralExpr (com.github.javaparser.ast.expr.LongLiteralExpr)2 Node (io.automatiko.engine.api.definition.process.Node)2 EventTypeFilter (io.automatiko.engine.workflow.base.core.event.EventTypeFilter)2 ProcessBuildData (io.automatiko.engine.workflow.compiler.xml.ProcessBuildData)2 ActionNode (io.automatiko.engine.workflow.process.core.node.ActionNode)2 CompositeNode (io.automatiko.engine.workflow.process.core.node.CompositeNode)2 DataAssociation (io.automatiko.engine.workflow.process.core.node.DataAssociation)2 EventNode (io.automatiko.engine.workflow.process.core.node.EventNode)2 FaultNode (io.automatiko.engine.workflow.process.core.node.FaultNode)2 ForEachNode (io.automatiko.engine.workflow.process.core.node.ForEachNode)2