public abstract class BaseVariableHandlingService extends AbstractActivityService implements WorkObjectVariableInitialization
Modifier and Type | Field and Description |
---|---|
boolean |
allowVariableReferencesInInitVariableTask |
Constructor and Description |
---|
BaseVariableHandlingService(boolean propagateError) |
Modifier and Type | Method and Description |
---|---|
Instant |
extractDate(Object variableValue) |
Integer |
extractPriority(Object variableValue) |
Set<String> |
extractSet(Object variableValue) |
AnyWorkObject |
handleVariableInitialization(AnyWorkObject workObjectInScope,
org.flowable.engine.delegate.DelegateExecution execution,
Map<String,Object> additionalContext,
Object variableResolutionContext,
Map.Entry<String,Collection<InitVariableData>> initVariableDataEntry)
Uses the given arguments to initialize the given variable.
|
setApplicationContext
@Value(value="${backwardcompatibility.enable-variable-reference-for-init-task:false}") public boolean allowVariableReferencesInInitVariableTask
public BaseVariableHandlingService(boolean propagateError)
public AnyWorkObject handleVariableInitialization(AnyWorkObject workObjectInScope, org.flowable.engine.delegate.DelegateExecution execution, Map<String,Object> additionalContext, Object variableResolutionContext, Map.Entry<String,Collection<InitVariableData>> initVariableDataEntry)
WorkObjectVariableInitialization
Uses the given arguments to initialize the given variable. The variable value as well as the target name might be expressions and if so will be evaluated before used. The variable name must not be null and is expected to be a string literal rather than an expression.
handleVariableInitialization
in interface WorkObjectVariableInitialization
workObjectInScope
- the work object in scope.execution
- the delegate execution.additionalContext
- the additional context.variableResolutionContext
- the variable resolution context.initVariableDataEntry
- the init variable data objects.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.