Package org.alfresco.repo.workflow
Class TaskUpdater
java.lang.Object
org.alfresco.repo.workflow.TaskUpdater
A helper class for updating and transitioning
WorkflowTasks. 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
ConstructorsConstructorDescriptionTaskUpdater(String taskId, WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociation(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) transition(String transitionId) update()
-
Constructor Details
-
TaskUpdater
public TaskUpdater(String taskId, WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter)
-
-
Method Details
-
addProperty
-
addAssociation
-
removeAssociation
-
changeAssociation
-
addPackageItems
-
removePackageItems
-
transition
-
transition
-
update
-