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(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddCaseVariableValues(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddHistoricCaseInstanceVariables(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddHistoricCaseVariableValues(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddHistoricProcessInstanceVariables(org.flowable.engine.history.HistoricProcessInstance processInstance, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddHistoricProcessVariableValues(org.flowable.engine.history.HistoricProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.engine.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(org.flowable.entitylink.api.EntityLink parentEntityLink, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddParentVariableValues(org.flowable.entitylink.api.history.HistoricEntityLink parentEntityLink, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddProcessInstanceVariables(org.flowable.engine.runtime.ProcessInstance processInstance, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voidaddProcessVariableValues(org.flowable.engine.runtime.ProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.engine.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(org.flowable.task.api.history.HistoricTaskInstance task, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static voidaddTaskVariables(org.flowable.task.api.Task task, Map<String, Object> variableMap, org.flowable.engine.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<org.flowable.cmmn.model.ExtensionElement> extensionElements, List<String> values) protected static voidcopyExtensionElementValuesToList(List<org.flowable.bpmn.model.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(org.flowable.variable.api.types.ValueFields valueFields, com.fasterxml.jackson.databind.ObjectMapper objectMapper) protected static voiddeepCopyJsonVariables(Map<String, Object> variableMap) static Objectdeserialize(byte[] bytes, org.flowable.variable.api.types.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, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService) static voidfilterCaseWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseInstanceId, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService) static voidfilterProcessWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String processInstanceId, org.flowable.engine.RuntimeService runtimeService, org.flowable.engine.HistoryService historyService, org.flowable.engine.RepositoryService repositoryService) static voidfilterTaskFormVariablesWithInputMapping(Map<String, Object> variableMap, org.flowable.task.api.Task task, org.flowable.engine.RuntimeService runtimeService, org.flowable.engine.RepositoryService repositoryService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService) filterVariableMap(List<org.flowable.variable.api.history.HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.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<org.flowable.cmmn.model.ExtensionElement> extensionElements) getExtensionElementValues(List<org.flowable.bpmn.model.ExtensionElement> extensionElements) getHistoricCaseVariableMap(org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getHistoricProcessVariableMap(org.flowable.engine.HistoryService historyService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getRuntimeCaseVariableMap(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) getRuntimeProcessVariableMap(org.flowable.engine.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(org.flowable.engine.runtime.ProcessInstance processInstance, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addCaseInstanceVariables
public static void addCaseInstanceVariables(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricProcessInstanceVariables
public static void addHistoricProcessInstanceVariables(org.flowable.engine.history.HistoricProcessInstance processInstance, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricCaseInstanceVariables
public static void addHistoricCaseInstanceVariables(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addTaskVariables
public static void addTaskVariables(org.flowable.task.api.Task task, Map<String, Object> variableMap, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addTaskVariables
public static void addTaskVariables(org.flowable.task.api.history.HistoricTaskInstance task, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterProcessWorkFormVariablesWithInputMapping
-
filterCaseWorkFormVariablesWithInputMapping
public static void filterCaseWorkFormVariablesWithInputMapping(Map<String, Object> variableMap, String caseInstanceId, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService) -
filterTaskFormVariablesWithInputMapping
public static void filterTaskFormVariablesWithInputMapping(Map<String, Object> variableMap, org.flowable.task.api.Task task, org.flowable.engine.RuntimeService runtimeService, org.flowable.engine.RepositoryService repositoryService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService) -
filterCasePageFormVariablesWithInputMapping
-
filterVariablesWithInputMapping
-
createFlowableDatabasePayloadObject
-
deepCopyJsonVariables
-
transformToRestValue
-
addCaseVariableValues
protected static void addCaseVariableValues(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addProcessVariableValues
protected static void addProcessVariableValues(org.flowable.engine.runtime.ProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricCaseVariableValues
protected static void addHistoricCaseVariableValues(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addHistoricProcessVariableValues
protected static void addHistoricProcessVariableValues(org.flowable.engine.history.HistoricProcessInstance processInstance, boolean useRootLevelOnly, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
protected static void addParentVariableValues(org.flowable.entitylink.api.EntityLink parentEntityLink, Map<String, Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
protected static void addParentVariableValues(org.flowable.entitylink.api.history.HistoricEntityLink parentEntityLink, Map<String, Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
addParentVariableValues
-
addScopeVariablesValues
-
getRuntimeCaseVariableMap
protected static Map<String,Object> getRuntimeCaseVariableMap(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getHistoricCaseVariableMap
protected static Map<String,Object> getHistoricCaseVariableMap(org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getRuntimeProcessVariableMap
protected static Map<String,Object> getRuntimeProcessVariableMap(org.flowable.engine.RuntimeService runtimeService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getHistoricProcessVariableMap
protected static Map<String,Object> getHistoricProcessVariableMap(org.flowable.engine.HistoryService historyService, String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer, CoreContentService coreContentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(List<org.flowable.variable.api.history.HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer, CoreContentService contentService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
filterVariableMap
public static Map<String,Object> filterVariableMap(Map<String, org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, org.flowable.engine.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
-
getExtensionElementValues
-
copyCmmnExtensionElementValuesToList
-
getCmmnExtensionElementValues
-
createTempContentItem
protected static VariableUtil.TempContentItemInfoHolder createTempContentItem(org.flowable.variable.api.types.ValueFields valueFields, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
deserialize
public static Object deserialize(byte[] bytes, org.flowable.variable.api.types.ValueFields valueFields) -
createObjectInputStream
- Throws:
IOException
-