Class ExternalProcessJob

java.lang.Object
com.adobe.granite.workflow.job.ExternalProcessJob
All Implemented Interfaces:
Serializable

public class ExternalProcessJob extends Object implements Serializable
Helper class to identify and create external process job events, identified by job topic JOB_TOPIC
See Also:
  • Field Details

  • Constructor Details

    • ExternalProcessJob

      public ExternalProcessJob(Map serializedItem)
      Creates a new WorkflowJob.
      Parameters:
      serializedItem - the serialized item
  • Method Details

    • getWorkItemMap

      public Map getWorkItemMap()
      Returns the WorkItems Map of the job
      Returns:
      the WorkItems Map of the job
    • createJobEvent

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