Package org.flowable.variable.service
Interface VariableService
- All Known Implementing Classes:
VariableServiceImpl
public interface VariableService
Service which provides access to variables.
- Author:
- Tijs Rademakers, Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptioncreateVariableInstance(String name) Create a variable instance with the given name and value for the given tenant.voiddeleteVariableInstance(VariableInstanceEntity variable) voiddeleteVariablesByExecutionId(String executionId) voiddeleteVariablesByTaskId(String taskId) default List<VariableInstanceEntity>findVariableInstanceByScopeIdAndScopeType(String scopeId, String scopeType) default List<VariableInstanceEntity>findVariableInstanceBySubScopeIdAndScopeType(String subScopeId, String scopeType) default List<VariableInstanceEntity>findVariableInstancesByExecutionId(String executionId) voidinsertVariableInstance(VariableInstanceEntity variable) voidinsertVariableInstanceWithValue(VariableInstanceEntity variable, Object value, String tenantId) Inserts a variable instance with the given value.
-
Method Details
-
createInternalVariableInstanceQuery
InternalVariableInstanceQuery createInternalVariableInstanceQuery() -
findVariableInstancesByExecutionId
-
findVariableInstanceByScopeIdAndScopeType
default List<VariableInstanceEntity> findVariableInstanceByScopeIdAndScopeType(String scopeId, String scopeType) -
findVariableInstanceBySubScopeIdAndScopeType
default List<VariableInstanceEntity> findVariableInstanceBySubScopeIdAndScopeType(String subScopeId, String scopeType) -
createVariableInstance
Create a variable instance with the given name and value for the given tenant.- Parameters:
name- the name of the variable to create- Returns:
- the
VariableInstanceEntityto be used
-
insertVariableInstance
-
insertVariableInstanceWithValue
void insertVariableInstanceWithValue(VariableInstanceEntity variable, Object value, String tenantId) Inserts a variable instance with the given value.- Parameters:
variable- the variable instance to insertvalue- the value to settenantId- the tenant id of the variable instance
-
deleteVariableInstance
-
deleteVariablesByExecutionId
-
deleteVariablesByTaskId
-