Interface DecisionInstance
- All Known Implementing Classes:
DecisionInstanceImpl
public interface DecisionInstance
-
Method Details
-
getDecisionInstanceKey
long getDecisionInstanceKey()- Returns:
- the key of the decision instance
-
getDecisionInstanceId
String getDecisionInstanceId()- Returns:
- the ID of the decision instance
-
getState
DecisionInstanceState getState()- Returns:
- the state of the decision instance
-
getEvaluationDate
OffsetDateTime getEvaluationDate()- Returns:
- the evaluation date of the decision instance
-
getEvaluationFailure
String getEvaluationFailure()- Returns:
- the evaluation failure of the decision instance
-
getProcessDefinitionKey
Long getProcessDefinitionKey()- Returns:
- the process definition key of the decision instance
-
getProcessInstanceKey
Long getProcessInstanceKey()- Returns:
- the process instance id of the decision instance
-
getRootProcessInstanceKey
Long getRootProcessInstanceKey()Returns the key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy.Note: This field is
nullfor process instance hierarchies created before version 8.9.- Returns:
- the root process instance key, or
nullfor data created before version 8.9
-
getBusinessId
String getBusinessId()Returns the business ID of the owning process instance, inherited when the decision instance was evaluated.Note: This field is
nullfor decision instances created before version 8.10, for standalone decision evaluations, and when the owning process instance has no business ID.- Returns:
- the business ID, or
nullwhen not set
-
getElementInstanceKey
Long getElementInstanceKey()- Returns:
- the element instance key of the decision instance
-
getDecisionDefinitionKey
long getDecisionDefinitionKey()- Returns:
- the decision definition key of the decision instance
-
getDecisionDefinitionId
String getDecisionDefinitionId()- Returns:
- the decision definition id of the decision instance
-
getDecisionDefinitionName
String getDecisionDefinitionName()- Returns:
- the decision definition name of the decision instance
-
getDecisionDefinitionVersion
int getDecisionDefinitionVersion()- Returns:
- the decision definition version of the decision instance
-
getDecisionDefinitionType
DecisionDefinitionType getDecisionDefinitionType()- Returns:
- the decision type of the decision instance
-
getRootDecisionDefinitionKey
long getRootDecisionDefinitionKey()- Returns:
- the root decision definition key of the decision instance
-
getTenantId
String getTenantId()- Returns:
- the tenant id of the decision instance
-
getEvaluatedInputs
List<EvaluatedDecisionInput> getEvaluatedInputs()- Returns:
- the decision inputs that were evaluated within this decision instance
-
getMatchedRules
List<MatchedDecisionRule> getMatchedRules()- Returns:
- the decision rules that matched within this decision instance
-
getResult
String getResult()- Returns:
- the evaluation result
-
toJson
String toJson()- Returns:
- the entity encoded as JSON
-