Package com.day.cq.workflow
Interface PayloadMap
-
public interface PayloadMapThePayloadMapis 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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description WorkflowgetWorkflowInstance(java.lang.String path)Deprecated.usegetWorkflowInstances(String, boolean)instead!java.util.List<Workflow>getWorkflowInstances(java.lang.String path, boolean excludeSystemWorkflows)Allare returned.WorkflowinstancesbooleanisInWorkflow(java.lang.String path)Deprecated.useisInWorkflow(String, boolean)instead!booleanisInWorkflow(java.lang.String path, boolean excludeSystemWorkflows)Checks whether aJCR_PATHbased path is subject of a running.Workflowinstance
-
-
-
Method Detail
-
isInWorkflow
boolean isInWorkflow(java.lang.String path)
Deprecated.useisInWorkflow(String, boolean)instead!Checks whether aJCR_PATHbased path is subject of a running. Note:The system workflows (can be defined per osgi config) won't be taken in account here!Workflowinstance- Parameters:
path- path to check- Returns:
trueifJCR_PATHbased path is subject of a running workflow
-
isInWorkflow
boolean isInWorkflow(java.lang.String path, boolean excludeSystemWorkflows)Checks whether aJCR_PATHbased path is subject of a running.Workflowinstance- Parameters:
path- path to checkexcludeSystemWorkflows- set totrueto exclude system workflows from the evaluation- Returns:
trueifJCR_PATHbased path is subject of a running workflow
-
getWorkflowInstance
Workflow getWorkflowInstance(java.lang.String path)
Deprecated.usegetWorkflowInstances(String, boolean)instead!Theis returned. Note:The system workflows (can be defined per osgi config) won't be taken in account here!Workflowinstance- Parameters:
path- node path- Returns:
- the
orWorkflowinstancenullif not existing.
-
getWorkflowInstances
java.util.List<Workflow> getWorkflowInstances(java.lang.String path, boolean excludeSystemWorkflows)
Allare returned.Workflowinstances- Parameters:
path- node pathexcludeSystemWorkflows- set totrueto exclude system workflows from the evaluation- Returns:
- the list of
or an empty list is returnedWorkflowinstances
-
-