public class TaskUpdater extends Object
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.| Constructor and Description |
|---|
TaskUpdater(String taskId,
WorkflowService workflowService,
NodeService nodeService,
BehaviourFilter behaviourFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociation(QName name,
List<NodeRef> value) |
void |
addPackageItems(List<NodeRef> items) |
void |
addProperty(QName name,
Serializable value) |
boolean |
changeAssociation(QName name,
String nodeRefs,
boolean isAdd) |
void |
removeAssociation(QName name,
List<NodeRef> value) |
void |
removePackageItems(List<NodeRef> items) |
WorkflowTask |
transition() |
WorkflowTask |
transition(String transitionId) |
WorkflowTask |
update() |
public TaskUpdater(String taskId, WorkflowService workflowService, NodeService nodeService, BehaviourFilter behaviourFilter)
public void addProperty(QName name, Serializable value)
public WorkflowTask transition()
public WorkflowTask transition(String transitionId)
public WorkflowTask update()
Copyright © 2005–2021 Alfresco Software. All rights reserved.