Interface PayloadMap


  • public interface PayloadMap
    The PayloadMap is listening to workflow events (started, terminated, completed and manages a payload map (only JCR_PATH payloads) in order to enable quick lookup for nodes/resources which might be subject of a workflow.
    • Method Detail

      • isInWorkflow

        boolean isInWorkflow​(java.lang.String path,
                             boolean excludeSystemWorkflows)
        Checks whether a JCR_PATHbased path is subject of a running Workflow instance.
        Parameters:
        path - path to check
        excludeSystemWorkflows - set to true to exclude system workflows from the evaluation
        Returns:
        true if JCR_PATHbased path is subject of a running workflow
      • getWorkflowInstances

        java.util.List<Workflow> getWorkflowInstances​(java.lang.String path,
                                                      boolean excludeSystemWorkflows)
        All Workflow instances are returned.
        Parameters:
        path - node path
        excludeSystemWorkflows - set to true to exclude system workflows from the evaluation
        Returns:
        the list of Workflow instances or an empty list is returned