KnowledgeExpert Types

Describes the types used in Quality Rules Reuse

This page discusses:

CheckStatusEnum

Type used to find out the status of an expert check.

inheritancepath

ObjectType
 Literal
  Enumere
   CheckStatusEnum

Enumerated Values

ValueNLS ValueComment
RedRedThe check was solved and one object at least is False.
GreenGreenThe check was solved and all objects are True.
BlackBlackThe check was solved and the check has compilation errors or the solver does not find any objects matching the inputs of the check.
NotSolvedNotSolvedthe check could not be solved.
InteropValidityInteropValidityDefault value.
JustifiedJustifiedThe check was justified.

Example

variables: mycheck: KWECheck

Body:

if (mycheck .Status == "Red")
	           ThisCheck.AddTupleFailed(mycheck)
Else
	           ThisCheck.AddTupleSucceeded(mycheck)

KWECheck

Type describing the checks created when clicking the Expert Check icon.

General Information

PropertyComments
NLS nameExpert Check
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleBaseComponent
    KWECheck

Attributes

NameNLS NameTypeComment
CorrectFunctionCorrect FunctionStringEnables you to modify the string contained in the Correct tab of the Expert Check Editor.
CorrectFunctionCommentCorrect Function CommentStringEnables you to modify the correct function comment in the Expert Check Editor.
CorrectFunctionTypeCorrect Function TypeIntegerReal enabling you to modify the type of the correct function in the Check Editor.
HelpExpert Check HelpStringEnables you to modify the help message in the Check editor.
CreatedFromObjectTypeReturns the check from which the check was created otherwise itself, if the check is volatile.
StatusStatusCheckStatusEnumLets you know the status of the expert check.
  • Red: the check is solved and at least one object is False.
  • Green: the check is solved and all objects are True.
  • Black: the check is solved but has compilation errors or the solver cannot find any object matching with the inputs of the check.
  • Not solved: the check is not solved.
  • Justified: the check is justified.

KWECorrectFunction

KWECorrectFunction

General Information

PropertyComments
NLS nameCorrect Function Type
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWECorrectFunction

Attributes

Name used in EKLNLS NameTypeComment
CheckAssociated ToKWECheckThe check contains the Correct function. Return object with type KWECheck.
ListFailedElementsCurrent Objects FailedListLists the facts under the failed tuple processed. Returns object with type List.
TupleFailedCurrent Tuple FailedKWETupleThe failed tuple processed. Return objet with type KWETuple.-

KWEGenericRuleBaseComponent

Type enabling you to reference the Quality Rules Reuse objects.

General Information

PropertyComments
NLS nameExpert Component
New (EKL)

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent

Attributes

NameTypeComment
ActivatedBoolean Indicates if the sub-components of the rule base are activated.
CommentStringShows the comments appearing when creating the expert rule or the expert check and that can be modified using the Edit > Properties menu in the Quality Rules Reuse app.

Methods

The following methods are associated with this type:

KWELinkedRuleBase

KWELinkedRuleBase

General Information

PropertyComments
NLS name
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleSet
    KWELinkedRuleBase

KWERule

Type describing the rules that you create when clicking the Expert Rule icon.

General Information

PropertyComments
NLS nameExpert Rule
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleBaseComponent
    KWERule

Attributes

NameTypeComment
PriorityReal Indicates the rule priority level.
CreatedFromObjectTypeReturns the rule from which the rule was created otherwise itself, if the rule is volatile.

KWERuleBase

Type describing the rule base created when accessing the Quality Rules Reuse app.

General Information

PropertyComments
NLS nameBase Of Expert Elements
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleSet
    KWERuleBase

Attributes

NameTypeComment
WorkingModeString-

Methods

The following methods are associated with this type:

KWERuleBaseComponent

Type enabling you to access the For All field or the Body of the rule or the check in Read only mode.

General Information

PropertyComments
NLS nameExpert Check Or Rule
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleBaseComponent

Attributes

NameTypeComment
BodyStringStringContains the check or rule body.
LanguageIntegerCorresponds to the language of the check: 1 for the Quality Rules Reuse language, 2 for Visual Basic, and 3 for KWE Advanced Language.
VariablesStringString Variable specified in the For All field.

KWERuleBaseSet

KWERuleBaseSet

General Information

PropertyComments
NLS name
New (EKL)-

Inheritance Path

ObjectType
 Feature
  KWERuleBaseSet

KWERuleSet

Type describing the rule set that you create when clicking the RuleSet icon or when creating an expert check or rule.

General Information

PropertyComments
NLS nameSet Of Expert Elements
New (EKL)

Inheritance Path

ObjectType
 Feature
  KWEGenericRuleBaseComponent
   KWERuleSet

Attributes

NameTypeComment
DirectChildrenListAttribute of List type enabling you to retrieve the items located below the ruleset.

KWETuple

KWETuple

General Information

PropertyComments
NLS name
New (EKL)

Inheritance Path

ObjectType
 Feature
  KWETuple

Attributes

NameTypeComment
DescriptionStringLets you get and enter a description. It appears in the immersive report (xml/html).
LabelStringLets you get and enter a description. This label appears in the immersive report (xml/html).
ReportObjectsListLets you get the list of the objects located under the tuple inserted using AddTuple.
ValidityBooleanLets you get the tuple validity: TRUE (succeeded) or FALSE (failed).
WeightIntegerLets you get and enter a weight. It appears in the immersive report (xml/html) and it is necessary for computing the total weight according to the selected mode.

Methods

The following methods are associated with this type: