Class VariableContainerUtil
java.lang.Object
com.flowable.platform.common.util.VariableContainerUtil
public class VariableContainerUtil
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static java.lang.StringgetDefinitionDeploymentId(java.lang.String processDefinitionId)static org.flowable.common.engine.impl.el.ExpressionManagergetExpressionManager(org.flowable.common.engine.api.variable.VariableContainer variableContainer)static java.lang.StringgetNonNullScopeType(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope type, for CMMN and process engine contextsstatic java.lang.StringgetParentDeploymentId(org.flowable.common.engine.api.variable.VariableContainer variableContainer)static java.lang.StringgetProcessInstanceId(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the processInstanceId, only if the variable container is process related.static java.lang.StringgetScopeId(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope id, when running in a non-process engine context.static java.lang.StringgetScopeType(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope type, when running in a non-process-engine engine.
-
Method Details
-
getProcessInstanceId
public static java.lang.String getProcessInstanceId(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the processInstanceId, only if the variable container is process related. -
getScopeId
public static java.lang.String getScopeId(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope id, when running in a non-process engine context. -
getScopeType
public static java.lang.String getScopeType(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope type, when running in a non-process-engine engine. -
getNonNullScopeType
public static java.lang.String getNonNullScopeType(org.flowable.common.engine.api.variable.VariableContainer variableContainer)Returns the scope type, for CMMN and process engine contexts- Throws:
org.flowable.common.engine.api.FlowableException- in the case when scope type was not recognized
-
getParentDeploymentId
public static java.lang.String getParentDeploymentId(org.flowable.common.engine.api.variable.VariableContainer variableContainer) -
getDefinitionDeploymentId
public static java.lang.String getDefinitionDeploymentId(java.lang.String processDefinitionId) -
getExpressionManager
public static org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager(org.flowable.common.engine.api.variable.VariableContainer variableContainer)
-