public class KiePMMLDroolsRule extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KiePMMLDroolsRule.Builder |
public static KiePMMLDroolsRule.Builder builder(String name, String statusToSet, List<KiePMMLOutputField> outputFields)
name - The rule namestatusToSet - The status to set in the rhs' default then; e.g.:
then
$statusHolder.setStatus(statusToSet);
update($statusHolder);
If there is a break statement in the lhs, then the statusToSet will be applied differently if the node is a final/leaf or not.
If the node is a final/leaf, the statusToSet will be applied in the
default then directive,
while in the default then[match] it will be set as "DONE"
then
$statusHolder.setStatus(statusToSet);
update($statusHolder);
then[match]
$statusHolder.setStatus("DONE");
update($statusHolder);
If the node is a not final/leaf, the statusToSet will be set in the
then[match] directive,
while in the default then it will be set as "DONE"
then
$statusHolder.setStatus("DONE");
update($statusHolder);
then[match]
$statusHolder.setStatus(statusToSet);
update($statusHolder);
public String getName()
public String getStatusToSet()
$statusHolder.setStatus("DONE");
update($statusHolder);)public List<KiePMMLOutputField> getOutputFields()
public String getAgendaGroup()
public String getActivationGroup()
public String getFocusedAgendaGroup()
public String getStatusConstraint()
public List<KiePMMLFieldOperatorValue> getAndConstraints()
public List<KiePMMLFieldOperatorValue> getOrConstraints()
public List<KiePMMLFieldOperatorValue> getXorConstraints()
public List<KiePMMLFieldOperatorValue> getNotConstraints()
public String getIfBreakField()
public String getIfBreakOperator()
public Object getIfBreakValue()
public KiePMMLReasonCodeAndValue getReasonCodeAndValue()
public ResultCode getResultCode()
public Object getResult()
public Double getToAccumulate()
$statusHolder.accumulate(_toAccumulate_);public boolean isAccumulationResult()
true, set the overall accumulation as final resultCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.