public class ExpressionUtil extends Object
| Constructor and Description |
|---|
ExpressionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
evaluateAutoComplete(CommandContext commandContext,
VariableContainer variableContainer,
org.flowable.cmmn.model.Stage stage)
Returns true, if the given stage has an auto-complete condition which evaluates to true or if not, is in auto-complete mode permanently.
|
static boolean |
evaluateBooleanExpression(CommandContext commandContext,
VariableContainer variableContainer,
String condition) |
static Object |
evaluateExpression(CommandContext commandContext,
VariableContainer variableContainer,
String expression) |
static Iterable<Object> |
evaluateRepetitionCollectionVariableValue(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity)
Evaluates the collection variable name or expression given by the plan items repetition rule and returns its evaluated collection as a list.
|
static boolean |
evaluateRepetitionRule(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity,
PlanItemInstanceContainer planItemInstanceContainer)
Returns true, if: the given plan item instance has a repetition rule at all and if so, if it has a condition witch is satisfied and all in combination
with the optional max instance count attribute.
|
static boolean |
evaluateRepetitionRule(CommandContext commandContext,
VariableContainer variableContainer,
String repetitionCondition) |
static org.flowable.cmmn.model.RepetitionRule |
getRepetitionRule(PlanItemInstanceEntity planItemInstanceEntity)
Returns the repetition rule, if the given plan item instance has one, null otherwise.
|
static boolean |
hasOnParts(org.flowable.cmmn.model.PlanItem planItem)
Checks the given plan item to have at least one on-part.
|
static boolean |
hasRepetitionOnCollection(org.flowable.cmmn.model.PlanItem planItem)
Returns true, if the given plan item instance has a repetition rule which is based on a collection variable, false, if there is no repetition rule at
all or if it is not based on a collection variable.
|
static boolean |
hasRepetitionOnCollection(PlanItemInstanceEntity planItemInstanceEntity)
Returns true, if the given plan item instance has a repetition rule which is based on a collection variable, false, if there is no repetition rule at
all or if it is not based on a collection variable.
|
static boolean |
hasRepetitionRule(org.flowable.cmmn.model.PlanItem planItem) |
static boolean |
hasRepetitionRule(PlanItemInstanceEntity planItemInstanceEntity) |
static boolean |
isCompletionNeutralPlanItemInstance(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity) |
static boolean |
isCompletionNeutralPlanItemInstance(PlanItemInstanceEntity planItemInstanceEntity) |
static boolean |
isRequiredPlanItemInstance(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity) |
static List<PlanItemInstance> |
searchNonFinishedEqualPlanItemInstances(PlanItemInstanceEntity planItemInstanceEntity,
PlanItemInstanceContainer planItemInstanceContainer)
Searches for non-finished plan item instances within the given container to be of the same plan item as the given instance.
|
public static boolean evaluateBooleanExpression(CommandContext commandContext, VariableContainer variableContainer, String condition)
public static Object evaluateExpression(CommandContext commandContext, VariableContainer variableContainer, String expression)
public static boolean isRequiredPlanItemInstance(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity)
public static boolean hasOnParts(org.flowable.cmmn.model.PlanItem planItem)
planItem - the plan item to check for an on-partpublic static boolean hasRepetitionRule(PlanItemInstanceEntity planItemInstanceEntity)
public static boolean hasRepetitionRule(org.flowable.cmmn.model.PlanItem planItem)
public static org.flowable.cmmn.model.RepetitionRule getRepetitionRule(PlanItemInstanceEntity planItemInstanceEntity)
planItemInstanceEntity - the plan item instance to check for a repetition rulepublic static boolean hasRepetitionOnCollection(PlanItemInstanceEntity planItemInstanceEntity)
planItemInstanceEntity - the plan item instance to check for a repetition rule based on a collectionpublic static boolean hasRepetitionOnCollection(org.flowable.cmmn.model.PlanItem planItem)
planItem - the plan item to check for a repetition rule based on a collectionpublic static Iterable<Object> evaluateRepetitionCollectionVariableValue(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity)
commandContext - the command context to be used for evaluating the expressionplanItemInstanceEntity - the plan item instance to evaluate the collection variable given by its repetition rulepublic static boolean evaluateRepetitionRule(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, PlanItemInstanceContainer planItemInstanceContainer)
commandContext - the command context in which this evaluation is taking placeplanItemInstanceEntity - the plan item instance entity to test for a repetition rule to evaluate to trueplanItemInstanceContainer - the container (usually the parent stage of the plan item instance) to get access to child plan itemspublic static List<PlanItemInstance> searchNonFinishedEqualPlanItemInstances(PlanItemInstanceEntity planItemInstanceEntity, PlanItemInstanceContainer planItemInstanceContainer)
planItemInstanceEntity - the plan item instance to search for instances of the same plan item within the containerplanItemInstanceContainer - the container to search for child plan item instances of the same plan itempublic static boolean evaluateRepetitionRule(CommandContext commandContext, VariableContainer variableContainer, String repetitionCondition)
public static boolean isCompletionNeutralPlanItemInstance(PlanItemInstanceEntity planItemInstanceEntity)
public static boolean isCompletionNeutralPlanItemInstance(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity)
public static boolean evaluateAutoComplete(CommandContext commandContext, VariableContainer variableContainer, org.flowable.cmmn.model.Stage stage)
commandContext - the command context in which the method is invokedvariableContainer - the variable container (most likely the plan item representing the stage or case plan model) used to evaluate the condition againststage - the stage model object to get its auto-complete condition fromCopyright © 2021 Flowable. All rights reserved.