Class VariableUtil

java.lang.Object
com.flowable.platform.service.util.VariableUtil

public class VariableUtil
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.List<java.lang.String> EXCLUDE_TYPES  
    static java.util.List<java.lang.String> PRIMITIVE_VARIABLE_TYPES  
  • Method Summary

    Modifier and Type Method Description
    static void addCaseInstanceVariables​(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addCaseVariableValues​(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    static void addHistoricCaseInstanceVariables​(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addHistoricCaseVariableValues​(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    static void addHistoricProcessInstanceVariables​(org.flowable.engine.history.HistoricProcessInstance processInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addHistoricProcessVariableValues​(org.flowable.engine.history.HistoricProcessInstance processInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addParentVariableValues​(java.lang.String id, java.lang.String name, java.lang.String businessKey, java.util.Date startTime, java.lang.String startUserId, java.util.Date endTime, java.util.Map<java.lang.String,​java.lang.Object> variableMap, java.util.Map<java.lang.String,​java.lang.Object> parentVariableMap)  
    protected static void addParentVariableValues​(org.flowable.entitylink.api.EntityLink parentEntityLink, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addParentVariableValues​(org.flowable.entitylink.api.history.HistoricEntityLink parentEntityLink, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    static void addProcessInstanceVariables​(org.flowable.engine.runtime.ProcessInstance processInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addProcessVariableValues​(org.flowable.engine.runtime.ProcessInstance processInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addScopeVariablesValues​(java.lang.String id, java.lang.String name, java.lang.String businessKey, java.util.Date startTime, java.lang.String startUserId, java.util.Date endTime, boolean useScopeLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, java.util.Map<java.lang.String,​java.lang.Object> scopeVariables)  
    static void addTaskVariables​(org.flowable.task.api.history.HistoricTaskInstance task, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformRestVariableTransformer variableTransformer)  
    static void addTaskVariables​(org.flowable.task.api.Task task, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer)  
    protected static void addToMapIfNotEmpty​(java.lang.String value, java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> variableMap)  
    static void createFlowableDatabasePayloadObject​(java.util.Map<java.lang.String,​java.lang.Object> variableMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
    static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.List<org.flowable.variable.api.history.HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer)  
    static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer)  
    static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer)  
    static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.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)  
    static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer)  
    protected static java.util.Map<java.lang.String,​java.lang.Object> getHistoricCaseVariableMap​(org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, java.lang.String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static java.util.Map<java.lang.String,​java.lang.Object> getHistoricProcessVariableMap​(org.flowable.engine.HistoryService historyService, java.lang.String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static java.util.Map<java.lang.String,​java.lang.Object> getRuntimeCaseVariableMap​(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, java.lang.String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static java.util.Map<java.lang.String,​java.lang.Object> getRuntimeProcessVariableMap​(org.flowable.engine.RuntimeService runtimeService, java.lang.String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)  
    protected static void handlePotentialContentItems​(java.util.Map<java.lang.String,​java.lang.Object> variables, PlatformContentItemService contentService)  
    protected static java.lang.Object transformToRestValue​(java.lang.Object value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PRIMITIVE_VARIABLE_TYPES

      public static final java.util.List<java.lang.String> PRIMITIVE_VARIABLE_TYPES
    • EXCLUDE_TYPES

      public static final java.util.List<java.lang.String> EXCLUDE_TYPES
  • Method Details

    • addProcessInstanceVariables

      public static void addProcessInstanceVariables​(org.flowable.engine.runtime.ProcessInstance processInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addCaseInstanceVariables

      public static void addCaseInstanceVariables​(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addHistoricProcessInstanceVariables

      public static void addHistoricProcessInstanceVariables​(org.flowable.engine.history.HistoricProcessInstance processInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addHistoricCaseInstanceVariables

      public static void addHistoricCaseInstanceVariables​(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addTaskVariables

      public static void addTaskVariables​(org.flowable.task.api.Task task, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer)
    • addTaskVariables

      public static void addTaskVariables​(org.flowable.task.api.history.HistoricTaskInstance task, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformRestVariableTransformer variableTransformer)
    • createFlowableDatabasePayloadObject

      public static void createFlowableDatabasePayloadObject​(java.util.Map<java.lang.String,​java.lang.Object> variableMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • transformToRestValue

      protected static java.lang.Object transformToRestValue​(java.lang.Object value)
    • addCaseVariableValues

      protected static void addCaseVariableValues​(org.flowable.cmmn.api.runtime.CaseInstance caseInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addProcessVariableValues

      protected static void addProcessVariableValues​(org.flowable.engine.runtime.ProcessInstance processInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addHistoricCaseVariableValues

      protected static void addHistoricCaseVariableValues​(org.flowable.cmmn.api.history.HistoricCaseInstance caseInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addHistoricProcessVariableValues

      protected static void addHistoricProcessVariableValues​(org.flowable.engine.history.HistoricProcessInstance processInstance, boolean useRootLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addParentVariableValues

      protected static void addParentVariableValues​(org.flowable.entitylink.api.EntityLink parentEntityLink, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.RuntimeService runtimeService, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addParentVariableValues

      protected static void addParentVariableValues​(org.flowable.entitylink.api.history.HistoricEntityLink parentEntityLink, java.util.Map<java.lang.String,​java.lang.Object> variableMap, org.flowable.engine.HistoryService historyService, org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • addParentVariableValues

      protected static void addParentVariableValues​(java.lang.String id, java.lang.String name, java.lang.String businessKey, java.util.Date startTime, java.lang.String startUserId, java.util.Date endTime, java.util.Map<java.lang.String,​java.lang.Object> variableMap, java.util.Map<java.lang.String,​java.lang.Object> parentVariableMap)
    • addScopeVariablesValues

      protected static void addScopeVariablesValues​(java.lang.String id, java.lang.String name, java.lang.String businessKey, java.util.Date startTime, java.lang.String startUserId, java.util.Date endTime, boolean useScopeLevelOnly, java.util.Map<java.lang.String,​java.lang.Object> variableMap, java.util.Map<java.lang.String,​java.lang.Object> scopeVariables)
    • getRuntimeCaseVariableMap

      protected static java.util.Map<java.lang.String,​java.lang.Object> getRuntimeCaseVariableMap​(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, java.lang.String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • getHistoricCaseVariableMap

      protected static java.util.Map<java.lang.String,​java.lang.Object> getHistoricCaseVariableMap​(org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService, java.lang.String caseInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • getRuntimeProcessVariableMap

      protected static java.util.Map<java.lang.String,​java.lang.Object> getRuntimeProcessVariableMap​(org.flowable.engine.RuntimeService runtimeService, java.lang.String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • getHistoricProcessVariableMap

      protected static java.util.Map<java.lang.String,​java.lang.Object> getHistoricProcessVariableMap​(org.flowable.engine.HistoryService historyService, java.lang.String processInstanceId, PlatformContentItemService contentService, PlatformRestVariableTransformer variableTransformer)
    • filterVariableMap

      public static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.List<org.flowable.variable.api.history.HistoricVariableInstance> variableInstances, PlatformRestVariableTransformer variableTransformer)
    • filterVariableMap

      public static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.RuntimeService runtimeService, PlatformRestVariableTransformer variableTransformer)
    • filterVariableMap

      public static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService, PlatformRestVariableTransformer variableTransformer)
    • filterVariableMap

      public static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.String,​org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, org.flowable.engine.TaskService taskService, PlatformRestVariableTransformer variableTransformer)
    • filterVariableMap

      public static java.util.Map<java.lang.String,​java.lang.Object> filterVariableMap​(java.util.Map<java.lang.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)
    • handlePotentialContentItems

      protected static void handlePotentialContentItems​(java.util.Map<java.lang.String,​java.lang.Object> variables, PlatformContentItemService contentService)
    • addToMapIfNotEmpty

      protected static void addToMapIfNotEmpty​(java.lang.String value, java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> variableMap)