Class WorkflowBuilder


  • public class WorkflowBuilder
    extends 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
    Author:
    Nick Smith
    • Method Detail

      • addParameter

        public void addParameter​(org.alfresco.service.namespace.QName name,
                                 Serializable value)
      • addAssociationParameter

        public void addAssociationParameter​(org.alfresco.service.namespace.QName name,
                                            List<org.alfresco.service.cmr.repository.NodeRef> values)
      • setPackageNode

        public void setPackageNode​(org.alfresco.service.cmr.repository.NodeRef packageNode)
        Parameters:
        packageNode - the packageNode to set
      • addPackageItems

        public void addPackageItems​(List<org.alfresco.service.cmr.repository.NodeRef> items)