public abstract class WorkflowUtil
extends java.lang.Object
WorkflowUtil
class ...Constructor and Description |
---|
WorkflowUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAuthorizableFromLastStep(WorkflowSession session,
Workflow workflow,
java.lang.String nodeId)
This method returns the userId of the user who completed the previous step.
|
static java.util.Collection<Job> |
getWorkflowJobs(JobManager jobManager,
WorkflowSession wfSession)
Returns a collection of jobs for active workflow instances.
|
static boolean |
isStaleWorkflow(Workflow workflow,
java.util.Collection<Job> wfJobs)
Checks if the job specified by the provided workflow instance exists in the collection of sling jobs.
|
public static java.util.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, java.util.Collection<Job> wfJobs)
workflow
- to check for associate sling jobs, if anywfJobs
- list of existing sling jobs in the systempublic static java.lang.String getAuthorizableFromLastStep(WorkflowSession session, Workflow workflow, java.lang.String nodeId) throws WorkflowException
session
- workflow sessionworkflow
- workflow instancenodeId
- node id of workflow node in questionnull
if no user could be matchedWorkflowException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"