Package org.camunda.bpm.engine.impl
Class HistoryTimeToLiveParser
java.lang.Object
org.camunda.bpm.engine.impl.HistoryTimeToLiveParser
Class that encapsulates the business logic of parsing HistoryTimeToLive of different deployable resources (process, definition, case).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final Stringprotected static final ConfigurationLogger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHistoryTimeToLiveParser(boolean enforceNonNullValue, String httlConfigValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic HistoryTimeToLiveParsercreate()static HistoryTimeToLiveParsercreate(ProcessEngineConfigurationImpl config) static HistoryTimeToLiveParsercreate(CommandContext context) protected IntegerparseAndValidate(String historyTimeToLiveString, String definitionKey, boolean skipEnforceTtl) Parses the given HistoryTimeToLive String expression and then executes any applicable validation before returning the parsed value.void
-
Field Details
-
LOG
-
enforceNonNullValue
protected final boolean enforceNonNullValue -
httlConfigValue
-
-
Constructor Details
-
HistoryTimeToLiveParser
-
-
Method Details
-
create
-
create
-
create
-
validate
-
parse
-
parse
-
parse
-
parseAndValidate
protected Integer parseAndValidate(String historyTimeToLiveString, String definitionKey, boolean skipEnforceTtl) throws NotValidException Parses the given HistoryTimeToLive String expression and then executes any applicable validation before returning the parsed value.- Parameters:
historyTimeToLiveString- the history time to live string expression in ISO-8601 formatdefinitionKey- the correlated definition key that this historyTimeToLive was fetched from (process definition key for processes, decision definition key for decisions, case definition key for cases).skipEnforceTtl- skips enforcing the TTL.- Returns:
- the parsed integer value of history time to live
- Throws:
NotValidException- in case enforcement of non-null values is on and the parsed result was null
-