Package de.xima.fc.workflow
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 aWorkflowStateModelfrom a state entity. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract WorkflowStateModelbuild()Builds a newWorkflowStateModelwith the current configuration of this builder.WorkflowStateModel.Builder<T>defaultPortalState(EPortalStatePreset preset)Presets to apply when the state does not yet have a portal state configured.WorkflowStateModel.Builder<T>locale(Locale locale)Sets the locale to use when creating the model. 
 - 
 
- 
- 
Field Detail
- 
state
protected final T state
 
 - 
 
- 
Method Detail
- 
locale
public WorkflowStateModel.Builder<T> locale(Locale 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.
 
 
- 
defaultPortalState
public WorkflowStateModel.Builder<T> defaultPortalState(EPortalStatePreset preset)
Presets to apply when the state does not yet have a portal state configured.- Parameters:
 preset- The preset to apply.- Returns:
 - This builder for chaining method calls.
 
 
- 
build
public abstract WorkflowStateModel build()
Builds a newWorkflowStateModelwith the current configuration of this builder.- Returns:
 - A new workflow state model.
 
 
 - 
 
 -