Class VirtualWorkflowPackageExtension

All Implemented Interfaces:
WorkflowPackageExtension, WorkflowPackageComponent

public class VirtualWorkflowPackageExtension extends SpringBeanExtension<WorkflowPackageExtension,WorkflowPackageTrait> implements WorkflowPackageExtension
  • Constructor Details

    • VirtualWorkflowPackageExtension

      public VirtualWorkflowPackageExtension()
  • Method Details

    • setSmartStore

      public void setSmartStore(VirtualStore smartStore)
    • createPackage

      public NodeRef createPackage(NodeRef container)
      Description copied from interface: WorkflowPackageComponent
      Create a Workflow Package (a container of content to route through the Workflow). If an existing container is supplied, it's supplemented with the workflow package aspect.
      Specified by:
      createPackage in interface WorkflowPackageComponent
      Parameters:
      container - (optional) a pre-created container (e.g. folder, versioned folder or layered folder)
      Returns:
      the workflow package
    • deletePackage

      public void deletePackage(NodeRef container)
      Description copied from interface: WorkflowPackageComponent
      Deletes a Workflow Package The workflow package aspect is removed, and if the container was previously created by the workflow service (i.e. not provided from elsewhere), it will be deleted.
      Specified by:
      deletePackage in interface WorkflowPackageComponent
      Parameters:
      container - NodeRef
    • getWorkflowIdsForContent

      public List<String> getWorkflowIdsForContent(NodeRef packageItem)
      Description copied from interface: WorkflowPackageComponent
      Gets the Workflows that act upon the specified Repository content.
      Specified by:
      getWorkflowIdsForContent in interface WorkflowPackageComponent
      Parameters:
      packageItem - the repository content item to get workflows for
      Returns:
      list of workflows which act upon the specified content
    • setWorkflowForPackage

      public boolean setWorkflowForPackage(WorkflowInstance instance)
      Description copied from interface: WorkflowPackageComponent
      Initialises the workflow package node on the WorkflowInstance, adding the appropriate aspect and setting the appropriate properties to mark it as a package for the given WorkflowInstance.
      Specified by:
      setWorkflowForPackage in interface WorkflowPackageComponent
      Parameters:
      instance - the workflow instance to which the package belongs.
      Returns:
      true if the package node was modified.