Package com.day.cq.workflow.event
Class ExternalProcessPollingEvent
java.lang.Object
com.day.cq.workflow.event.ExternalProcessPollingEvent
- All Implemented Interfaces:
Serializable
A helper class to define and create external process polling events, identified using the topic
EVENT_TOPIC- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalProcessPollingEvent(Map<String, Serializable> workItemMap, Serializable externalProcessId) Creates a new WorkflowJob. -
Method Summary
Modifier and TypeMethodDescriptionConvenience method to create a cancel timed event.createPollingEvent(long period, long timeoutSeconds, boolean advanceOnTimeout) Convenience method to create a timed event.
-
Field Details
-
EVENT_TOPIC
The job topic for adding an entry to the audit log.- See Also:
-
PROPERTY_POLLING_TIMEOUT
- See Also:
-
PROPERTY_POLLING_ADVANCE_ON_TIMEOUT
- See Also:
-
PROPERTY_POLLING_START
- See Also:
-
PROPERTY_POLLING_EVENT
- See Also:
-
PROPERTY_POLLING_PROCESS_ID
- See Also:
-
-
Constructor Details
-
ExternalProcessPollingEvent
public ExternalProcessPollingEvent(Map<String, Serializable> workItemMap, Serializable externalProcessId) Creates a new WorkflowJob.- Parameters:
workItemMap-Mapitem of WorkItem map to be usedexternalProcessId- External process id to be used
-
-
Method Details
-
getWorkItemMap
-
createPollingEvent
Convenience method to create a timed event.- Parameters:
period- period of time in secondstimeoutSeconds- timeout parameter in secondsadvanceOnTimeout- true or false if it should advance on timeout- Returns:
- Event Returns polling
Event
-
createPollingCancelEvent
Convenience method to create a cancel timed event.- Returns:
- Event Returns polling cancel
Event
-