org.alfresco.repo.workflow
Class WorkflowBuilder
java.lang.Object
org.alfresco.repo.workflow.WorkflowBuilder
public class WorkflowBuilder
- extends java.lang.Object
A helper class used to start workflows. The builder is a stateful object that
accumulates the various parameters and package items used to start the
workflow. The workflow is started when the build() method is called.
- Since:
- 3.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowBuilder
public WorkflowBuilder(WorkflowDefinition definition,
WorkflowService workflowService,
org.alfresco.service.cmr.repository.NodeService nodeService,
BehaviourFilter behaviourFilter)
addParameter
public void addParameter(org.alfresco.service.namespace.QName name,
java.io.Serializable value)
addAssociationParameter
public void addAssociationParameter(org.alfresco.service.namespace.QName name,
java.util.List values)
setPackageNode
public void setPackageNode(org.alfresco.service.cmr.repository.NodeRef packageNode)
- Parameters:
packageNode
- the packageNode to set
addPackageItems
public void addPackageItems(java.util.List items)
build
public WorkflowInstance build()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.