public class ReadConstantValue extends Object implements ReadStrategy
| Constructor and Description |
|---|
ReadConstantValue() |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.camunda.bpm.engine.variable.value.TypedValue> |
read(StepExecutionContext stepExecutionContext,
String variableName)
Returns the
TypedValue of the variable variableName. |
void |
remove(StepExecutionContext stepExecutionContext,
String variableName)
Removes a variable.
|
public Optional<org.camunda.bpm.engine.variable.value.TypedValue> read(StepExecutionContext stepExecutionContext, String variableName)
ReadStrategyTypedValue of the variable variableName.read in interface ReadStrategystepExecutionContext - the context of this strategy's executionvariableName - the variable to readTypedValue or Optional.empty()public void remove(StepExecutionContext stepExecutionContext, String variableName)
DeleteStrategy
This method is placed in the read interface because it's the source variable that is to be deleted.
WriteStrategys might not know about the source variable and are therefore unable to delete it.
remove in interface DeleteStrategystepExecutionContext - the context of this strategy's executionvariableName - the variable to deleteCopyright © 2017 camunda services GmbH. All rights reserved.