Package org.forgerock.selfservice.core
Interface ProcessContext
public interface ProcessContext
Process context represents the current state of the workflow.
- Since:
- 0.2.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsState(String jsonPointer) Determines whether state defined by the json pointer exists.getInput()Gets the input provided by the client.Gets the original request.Gets the request context.Gets the current stage tag defined by the previously invoked stage.Allows retrieval of state persisted throughout the flow.voidPuts a value into the state referenced by the json pointer.voidputSuccessAddition(String jsonPointer, Object value) Puts a value into the additions referenced by the json pointer.
-
Method Details
-
getRequestContext
Context getRequestContext()Gets the request context.- Returns:
- the request context
-
getRequest
Request getRequest()Gets the original request.- Returns:
- the request
-
getStageTag
String getStageTag()Gets the current stage tag defined by the previously invoked stage.- Returns:
- the stage tag
-
getInput
JsonValue getInput()Gets the input provided by the client. Empty json object represents no input.- Returns:
- the input
-
containsState
Determines whether state defined by the json pointer exists.- Parameters:
jsonPointer- json pointer to the state- Returns:
- whether of the a value exists
-
getState
Allows retrieval of state persisted throughout the flow.- Parameters:
jsonPointer- json pointer to the state- Returns:
- the corresponding value
-
putState
Puts a value into the state referenced by the json pointer.- Parameters:
jsonPointer- json pointer to where the state should be addedvalue- the value to be added
-
putSuccessAddition
Puts a value into the additions referenced by the json pointer.Additions are included in the response of successfully completing a flow.
- Parameters:
jsonPointer- json point to additions valuevalue- the corresponding value
-