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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations