Package com.adobe.granite.workflow.job
Class WorkflowJob
- java.lang.Object
-
- com.adobe.granite.workflow.job.WorkflowJob
-
- All Implemented Interfaces:
Serializable
public class WorkflowJob extends Object implements Serializable
TheWorkflowJob
class provides a utility for creating event triggered job used for programmed/scripted workflow steps.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
JOB_TOPIC
The job topic for adding an entry to the audit log.static String
JOB_TOPIC_WC
static String
WORKFLOW_JOB
The event property holding theWorkflowJob
.static String
WORKFLOW_JOB_ID
-
Constructor Summary
Constructors Constructor Description WorkflowJob(Map item)
Creates a new WorkflowJob.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
createJobEvent(Integer retryCount, int numOfParallelProcs, String jobId)
Convenience method to create a job event for the workflow job.Map
getWorkItemMap()
-
-
-
Field Detail
-
JOB_TOPIC
public static final String JOB_TOPIC
The job topic for adding an entry to the audit log.- See Also:
- Constant Field Values
-
JOB_TOPIC_WC
public static final String JOB_TOPIC_WC
- See Also:
- Constant Field Values
-
WORKFLOW_JOB
public static final String WORKFLOW_JOB
The event property holding theWorkflowJob
.- See Also:
- Constant Field Values
-
WORKFLOW_JOB_ID
public static final String WORKFLOW_JOB_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowJob
public WorkflowJob(Map item)
Creates a new WorkflowJob.- Parameters:
item
- the work item
-
-
Method Detail
-
createJobEvent
public Event createJobEvent(Integer retryCount, int numOfParallelProcs, String jobId)
Convenience method to create a job event for the workflow job.- Parameters:
retryCount
- the retryCountnumOfParallelProcs
- the number of parallel processesjobId
- the workflow job id- Returns:
- the created job event
-
-