Package org.alfresco.repo.workflow
Class TaskUpdater
- java.lang.Object
-
- org.alfresco.repo.workflow.TaskUpdater
-
public class TaskUpdater extends Object
A helper class for updating and transitioningWorkflowTasks. This is a stateful object that accumulates a set of updates to a task and then commits all the updates when either the update() or transition() method is called.- Since:
- 3.4
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description TaskUpdater(String taskId, WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAssociation(QName name, List<NodeRef> value)voidaddPackageItems(List<NodeRef> items)voidaddProperty(QName name, Serializable value)booleanchangeAssociation(QName name, String nodeRefs, boolean isAdd)voidremoveAssociation(QName name, List<NodeRef> value)voidremovePackageItems(List<NodeRef> items)WorkflowTasktransition()WorkflowTasktransition(String transitionId)WorkflowTaskupdate()
-
-
-
Constructor Detail
-
TaskUpdater
public TaskUpdater(String taskId, WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter)
-
-
Method Detail
-
addProperty
public void addProperty(QName name, Serializable value)
-
transition
public WorkflowTask transition()
-
transition
public WorkflowTask transition(String transitionId)
-
update
public WorkflowTask update()
-
-