Initial Value Callbacks
Identifier:
ilog.rules.studio.model.initialValueCallbacks
Since:
JRules 6.0
Description:
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).
Configuration Markup:
<!ELEMENT extension (initialValueCallback+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - A fully qualified identifier of the target extension point.
- id - An optional identifier of the extension instance.
- name - An optional name of the extension instance.
<!ELEMENT initialValueCallback EMPTY>
<!ATTLIST initialValueCallback
id CDATA #REQUIRED
callbackClass CDATA #REQUIRED>
- id - String symbol identifying the callback. This ID is used to associate the callback with properties that should be considered. It can either be the qualified name of the property, or a key used in property annotations of the rule model extension files.
- callbackClass - The fully-qualified name of the Java class that implements the ilog.rules.commonbrm.model.IlrInitialValue interface.
It must be a Java class with a public default constructor.
Examples:
<extension point=
"ilog.rules.studio.model.initialValueCallbacks"
>
<initialValueCallback
callbackClass=
"sample.StatusInitialValueCallback"
id=
"model.rule.BusinessRule.active"
/>
<initialValueCallback
callbackClass=
"sample.DateInitialValueCallback"
id=
"dateCallbackID"
/>
</extension>
API Information:
See ilog.rules.commonbrm.model.IlrInitialValue.
Copyright © 1987-2008 ILOG S.A. All rights reserved.