Package org.keycloak.models.workflow
Interface WorkflowStateProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
JpaWorkflowStateProvider
Interface serves as state check for workflow actions.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetDueScheduledSteps(Workflow workflow) getScheduledStep(String workflowId, String resourceId) getScheduledStepsByResource(String resourceId) getScheduledStepsByWorkflow(String workflowId) getScheduledStepsByWorkflow(Workflow workflow) booleanhasScheduledSteps(String workflowId) Checks whether there are any scheduled steps for the givenworkflowId.voidRemoves the record identified by the specifiedexecutionId.voidDeletes all state records associated with the current realm bound to the session.voidremoveByResource(String resourceId) Deletes the state records associated with the givenresourceId.voidremoveByWorkflow(String workflowId) Removes any record identified by the specifiedworkflowId.voidremoveByWorkflowAndResource(String workflowId, String resourceId) Deletes the state records associated with the givenresourceIdof the givenworkflowId.voidscheduleStep(Workflow workflow, WorkflowStep step, String resourceId, String executionId)
-
Method Details
-
removeByResource
Deletes the state records associated with the givenresourceId.- Parameters:
resourceId- the id of the resource.
-
removeByWorkflowAndResource
Deletes the state records associated with the givenresourceIdof the givenworkflowId.- Parameters:
workflowId- the id of the workflow.resourceId- the id of the resource.
-
removeByWorkflow
Removes any record identified by the specifiedworkflowId.- Parameters:
workflowId- the id of the workflow.
-
remove
Removes the record identified by the specifiedexecutionId. -
removeAll
void removeAll()Deletes all state records associated with the current realm bound to the session. -
hasScheduledSteps
Checks whether there are any scheduled steps for the givenworkflowId.- Parameters:
workflowId- the id of the workflow.- Returns:
trueif there are scheduled steps,falseotherwise.
-
scheduleStep
-
getScheduledStep
-
getScheduledStepsByResource
-
getScheduledStepsByWorkflow
-
getScheduledStepsByWorkflow
-
getDueScheduledSteps
-