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)
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 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 matchedWorkflowExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved