Class WorkflowJob

java.lang.Object
com.day.cq.workflow.job.WorkflowJob
All Implemented Interfaces:
Serializable

public class WorkflowJob extends Object implements Serializable
The WorkflowJob class provides a utility for creating event triggered job used for programmed/scripted workflow steps.
See Also:
  • Field Details

  • Constructor Details

    • WorkflowJob

      public WorkflowJob(Map item)
      Creates a new WorkflowJob.
      Parameters:
      item - creates the WorkflowJob instance using Map
  • Method Details

    • getWorkItemMap

      public Map getWorkItemMap()
      Returns the WorkItem Mapof the job
      Returns:
      Map Map returns the workflow item map
    • createJobEvent

      public Event createJobEvent(Integer retryCount, int numOfParallelProcs, String jobId)
      Convenience method to create a job event for the workflow job.
      Parameters:
      retryCount - integer. number of retries
      numOfParallelProcs - not currently used
      jobId - the job id to use
      Returns:
      Event Event the job event created