Class ActivatorEvent
java.lang.Object
org.efs.activator.event.ActivatorEvent
- All Implemented Interfaces:
IEfsEvent
As
EfsActivator steps through its workflow, its
publishes two ActivatorEvents for each step:
-
An
in-progresstransition with a zero transition duration. -
Either a
successful completionorfailed completion. If failed, then contains exception causing the failure. In both cases, transition execution time is provided.
An activator event contains the following fields:
- Unique name of agent being transition from a begin state to end state.
- Name of workflow step being performed.
-
Defines workflow step state:
in-progress,completed successfully, andcompleted but failed. - Agent transition initial state.
- Agent transition target final state.
-
Agent transition duration. Will be
zerofor anin-progressstep. -
Exception associated with a
failed agent transition.
An agent wishing to receive activator
events should
register
with the activator executing the workflows.
- Author:
- Charles W. Rapp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class used to create an activator event.static enumWorkflow step states are in-progress, completed (success), and completed (failed). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivatorEvent.Builderbuilder()Returns a new activator event builder instance.booleanReturnstrueifois a non-null ActivorEventinstance whose agent name, step name, step state, initial and final states are equal.Returns efs agent name.Returns allowed transition time.Returns optional getException associated with a failed step.Returns target agent final state.Returns agent initial state.Returns workflow step name.Returns workflow step's state.inthashCode()Activator event hash code based on unique agent name, workflow step name, workflow step state, agent current state, and agent target final state.toString()Returns a single text line containing agent name, initial state, and final state.
-
Field Details
-
NO_MESSAGE
-
NULL_STATE
-
-
Method Details
-
equals
Returnstrueifois a non-null ActivorEventinstance whose agent name, step name, step state, initial and final states are equal. This method ignores the duration and optional exception associated with the event.This equals implementation is designed to facilitate units tests only.
-
hashCode
-
toString
-
getAgentName
-
getStepName
-
getStepState
Returns workflow step's state.- Returns:
- workflow step state.
-
getInitialState
-
getFinalState
-
getDuration
-
getException
Returns optional getException associated with a failed step.- Returns:
- getException associated with failed step.
-
builder
Returns a new activator event builder instance.- Returns:
- new activator event builder.
-