public abstract class WorkflowUtil extends Object
WorkflowUtil class ...| Constructor and Description |
|---|
WorkflowUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAuthorizableFromLastStep(WorkflowSession session,
Workflow workflow,
String nodeId)
This method returns the userId of the user who completed the previous step.
|
static Collection<Job> |
getWorkflowJobs(JobManager jobManager,
WorkflowSession wfSession)
Returns a collection of jobs for active workflow instances.
|
static boolean |
isStaleWorkflow(Workflow workflow,
Collection<Job> wfJobs)
Deprecated.
No longer useful (stale workflows don't occur enymore). Always return false. Can't be removed as it is a documented API.
|
public static Collection<Job> getWorkflowJobs(JobManager jobManager, WorkflowSession wfSession)
jobManager - used to query for sling jobs on workflow topicswfSession - used to retrieve the workflow modelspublic static boolean isStaleWorkflow(Workflow workflow, Collection<Job> wfJobs)
workflow - to check for associate sling jobs, if anywfJobs - list of existing sling jobs in the systempublic static String getAuthorizableFromLastStep(WorkflowSession session, Workflow workflow, String nodeId) throws WorkflowException
session - workflow sessionworkflow - workflow instancenodeId - node id of workflow node in questionnull if no user could be matchedWorkflowExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved