use of org.jbpm.process.core.impl.WorkImpl in project jbpm by kiegroup.
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 org.jbpm.process.core.impl.WorkImpl in project jbpm by kiegroup.
the class HumanTaskNodeFactory method priority.
public HumanTaskNodeFactory priority(String priority) {
Work work = getHumanTaskNode().getWork();
if (work == null) {
work = new WorkImpl();
getHumanTaskNode().setWork(work);
}
work.setParameter("Priority", priority);
return this;
}
use of org.jbpm.process.core.impl.WorkImpl in project jbpm by kiegroup.
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("Content", content);
return this;
}
use of org.jbpm.process.core.impl.WorkImpl in project jbpm by kiegroup.
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("TaskName", taskName);
return this;
}
use of org.jbpm.process.core.impl.WorkImpl in project jbpm by kiegroup.
the class HumanTaskNodeFactory method skippable.
public HumanTaskNodeFactory skippable(boolean skippable) {
Work work = getHumanTaskNode().getWork();
if (work == null) {
work = new WorkImpl();
getHumanTaskNode().setWork(work);
}
work.setParameter("Skippable", Boolean.toString(skippable));
return this;
}
Aggregations