Package com.adobe.granite.workflow
Interface PayloadMap
-
public interface PayloadMap
ThePayloadMap
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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_JCR_PATH
static String
TYPE_JCR_UUID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Workflow>
getWorkflowInstances(String path, boolean excludeSystemWorkflows)
All
are returned.Workflow
instancesboolean
isInWorkflow(String path, boolean excludeSystemWorkflows)
Checks whether aJCR_PATH
based path is subject of a runningWorkflow
instance
-
-
-
Field Detail
-
TYPE_JCR_PATH
static final String TYPE_JCR_PATH
- See Also:
- Constant Field Values
-
TYPE_JCR_UUID
static final String TYPE_JCR_UUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isInWorkflow
boolean isInWorkflow(String path, boolean excludeSystemWorkflows)
Checks whether aJCR_PATH
based path is subject of a runningWorkflow
instance- Parameters:
path
- path to checkexcludeSystemWorkflows
- set totrue
to exclude system workflows from the evaluation- Returns:
true
ifJCR_PATH
based path is subject of a running workflow
-
getWorkflowInstances
List<Workflow> getWorkflowInstances(String path, boolean excludeSystemWorkflows)
All
are returned.Workflow
instances- Parameters:
path
- node pathexcludeSystemWorkflows
- set totrue
to exclude system workflows from the evaluation- Returns:
- the list of
or an empty list is returnedWorkflow
instances
-
-