Class RequirementStatusUtil
java.lang.Object
ch.tocco.nice2.optional.educationrequirement.impl.requirementevaluation.globals.RequirementStatusUtil
-
Constructor Summary
ConstructorDescriptionRequirementStatusUtil
(CurrentRequirementHolder holder, org.kie.api.runtime.KieSession session) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a reason why a rule was triggered, each reason will become one Requirement_reason entityvoid
check()
void
void
void
open()
protected void
void
statusFromString
(String status) set theRequirementStatus
of the currentRequirement
from a stringvoid
-
Constructor Details
-
RequirementStatusUtil
public RequirementStatusUtil(CurrentRequirementHolder holder, org.kie.api.runtime.KieSession session)
-
-
Method Details
-
open
public void open() -
fulfilled
public void fulfilled() -
unfulfilled
public void unfulfilled() -
check
public void check() -
incomplete
public void incomplete() -
statusFromString
set theRequirementStatus
of the currentRequirement
from a string -
addReason
add a reason why a rule was triggered, each reason will become one Requirement_reason entity- Parameters:
reason
- the reason
-
setStatus
-