Class VariableUtil
java.lang.Object
com.flowable.platform.service.util.VariableUtil
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCaseInstanceVariables(CaseInstance caseInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddCaseVariableValues(CaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddHistoricCaseInstanceVariables(HistoricCaseInstance caseInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddHistoricCaseVariableValues(HistoricCaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddHistoricProcessInstanceVariables(HistoricProcessInstance processInstance, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddHistoricProcessVariableValues(HistoricProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddParentVariableValues(String id, String name, String businessKey, String businessStatus, Date startTime, String startUserId, Date endTime, Map<String, Object> variableMap, Map<String, Object> parentVariableMap) protected static voidaddParentVariableValues(EntityLink parentEntityLink, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddParentVariableValues(HistoricEntityLink parentEntityLink, Map<String, Object> variableMap, HistoryService historyService, CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddProcessInstanceVariables(ProcessInstance processInstance, Map<String, Object> variableMap, RuntimeService runtimeService, CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddProcessVariableValues(ProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddScopeVariablesValues(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 voidaddTaskVariables(HistoricTaskInstance task, Map<String, Object> variableMap, HistoryService historyService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddTaskVariables(Task task, Map<String, Object> variableMap, TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidprotected static booleancontainsScopedVariable(String scopedName, List<String> valuesList) protected static voidcopyCmmnExtensionElementValuesToList(List<ExtensionElement> extensionElements, List<String> values) protected static voidcopyExtensionElementValuesToList(List<ExtensionElement> extensionElements, List<String> values) static voidcreateFlowableDatabasePayloadObject(Map<String, Object> variableMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static ObjectInputStreamprotected static StringcreateRegexMatchExpression(String inputValue) protected static VariableUtil.TempContentItemInfoHoldercreateTempContentItem(ValueFields valueFields, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voiddeepCopyJsonVariables(Map<String, Object> variableMap) static Objectdeserialize(byte[] bytes, ValueFields valueFields) protected static voidfillScopedVariableInMap(String scopedValue, Map<String, Object> scopedVariablesMap) protected static voidfillScopedVariablesInMap(List<String> scopedValues, Map<String, Object> scopedVariablesMap, List<String> generalMappings) protected static voidfilterAllowedScopedVariables(Object variableObject, Map<String, Object> allowedInputMap, List<String> generalAllowedInputMappings, String fullVariableName, boolean variableNameMatched) protected static voidfilterAllowedVariables(Object variableObject, Map<String, Object> allowedInputMap, List<String> generalAllowedInputMappings) protected static voidfilterBlockedScopedVariables(Object variableObject, Map<String, Object> blockedInputMap, List<String> generalBlockedInputMappings, String fullVariableName, boolean variableNameMatched) protected static voidfilterBlockedVariables(Object variableObject, Map<String, Object> blockedInputMap, List<String> generalBlockedInputMappings) static voidfilterCasePageFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseDefinitionId, String planItemDefinitionId, CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService) static voidfilterCaseWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseInstanceId, CmmnRuntimeService cmmnRuntimeService, CmmnHistoryService cmmnHistoryService, CmmnRepositoryService cmmnRepositoryService) static voidfilterProcessWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String processInstanceId, RuntimeService runtimeService, HistoryService historyService, RepositoryService repositoryService) static voidfilterTaskFormVariablesWithInputMapping(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 voidfilterVariablesWithInputMapping(Map<String, Object> variableMap, Map<String, Object> allowedInputMap, Map<String, Object> blockedInputMap, List<String> generalAllowedInputMappings, List<String> generalBlockedInputMappings) 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 voidhandlePotentialContentItems(Map<String, Object> variables, PlatformContentItemService contentService) protected static booleanhasMatchingAllowedScope(Object variableObject, String fullAllowedInput) protected static booleanhasMatchingGeneralMapping(Object variableObject, String fullVariableName, String fullAllowedInput) protected static ObjecttransformToRestValue(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, HistoryService historyService, RepositoryService repositoryService) -
filterCaseWorkFormVariablesWithInputMapping
public static void filterCaseWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseInstanceId, CmmnRuntimeService cmmnRuntimeService, CmmnHistoryService cmmnHistoryService, 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
-
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) -
filterAllowedVariables
-
filterAllowedScopedVariables
-
hasMatchingAllowedScope
-
hasMatchingGeneralMapping
-
filterBlockedVariables
-
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
-