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.void
deleteVariableInstance
(VariableInstanceEntity variable) void
deleteVariablesByExecutionId
(String executionId) void
deleteVariablesByTaskId
(String taskId) default List<VariableInstanceEntity>
findVariableInstanceByScopeIdAndScopeType
(String scopeId, String scopeType) default List<VariableInstanceEntity>
findVariableInstanceBySubScopeIdAndScopeType
(String subScopeId, String scopeType) default List<VariableInstanceEntity>
findVariableInstancesByExecutionId
(String executionId) void
insertVariableInstance
(VariableInstanceEntity variable) void
insertVariableInstanceWithValue
(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
VariableInstanceEntity
to 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
-