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