Class WorkflowStateModel.Builder<T>

java.lang.Object
de.xima.fc.workflow.WorkflowStateModel.Builder<T>
Enclosing class:
WorkflowStateModel

public abstract static class WorkflowStateModel.Builder<T> extends Object
Builder for configuring a WorkflowStateModel from a state entity.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Field Details

    • state

      protected final T state
  • Method Details

    • locale

      public WorkflowStateModel.Builder<T> locale(Locale locale)
      Sets the locale to use when creating the model. Defaults to CmnConst.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

      public WorkflowStateModel.Builder<T> defaultEndUserState(EEndUserStatePreset preset)
      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

      public WorkflowStateModel.Builder<T> clientLocale(Locale 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

      public abstract WorkflowStateModel build()
      Builds a new WorkflowStateModel with the current configuration of this builder.
      Returns:
      A new workflow state model.