Class WorkflowStateModel.Builder<T>
java.lang.Object
de.xima.fc.workflow.WorkflowStateModel.Builder<T>
- Enclosing class:
WorkflowStateModel
Builder for configuring a
WorkflowStateModel from a state entity.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract WorkflowStateModelbuild()Builds a newWorkflowStateModelwith the current configuration of this builder.clientLocale(Locale clientLocale) Sets the locale of the current client.Presets to apply when the state does not yet have an end user state configured.Sets the locale to use when creating the model.
-
Field Details
-
state
-
-
Method Details
-
locale
Sets the locale to use when creating the model. Defaults toCmnConst.DFLT_LOCALE. This is used for example for localizing the authenticator names and descriptions.- Parameters:
locale- The locale to use.- Returns:
- This builder for chaining method calls.
-
defaultEndUserState
Presets to apply when the state does not yet have an end user state configured.- Parameters:
preset- The preset to apply.- Returns:
- This builder for chaining method calls.
-
clientLocale
Sets the locale of the current client. This is used for example for creating the localizations tab of the state.- Parameters:
clientLocale- The locale of the client.- Returns:
- This builder for chaining method calls.
-
build
Builds a newWorkflowStateModelwith the current configuration of this builder.- Returns:
- A new workflow state model.
-