Class VariableUtil
java.lang.Object
com.flowable.platform.service.util.VariableUtil
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCaseInstanceVariables
(CaseInstance caseInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addCaseVariableValues
(CaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static void
addHistoricCaseInstanceVariables
(HistoricCaseInstance caseInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addHistoricCaseVariableValues
(HistoricCaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static void
addHistoricProcessInstanceVariables
(HistoricProcessInstance processInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addHistoricProcessVariableValues
(HistoricProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addParentVariableValues
(String id, String name, String businessKey, String businessStatus, Date startTime, String startUserId, Date endTime, Map<String, Object> variableMap, Map<String, Object> parentVariableMap) protected static void
addParentVariableValues
(EntityLink parentEntityLink, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addParentVariableValues
(HistoricEntityLink parentEntityLink, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static void
addProcessInstanceVariables
(ProcessInstance processInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addProcessVariableValues
(ProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
addScopeVariablesValues
(String id, String name, String businessKey, String businessStatus, Date startTime, String startUserId, Date endTime, boolean useScopeLevelOnly, Map<String, Object> variableMap, Map<String, Object> scopeVariables) static void
addTaskVariables
(HistoricTaskInstance task, Map<String, Object> variableMap, HistoryService historyService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static void
addTaskVariables
(Task task, Map<String, Object> variableMap, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
protected static boolean
containsScopedVariable
(String scopedName, List<String> valuesList) protected static void
copyCmmnExtensionElementValuesToList
(List<ExtensionElement> extensionElements, List<String> values) protected static void
copyExtensionElementValuesToList
(List<ExtensionElement> extensionElements, List<String> values) static void
createFlowableDatabasePayloadObject
(Map<String, Object> variableMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static ObjectInputStream
protected static String
createRegexMatchExpression
(String inputValue) protected static VariableUtil.TempContentItemInfoHolder
createTempContentItem
(ValueFields valueFields, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
deepCopyJsonVariables
(Map<String, Object> variableMap) static Object
deserialize
(byte[] bytes, ValueFields valueFields) protected static void
protected static void
fillScopedVariableInMap
(String scopedValue, Map<String, Object> scopedVariablesMap) protected static void
protected static void
filterAllowedScopedVariables
(Object variableObject, Map<String, Object> allowedInputMap, String fullVariableName, boolean variableNameMatched) protected static void
filterBlockedScopedVariables
(Object variableObject, Map<String, Object> blockedInputMap, String fullVariableName, boolean variableNameMatched) static void
filterCasePageFormVariablesWithInputMapping
(Map<String, Object> variableMap, String caseDefinitionId, String planItemDefinitionId, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) static void
filterCaseWorkFormVariablesWithInputMapping
(Map<String, Object> variableMap, String caseInstanceId, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) static void
filterProcessWorkFormVariablesWithInputMapping
(Map<String, Object> variableMap, String processInstanceId, RuntimeService runtimeService, RepositoryService repositoryService) static void
filterTaskFormVariablesWithInputMapping
(Map<String, Object> variableMap, Task task, RuntimeService runtimeService, RepositoryService repositoryService, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) filterVariableMap
(List<HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap
(Map<String, VariableInstance> variableInstances, CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap
(Map<String, VariableInstance> variableInstances, RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap
(Map<String, VariableInstance> variableInstances, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap
(Map<String, VariableInstance> variableInstances, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
filterVariablesWithInputMapping
(Map<String, Object> variableMap, Map<String, Object> allowedInputMap, Map<String, Object> blockedInputMap) getCmmnExtensionElementValues
(List<ExtensionElement> extensionElements) getExtensionElementValues
(List<ExtensionElement> extensionElements) getHistoricCaseVariableMap
(CmmnHistoryService cmmnHistoryService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getHistoricProcessVariableMap
(HistoryService historyService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getRuntimeCaseVariableMap
(CmmnRuntimeService cmmnRuntimeService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getRuntimeProcessVariableMap
(RuntimeService runtimeService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static void
handlePotentialContentItems
(Map<String, Object> variables, PlatformContentItemService contentService) protected static boolean
hasMatchingAllowedScope
(Object variableObject, String fullVariableName, String fullAllowedInput) protected static Object
transformToRestValue
(Object value)
-
Field Details
-
PRIMITIVE_VARIABLE_TYPES
-
EXCLUDE_TYPES
-
-
Method Details
-
addProcessInstanceVariables
public static void addProcessInstanceVariables(ProcessInstance processInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addCaseInstanceVariables
public static void addCaseInstanceVariables(CaseInstance caseInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricProcessInstanceVariables
public static void addHistoricProcessInstanceVariables(HistoricProcessInstance processInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricCaseInstanceVariables
public static void addHistoricCaseInstanceVariables(HistoricCaseInstance caseInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addTaskVariables
public static void addTaskVariables(Task task, Map<String, Object> variableMap, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addTaskVariables
public static void addTaskVariables(HistoricTaskInstance task, Map<String, Object> variableMap, HistoryService historyService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterProcessWorkFormVariablesWithInputMapping
public static void filterProcessWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String processInstanceId, RuntimeService runtimeService, RepositoryService repositoryService) -
filterCaseWorkFormVariablesWithInputMapping
public static void filterCaseWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseInstanceId, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) -
filterTaskFormVariablesWithInputMapping
public static void filterTaskFormVariablesWithInputMapping(Map<String, Object> variableMap, Task task, RuntimeService runtimeService, RepositoryService repositoryService, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) -
filterCasePageFormVariablesWithInputMapping
public static void filterCasePageFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseDefinitionId, String planItemDefinitionId, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) -
filterVariablesWithInputMapping
-
createFlowableDatabasePayloadObject
-
deepCopyJsonVariables
-
fillPrefixValues
-
transformToRestValue
-
addCaseVariableValues
protected static void addCaseVariableValues(CaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addProcessVariableValues
protected static void addProcessVariableValues(ProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricCaseVariableValues
protected static void addHistoricCaseVariableValues(HistoricCaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricProcessVariableValues
protected static void addHistoricProcessVariableValues(HistoricProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
protected static void addParentVariableValues(EntityLink parentEntityLink, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
protected static void addParentVariableValues(HistoricEntityLink parentEntityLink, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
-
addScopeVariablesValues
-
getRuntimeCaseVariableMap
protected static Map<String,Object> getRuntimeCaseVariableMap(CmmnRuntimeService cmmnRuntimeService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getHistoricCaseVariableMap
protected static Map<String,Object> getHistoricCaseVariableMap(CmmnHistoryService cmmnHistoryService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getRuntimeProcessVariableMap
protected static Map<String,Object> getRuntimeProcessVariableMap(RuntimeService runtimeService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getHistoricProcessVariableMap
protected static Map<String,Object> getHistoricProcessVariableMap(HistoryService historyService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(List<HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, VariableInstance> variableInstances, RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, VariableInstance> variableInstances, CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, VariableInstance> variableInstances, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, VariableInstance> variableInstances, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
handlePotentialContentItems
protected static void handlePotentialContentItems(Map<String, Object> variables, PlatformContentItemService contentService) -
filterAllowedScopedVariables
-
hasMatchingAllowedScope
-
filterBlockedScopedVariables
-
containsScopedVariable
-
fillScopedVariablesInMap
-
fillScopedVariableInMap
-
createRegexMatchExpression
-
addToMapIfNotEmpty
-
copyExtensionElementValuesToList
protected static void copyExtensionElementValuesToList(List<ExtensionElement> extensionElements, List<String> values) -
getExtensionElementValues
-
copyCmmnExtensionElementValuesToList
protected static void copyCmmnExtensionElementValuesToList(List<ExtensionElement> extensionElements, List<String> values) -
getCmmnExtensionElementValues
protected static List<String> getCmmnExtensionElementValues(List<ExtensionElement> extensionElements) -
createTempContentItem
protected static VariableUtil.TempContentItemInfoHolder createTempContentItem(ValueFields valueFields, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
deserialize
-
createObjectInputStream
- Throws:
IOException
-