Package com.day.cq.workflow.event
Class EventPublishUtil
- java.lang.Object
-
- com.day.cq.workflow.event.EventPublishUtil
-
public class EventPublishUtil extends java.lang.Object
TheEventsPublisher
provides a utility for publishing workflow related events.
-
-
Constructor Summary
Constructors Constructor Description EventPublishUtil(EventAdmin eventAdmin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
publishDelegationEvent(Workflow instance, Authorizable participant, WorkItem item, java.lang.String user)
void
publishExternalProcessJobEvent(java.util.Map workItemMap, java.lang.Integer retryCount, java.lang.String jobId)
void
publishJobEvent(java.util.Map workItemMap, java.lang.Integer retryCount, int numOfParallelProcs, java.lang.String jobId)
void
publishJobFailedEvent(WorkItem item, java.lang.String message)
void
publishModelDeletedEvent(java.lang.String id, java.lang.String user)
void
publishModelDeployedEvent(java.lang.String id, java.lang.String version, java.lang.String user)
void
publishNodeTransitionEvent(Workflow instance, java.lang.String fromNodeName, java.lang.String toNodeName, WorkItem workitem, java.lang.String user)
void
publishProcessTimeoutEvent(Workflow instance, java.lang.String processName)
void
publishResetTimeoutEvent(WorkItem item)
void
publishResourceCollectionModificationEvent(java.lang.String path)
void
publishTimeoutEvent(WorkItem item, WorkflowSession session)
void
publishVariableUpdatedEvent(Workflow instance, java.lang.String variableName, java.lang.Object variableValue, java.lang.String user)
void
publishWorkflowAbortedEvent(Workflow instance, java.lang.String userId)
void
publishWorkflowCompletedEvent(Workflow instance, java.lang.String user)
void
publishWorkflowResumedEvent(Workflow instance, java.lang.String user)
void
publishWorkflowStartedEvent(Workflow instance, Workflow parentWorkflow, java.lang.String user, WorkflowData data)
void
publishWorkflowSuspendedEvent(Workflow instance, java.lang.String user)
-
-
-
Constructor Detail
-
EventPublishUtil
public EventPublishUtil(EventAdmin eventAdmin)
-
-
Method Detail
-
publishModelDeployedEvent
public void publishModelDeployedEvent(java.lang.String id, java.lang.String version, java.lang.String user)
-
publishModelDeletedEvent
public void publishModelDeletedEvent(java.lang.String id, java.lang.String user)
-
publishWorkflowStartedEvent
public void publishWorkflowStartedEvent(Workflow instance, Workflow parentWorkflow, java.lang.String user, WorkflowData data)
-
publishWorkflowAbortedEvent
public void publishWorkflowAbortedEvent(Workflow instance, java.lang.String userId)
-
publishWorkflowSuspendedEvent
public void publishWorkflowSuspendedEvent(Workflow instance, java.lang.String user)
-
publishWorkflowResumedEvent
public void publishWorkflowResumedEvent(Workflow instance, java.lang.String user)
-
publishWorkflowCompletedEvent
public void publishWorkflowCompletedEvent(Workflow instance, java.lang.String user) throws WorkflowException
- Throws:
WorkflowException
-
publishNodeTransitionEvent
public void publishNodeTransitionEvent(Workflow instance, java.lang.String fromNodeName, java.lang.String toNodeName, WorkItem workitem, java.lang.String user)
-
publishVariableUpdatedEvent
public void publishVariableUpdatedEvent(Workflow instance, java.lang.String variableName, java.lang.Object variableValue, java.lang.String user)
-
publishProcessTimeoutEvent
public void publishProcessTimeoutEvent(Workflow instance, java.lang.String processName)
-
publishJobEvent
public void publishJobEvent(java.util.Map workItemMap, java.lang.Integer retryCount, int numOfParallelProcs, java.lang.String jobId)
-
publishExternalProcessJobEvent
public void publishExternalProcessJobEvent(java.util.Map workItemMap, java.lang.Integer retryCount, java.lang.String jobId)
-
publishJobFailedEvent
public void publishJobFailedEvent(WorkItem item, java.lang.String message)
-
publishTimeoutEvent
public void publishTimeoutEvent(WorkItem item, WorkflowSession session)
-
publishResetTimeoutEvent
public void publishResetTimeoutEvent(WorkItem item)
-
publishDelegationEvent
public void publishDelegationEvent(Workflow instance, Authorizable participant, WorkItem item, java.lang.String user)
-
publishResourceCollectionModificationEvent
public void publishResourceCollectionModificationEvent(java.lang.String path)
-
-