public class ProcessVariableHandlingService extends BaseVariableHandlingService
allowVariableReferencesInInitVariableTask, OBJECT_2_GROUP_ID_FUNCTION, OBJECT_2_USER_ID_FUNCTION
gearExpressionResolver, genericWorkObjectService, propagateError
Constructor and Description |
---|
ProcessVariableHandlingService(com.edorasware.gear.core.expression.GearExpressionResolver gearExpressionResolver,
com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService,
boolean propagateError) |
Modifier and Type | Method and Description |
---|---|
void |
expandReferencedVariables(org.activiti.engine.delegate.DelegateExecution execution,
String... variableNames)
Use this method to expand variables with a referenced work item id.
|
protected Map<String,Object> |
extractVariables(Object... variableNamesAndValues) |
void |
initQueryListVariablesFromProperties(org.activiti.engine.delegate.DelegateExecution execution)
Use this method to initialize variables on a result list of work objects given by a query string and variable properties.
|
void |
initVariables(org.activiti.engine.delegate.DelegateExecution execution,
Object... variableNamesAndValues)
Use this method to initialize variables, if they have not yet been set on the process scope.
|
void |
initVariablesFromProperties(org.activiti.engine.delegate.DelegateExecution execution)
Use this method to initialize variables through the specific init Variable service task.
|
protected Object |
resolveVariableValueExpression(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObject,
org.activiti.engine.delegate.DelegateExecution execution,
Map<String,Object> additionalContext,
Object resolver,
String variableValueExpression) |
protected void |
setVariables(org.activiti.engine.delegate.DelegateExecution execution,
boolean overwrite,
Object... variableNamesAndValues) |
void |
setVariables(org.activiti.engine.delegate.DelegateExecution execution,
Object... variableNamesAndValues)
Use this method to set variables, even if they have been set on the process scope already, they will be overwritten.
|
extractDate, extractPriority, extractSet, handleVariableInitialization, internalInitVariables, parseJson, parseVariablePropertyMap
getEdorasPropertyMapForCurrentActivity, getExpandedStringValue, getExpandedValue, getPropertyValue, getRootObject, getWorkObjectInScope, resolveGetExpression
public ProcessVariableHandlingService(com.edorasware.gear.core.expression.GearExpressionResolver gearExpressionResolver, com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService, boolean propagateError)
public void initVariablesFromProperties(org.activiti.engine.delegate.DelegateExecution execution)
execution
- the activity execution contextpublic void initQueryListVariablesFromProperties(org.activiti.engine.delegate.DelegateExecution execution)
execution
- the activity execution contextpublic void initVariables(org.activiti.engine.delegate.DelegateExecution execution, Object... variableNamesAndValues)
#{processVariables.initVariables(execution,"variableName1","fixedVariable1Value","variableName1",owner.id.value)}
execution
- the activity execution contextvariableNamesAndValues
- the variable names and values.public void setVariables(org.activiti.engine.delegate.DelegateExecution execution, Object... variableNamesAndValues)
#{processVariables.setVariables(execution,"variableName1","fixedVariable1Value","variableName1",owner.id.value)}
execution
- the activity execution contextvariableNamesAndValues
- the variable names and values.public void expandReferencedVariables(org.activiti.engine.delegate.DelegateExecution execution, String... variableNames)
#{processVariables.expandReferencedVariables(execution,"workItemRefId1","targetVariableName1","propertyNameOnRef1","workItemRefId2","targetVariableName2",
"propertyNameOnRef2")}
execution
- the activity execution contextvariableNames
- the variable names.protected void setVariables(org.activiti.engine.delegate.DelegateExecution execution, boolean overwrite, Object... variableNamesAndValues)
protected Object resolveVariableValueExpression(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObject, org.activiti.engine.delegate.DelegateExecution execution, Map<String,Object> additionalContext, Object resolver, String variableValueExpression)
resolveVariableValueExpression
in class BaseVariableHandlingService
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.