Module io.automatiko.engine.api
Interface VariableAugmentor
public interface VariableAugmentor
Variable augmentor allows to perform modification to the variable bfore it is added to
variable scope instance. This usually acts like a interceptor to be able to
change variable value structure for example moving binary data of a file to data store
to offload the instance storage from big data sets
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if given augmentor is capable of working on given valuesaugmentOnCreate(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be created for the first timevoidaugmentOnDelete(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be removedaugmentOnUpdate(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be updated
-
Method Details
-
accept
Determines if given augmentor is capable of working on given values- Parameters:
variable- variable definitionvalue- value of the variable to be set/updated/removed- Returns:
- true if it can process it otherwise false
-
augmentOnCreate
Object augmentOnCreate(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be created for the first time- Parameters:
processId- identifier of the process definitionprocessVersion- version of the process definitionprocessInstanceId- instance identifier of the process instancevariable- variable definitionvalue- value to be set
-
augmentOnUpdate
Object augmentOnUpdate(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be updated- Parameters:
processId- identifier of the process definitionprocessVersion- version of the process definitionprocessInstanceId- instance identifier of the process instancevariable- variable definitionvalue- value to be updated
-
augmentOnDelete
void augmentOnDelete(String processId, String processVersion, String processInstanceId, Variable variable, Object value) Invoked when variable is going to be removed- Parameters:
processId- identifier of the process definitionprocessVersion- version of the process definitionprocessInstanceId- instance identifier of the process instancevariable- variable definitionvalue- value to be removed
-