Class ProcessEngineSettingsBuilder
- java.lang.Object
-
- com.aquima.interactions.process.impl.builder.ProcessEngineSettingsBuilder
-
public class ProcessEngineSettingsBuilder extends Object
A builder that creates anIProcessEngineSettings
implementation usingIgnoreModeSettingsBuilder
for the ignore mode settings.- Since:
- 9.8.5
- Author:
- Petru Galanton
-
-
Constructor Summary
Constructors Constructor Description ProcessEngineSettingsBuilder()
Creates a builder that usesIgnoreModeSettingsBuilder
for building the ignore mode settings.ProcessEngineSettingsBuilder(IgnoreModeSettingsBuilder ignoreModeBuilder)
Allows using a different IgnoreModeSettingsBuilder, with potentially different rules than the default ones.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IProcessEngineSettings
build()
Builds theIProcessEngineSettings
based on values set so far.ProcessEngineSettingsBuilder
setCancelStartedTasks(boolean cancelStartedTasks)
Sets whether started tasks should be canceled when the runtime starts.ProcessEngineSettingsBuilder
setCaseListLimit(Integer limit)
Sets the limit on total rows displayed in case lists (in total).ProcessEngineSettingsBuilder
setIgnoreMode(IgnoreMode mode)
Sets the global ignore mode.ProcessEngineSettingsBuilder
setIgnoreMode(String appName, IgnoreMode mode)
Sets the ignore mode for a specific application.ProcessEngineSettingsBuilder
setIgnoreUnknownAttributes(boolean ignore)
Sets whether unknown attributes are ignored by default.ProcessEngineSettingsBuilder
setIgnoreUnknownAttributes(String applicationName, boolean ignore)
Sets whether unknown attributes for the application with the given name are ignored.ProcessEngineSettingsBuilder
setIgnoreUnknownEntities(boolean ignore)
Sets whether unknown entities are ignored by default.ProcessEngineSettingsBuilder
setIgnoreUnknownEntities(String applicationName, boolean ignore)
Sets whether unknown entities for the application with the given name are ignored.ProcessEngineSettingsBuilder
setRetainRequiredTasks(boolean retainRequiredTasks)
Sets whether required tasks should stay available once their precondition becomes falseProcessEngineSettingsBuilder
setWorkListLimit(Integer limit)
Sets the limit on total rows displayed in work lists (in total).
-
-
-
Constructor Detail
-
ProcessEngineSettingsBuilder
public ProcessEngineSettingsBuilder()
Creates a builder that usesIgnoreModeSettingsBuilder
for building the ignore mode settings. SeeIgnoreModeSettingsBuilder
for details on what rules apply.
-
ProcessEngineSettingsBuilder
public ProcessEngineSettingsBuilder(IgnoreModeSettingsBuilder ignoreModeBuilder)
Allows using a different IgnoreModeSettingsBuilder, with potentially different rules than the default ones.- Parameters:
ignoreModeBuilder
- the builder used to build the ignore mode settings.
-
-
Method Detail
-
setCancelStartedTasks
public ProcessEngineSettingsBuilder setCancelStartedTasks(boolean cancelStartedTasks)
Sets whether started tasks should be canceled when the runtime starts.- Parameters:
cancelStartedTasks
- whether to cancel started tasks- Returns:
- this builder for method chaining
-
setRetainRequiredTasks
public ProcessEngineSettingsBuilder setRetainRequiredTasks(boolean retainRequiredTasks)
Sets whether required tasks should stay available once their precondition becomes false- Parameters:
retainRequiredTasks
- true for retaining required tasks, false otherwise- Returns:
- this builder for method chaining
-
setWorkListLimit
public ProcessEngineSettingsBuilder setWorkListLimit(Integer limit)
Sets the limit on total rows displayed in work lists (in total).- Parameters:
limit
- the limit- Returns:
- this builder for method chaining
-
setCaseListLimit
public ProcessEngineSettingsBuilder setCaseListLimit(Integer limit)
Sets the limit on total rows displayed in case lists (in total).- Parameters:
limit
- the limit- Returns:
- this builder for method chaining
-
setIgnoreMode
public ProcessEngineSettingsBuilder setIgnoreMode(IgnoreMode mode)
Sets the global ignore mode.- Parameters:
mode
- the global ignore mode- Returns:
- this builder for method chaining
-
setIgnoreMode
public ProcessEngineSettingsBuilder setIgnoreMode(String appName, IgnoreMode mode)
Sets the ignore mode for a specific application.- Parameters:
appName
- the application namemode
- the ignore mode- Returns:
- this builder for method chaining
-
setIgnoreUnknownAttributes
public ProcessEngineSettingsBuilder setIgnoreUnknownAttributes(boolean ignore)
Sets whether unknown attributes are ignored by default.- Parameters:
ignore
- true if by default unknown attributes are ignored, false otherwise- Returns:
- this builder for method chaining
-
setIgnoreUnknownAttributes
public ProcessEngineSettingsBuilder setIgnoreUnknownAttributes(String applicationName, boolean ignore)
Sets whether unknown attributes for the application with the given name are ignored. This setting overrides the default.- Parameters:
applicationName
- the application name, not null.ignore
- whether to ignore unknown attributes- Returns:
- this builder for method chaining
-
setIgnoreUnknownEntities
public ProcessEngineSettingsBuilder setIgnoreUnknownEntities(boolean ignore)
Sets whether unknown entities are ignored by default.- Parameters:
ignore
- true if by default unknown entities are ignored, false otherwise- Returns:
- this builder for method chaining
-
setIgnoreUnknownEntities
public ProcessEngineSettingsBuilder setIgnoreUnknownEntities(String applicationName, boolean ignore)
Sets whether unknown entities for the application with the given name are ignored. This setting overrides the default.- Parameters:
applicationName
- the application name, not null.ignore
- whether to ignore unknown entities- Returns:
- this builder for method chaining
-
build
public IProcessEngineSettings build()
Builds theIProcessEngineSettings
based on values set so far. The builder can be reused after this method is called, but it retains all existing settings.- Returns:
- the
IProcessEngineSettings
with the settings set so far on this builder.
-
-