public abstract class BaseVariableHandlingService extends AbstractActivityService
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<Object,com.edorasware.commons.core.entity.GroupId> |
OBJECT_2_GROUP_ID_FUNCTION |
static com.google.common.base.Function<Object,com.edorasware.commons.core.entity.UserId> |
OBJECT_2_USER_ID_FUNCTION |
gearExpressionResolver, genericWorkObjectService
Constructor and Description |
---|
BaseVariableHandlingService(com.edorasware.gear.core.expression.GearExpressionResolver gearExpressionResolver,
com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService) |
Modifier and Type | Method and Description |
---|---|
Date |
extractDate(Object variableValue) |
Integer |
extractPriority(Object variableValue) |
<T extends com.edorasware.commons.core.id.BaseId> |
extractSet(Object variableValue,
com.google.common.base.Function<Object,T> function) |
protected void |
handleVariableInitialization(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObjectInScope,
org.activiti.engine.delegate.DelegateExecution execution,
Map<String,Object> additionalContext,
Object variableResolutionContext,
Map.Entry<String,Collection<InitVariableData>> initVariableDataEntry)
Uses the given arguments to initialize the given variable.
|
protected void |
internalInitVariables(org.activiti.engine.delegate.DelegateExecution execution,
Object variableResolutionContext,
com.edorasware.commons.core.entity.WorkObject<?,?,?> workObjectInScope) |
protected com.fasterxml.jackson.databind.JsonNode |
parseJson(String json) |
protected com.google.common.collect.Multimap<String,InitVariableData> |
parseVariablePropertyMap(org.activiti.engine.delegate.DelegateExecution execution,
InitVariableData defaultValues) |
protected abstract Object |
resolveVariableValueExpression(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObject,
org.activiti.engine.delegate.DelegateExecution execution,
Map<String,Object> additionalContext,
Object resolver,
String variableValueExpression) |
getCurrentTaskStringProperties, getExpandedStringValue, getExpandedValue, getPropertyValue, getRootObject, getWorkObjectInScope, resolveGetExpression
public static final com.google.common.base.Function<Object,com.edorasware.commons.core.entity.UserId> OBJECT_2_USER_ID_FUNCTION
public static final com.google.common.base.Function<Object,com.edorasware.commons.core.entity.GroupId> OBJECT_2_GROUP_ID_FUNCTION
public BaseVariableHandlingService(com.edorasware.gear.core.expression.GearExpressionResolver gearExpressionResolver, com.edorasware.gear.core.generic.GenericWorkObjectService genericWorkObjectService)
protected void internalInitVariables(org.activiti.engine.delegate.DelegateExecution execution, Object variableResolutionContext, com.edorasware.commons.core.entity.WorkObject<?,?,?> workObjectInScope)
protected void handleVariableInitialization(com.edorasware.commons.core.entity.WorkObject<?,?,?> workObjectInScope, org.activiti.engine.delegate.DelegateExecution execution, Map<String,Object> additionalContext, Object variableResolutionContext, Map.Entry<String,Collection<InitVariableData>> initVariableDataEntry)
workObjectInScope
- the work object in scope.execution
- the delegate execution.additionalContext
- the additional context.variableResolutionContext
- the variable resolution context.initVariableDataEntry
- the init variable data objects.public <T extends com.edorasware.commons.core.id.BaseId> Set<T> extractSet(Object variableValue, com.google.common.base.Function<Object,T> function)
protected com.google.common.collect.Multimap<String,InitVariableData> parseVariablePropertyMap(org.activiti.engine.delegate.DelegateExecution execution, InitVariableData defaultValues) throws IOException
IOException
protected com.fasterxml.jackson.databind.JsonNode parseJson(String json) throws IOException
IOException
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.