public class CompletionEvaluationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isCompletable |
protected PlanItemInstanceEntity |
planItemInstance |
protected boolean |
shouldBeCompleted |
| Constructor and Description |
|---|
CompletionEvaluationResult(boolean isCompletable,
boolean shouldBeCompleted,
PlanItemInstanceEntity planItemInstance) |
| Modifier and Type | Method and Description |
|---|---|
PlanItemInstanceEntity |
getPlanItemInstance()
Returns the first plan item preventing the stage or case from being completed.
|
boolean |
isCompletable()
Returns true, if the plan item (most likely a stage or a case plan model) is completable, meaning, there is no more active or required work to be done,
but it might still have available or enabled plan items.
|
boolean |
shouldBeCompleted()
Returns true, if the plan item (most likely a stage or case plan model) should be completed according the state of all of its enclosed plan items, their
required rules, availability state and the plan items autocomplete mode.
|
protected final boolean isCompletable
protected final boolean shouldBeCompleted
protected final PlanItemInstanceEntity planItemInstance
public CompletionEvaluationResult(boolean isCompletable,
boolean shouldBeCompleted,
PlanItemInstanceEntity planItemInstance)
public boolean isCompletable()
public boolean shouldBeCompleted()
public PlanItemInstanceEntity getPlanItemInstance()
isCompletable() is true, otherwise it
contains the plan item which first prevented it from being completed.Copyright © 2021 Flowable. All rights reserved.