public class PlanItemInstanceContainerUtil extends Object
| Constructor and Description |
|---|
PlanItemInstanceContainerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isParentCompletionRuleForPlanItemEqualToType(PlanItemInstanceEntity planItemInstance,
String parentCompletionRuleType)
Checks the plan items parent completion mode to be equal to a given type and returns true if so.
|
static boolean |
isPlanItemAlreadyCompleted(CommandContext commandContext,
PlanItemInstanceEntity planItemInstance)
Searches for completed plan items with the same plan item id as the given one.
|
static boolean |
shouldIgnorePlanItemForCompletion(CommandContext commandContext,
PlanItemInstanceEntity planItemInstance,
boolean alreadyCompleted)
Evaluates the plan item for being ignored for completion, if it was at least completed once before.
|
static CompletionEvaluationResult |
shouldPlanItemContainerComplete(CommandContext commandContext,
PlanItemInstanceContainer planItemInstanceContainer,
boolean containerIsAutocomplete) |
static CompletionEvaluationResult |
shouldPlanItemContainerComplete(CommandContext commandContext,
PlanItemInstanceContainer planItemInstanceContainer,
Collection<String> planItemInstanceIdsToIgnore,
boolean containerIsAutocomplete)
Method to check a plan item container (most likely a stage or case plan model) if it should be completed according its child plan item states and their
combined behavior rules (e.g.
|
static CompletionEvaluationResult |
shouldPlanItemContainerComplete(PlanItemInstanceContainer planItemInstanceContainer,
boolean containerIsAutocomplete) |
static CompletionEvaluationResult |
shouldPlanItemContainerComplete(PlanItemInstanceContainer planItemInstanceContainer,
Collection<String> planItemInstanceIdsToIgnore,
boolean containerIsAutocomplete) |
public static CompletionEvaluationResult shouldPlanItemContainerComplete(PlanItemInstanceContainer planItemInstanceContainer, boolean containerIsAutocomplete)
public static CompletionEvaluationResult shouldPlanItemContainerComplete(CommandContext commandContext, PlanItemInstanceContainer planItemInstanceContainer, boolean containerIsAutocomplete)
public static CompletionEvaluationResult shouldPlanItemContainerComplete(PlanItemInstanceContainer planItemInstanceContainer, Collection<String> planItemInstanceIdsToIgnore, boolean containerIsAutocomplete)
public static CompletionEvaluationResult shouldPlanItemContainerComplete(CommandContext commandContext, PlanItemInstanceContainer planItemInstanceContainer, Collection<String> planItemInstanceIdsToIgnore, boolean containerIsAutocomplete)
commandContext - the command context in which the method is to be executedplanItemInstanceContainer - the plan item container to evaluate is completable state (most likely a stage or case plan model)planItemInstanceIdsToIgnore - an optional list of plan item ids to be ignored for evaluating the parent completing state, might be null or emptycontainerIsAutocomplete - true, if the plan item container is in autocomplete mode, false, if notpublic static boolean shouldIgnorePlanItemForCompletion(CommandContext commandContext, PlanItemInstanceEntity planItemInstance, boolean alreadyCompleted)
commandContext - the command context under which this method is invokedplanItemInstance - the plan item to evaluate its completed statealreadyCompleted - true, if the plan item has been completed before alreadypublic static boolean isPlanItemAlreadyCompleted(CommandContext commandContext, PlanItemInstanceEntity planItemInstance)
commandContext - the command context under which this method is invokedplanItemInstance - the plan item instance to search for already completed instancespublic static boolean isParentCompletionRuleForPlanItemEqualToType(PlanItemInstanceEntity planItemInstance, String parentCompletionRuleType)
planItemInstance - the plan item to check for a parent completion modeparentCompletionRuleType - the parent completion type to check againstCopyright © 2021 Flowable. All rights reserved.