Class WorkflowStepsResource
java.lang.Object
org.keycloak.workflow.admin.resource.WorkflowStepsResource
Resource for managing steps within a workflow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
addStep
(WorkflowStepRepresentation stepRep, Integer position) Add a new step to this workflow.Get a specific step by its ID.getSteps()
Get all steps for this workflow.jakarta.ws.rs.core.Response
removeStep
(String stepId) Remove a step from this workflow.
-
Constructor Details
-
WorkflowStepsResource
-
-
Method Details
-
getSteps
Get all steps for this workflow.- Returns:
- list of steps
-
addStep
@POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response addStep(WorkflowStepRepresentation stepRep, @QueryParam("position") Integer position) Add a new step to this workflow.- Parameters:
stepRep
- step representationposition
- optional position to insert the step at (0-based index)- Returns:
- the created step
-
removeStep
@Path("{stepId}") @DELETE public jakarta.ws.rs.core.Response removeStep(@PathParam("stepId") String stepId) Remove a step from this workflow.- Parameters:
stepId
- ID of the step to remove- Returns:
- no content response on success
-
getStep
@Path("{stepId}") @GET @Produces("application/json") public WorkflowStepRepresentation getStep(@PathParam("stepId") String stepId) Get a specific step by its ID.- Parameters:
stepId
- ID of the step to retrieve- Returns:
- the step representation
-