Initial Value Callbacks

ilog.rules.studio.model.initialValueCallbacks

JRules 6.0

Allows plug-ins to specify callbacks that dynamically compute an initial value for properties. This callback is called when an artifact with the specified property(ies) is created.
The ID of each inial value callback extension can be either the fully-qualified name of the property that is targeted, or a key that is associated with the property in rule model extension files (*.brmx files).

<!ELEMENT extension (initialValueCallback+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT initialValueCallback EMPTY>

<!ATTLIST initialValueCallback

id            CDATA #REQUIRED

callbackClass CDATA #REQUIRED>


<extension point=

"ilog.rules.studio.model.initialValueCallbacks"

>

<initialValueCallback callbackClass=

"sample.StatusInitialValueCallback"

id=

"model.rule.BusinessRule.active"

/>

<initialValueCallback callbackClass=

"sample.DateInitialValueCallback"

id=

"dateCallbackID"

/>

</extension>

See ilog.rules.commonbrm.model.IlrInitialValue.