Package org.keycloak.models.workflow
Interface WorkflowProviderEvent
- All Superinterfaces:
ProviderEvent
- All Known Subinterfaces:
WorkflowProviderEvent.WorkflowActivatedEvent,WorkflowProviderEvent.WorkflowCompletedEvent,WorkflowProviderEvent.WorkflowDeactivatedEvent,WorkflowProviderEvent.WorkflowResourceMigratedEvent,WorkflowProviderEvent.WorkflowRestartedEvent,WorkflowProviderEvent.WorkflowStepExecutedEvent,WorkflowProviderEvent.WorkflowStepFailedEvent,WorkflowProviderEvent.WorkflowStepScheduledEvent
Base interface for workflow-related provider events.
- Author:
- Stefan Guilhen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEvent fired when a workflow is activated for a resource.static interfaceEvent fired when a workflow completes successfully.static interfaceEvent fired when a workflow is deactivated for a resource.static interfaceEvent fired when workflow resources are migrated from one step/workflow to another.static interfaceEvent fired when a workflow is restarted for a resource.static interfaceEvent fired when a workflow step is executed successfully.static interfaceEvent fired when a workflow step execution fails.static interfaceEvent fired when a workflow step is scheduled. -
Method Summary
Modifier and TypeMethodDescriptionGets the execution ID for this workflow activation.Gets the Keycloak session associated with this event.getRealm()Gets the realm where the workflow event occurred.Gets the resource ID associated with this workflow event.Gets the resource type associated with this workflow event.Gets the workflow ID.Gets the workflow name.
-
Method Details
-
getKeycloakSession
KeycloakSession getKeycloakSession()Gets the Keycloak session associated with this event.- Specified by:
getKeycloakSessionin interfaceProviderEvent- Returns:
- the
KeycloakSession
-
getRealm
RealmModel getRealm()Gets the realm where the workflow event occurred.- Returns:
- the
RealmModel
-
getWorkflowId
String getWorkflowId()Gets the workflow ID.- Returns:
- the workflow ID
-
getWorkflowName
String getWorkflowName()Gets the workflow name.- Returns:
- the workflow name
-
getResourceId
String getResourceId()Gets the resource ID associated with this workflow event.- Returns:
- the resource ID
-
getResourceType
ResourceType getResourceType()Gets the resource type associated with this workflow event.- Returns:
- the
ResourceType
-
getExecutionId
String getExecutionId()Gets the execution ID for this workflow activation.- Returns:
- the execution ID
-