Package org.keycloak.models.workflow
Interface WorkflowStepProvider
- All Superinterfaces:
org.keycloak.provider.Provider
public interface WorkflowStepProvider
extends org.keycloak.provider.Provider
Defines a provider interface for executing workflow steps.
Implementations of this interface represent individual steps that can be executed
as part of a workflow. Each step can perform specific actions and optionally provide
custom notification messages when users need to be informed about the step's execution.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the message or the text that should be used as the body of the email when notifying the user about this step.default StringReturns the message or the text that should be used as the subject of the email when notifying the user about this step.voidrun(WorkflowExecutionContext context) Runs this workflow step.Methods inherited from interface org.keycloak.provider.Provider
close
-
Method Details
-
run
Runs this workflow step.- Parameters:
context- the workflow execution context
-
getNotificationSubject
Returns the message or the text that should be used as the subject of the email when notifying the user about this step.- Returns:
- the notification subject, or
nullif the default subject should be used
-
getNotificationMessage
Returns the message or the text that should be used as the body of the email when notifying the user about this step.- Returns:
- the notification body, or
nullif the default subject should be used
-