public class RestVariableHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
INTERNAL_PROPERTIES |
| Constructor and Description |
|---|
RestVariableHelper() |
public void setNodeService(NodeService nodeService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
protected WorkflowQNameConverter getQNameConverter()
public List<TaskVariable> getTaskVariables(Map<String,Object> localVariables, Map<String,Object> globalVariables, org.alfresco.service.cmr.dictionary.TypeDefinition startFormTypeDefinition, org.alfresco.service.cmr.dictionary.TypeDefinition taskTypeDefinition)
localVariables - raw local task variables, can be null.globalvariables - raw global taks variables, can be null.typeDefinition - the typê definition for this task, used to extract types.TaskVariable, representing the given raw variablespublic List<Variable> getVariables(Map<String,Object> variables, org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition)
variables - raw variablestypeDefinition - the typê definition for the start-task of the process, used to extract types.Variable, representing the given raw variablespublic void addTaskVariables(List<TaskVariable> result, Map<String,Object> variables, TypeDefinitionContext context, VariableScope scope)
TaskVariables and adds them to the given result-list.protected void setVariableValueAndType(Variable variable, Object value, TypeDefinitionContext context)
TypeDefinition, the data-type is used. If it's not
defined, the type is deducted from the raw variable value.protected Object getAssociationRepresentation(Object value, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)
protected String getRepresentationForNodeRef(Object value, org.alfresco.service.cmr.dictionary.ClassDefinition classDefinition)
public org.alfresco.service.namespace.QName extractTypeFromValue(Object value)
Copyright © 2005–2014 Alfresco Software. All rights reserved.