A function catalog is an XML file that conforms to function_catalog.xsd — a schema. This allows BusinessEvents to integrate your custom functions with the function registry in the rule editor. The function catalog must be in the XML format described in
Table 7 to map properly to the schema.
|
●
|
Place functions.catalog in the root folder of the required Java archive resource ( .jar) file.
|
|
Table 7 lists and describes the elements used in the function catalog. Each element’s horizontal position within the
Element Name column indicates the correct nesting position within the XML file.
<method>firstSample</method>
<class>com.tibco.be.functions.custom.CustomJavaHelper</class>
<synopsis>You could write java here</synopsis>
<name>TimeBasedPropertyValues</name>
<name>snapshotOverTime</name>
<method>snapshotOverTime</method>
<class>com.tibco.be.functions.custom.CustomJavaHelper</class>
<args>entity, startTime, endTime, namespace</args>
<isActionOnly>true</isActionOnly>
<synopsis>This is the synopsis</synopsis>
<paramdesc name="propertyDouble"
type="PropertyAtomDouble">Property to serialize.</paramdesc>
<paramdesc name="startTime"type="long">Start time for
serialising the history values.</paramdesc>
<paramdesc name="endTime" type="long">End time for
serialising the history valiues.</paramdesc>
<returns type="String">An XML String Serialization
of the PropertyAtomDouble passed.</returns>
<name>serializeConcept</name>
<method>serializeConcept</method>
<class>com.tibco.be.functions.custom.CustomJavaHelper</class>
<args>concept, changedOnly, nameSpace, root</args>
<isActionOnly>true</isActionOnly>
<synopsis>Serializes the Concept passed to an XML String
which is returned.</synopsis>
<paramdesc name='concept' type='Concept'>The Concept to
<paramdesc name='changedOnly' type='boolean'>true - data
modified since last conflict resolution cycle
<paramdesc name='nameSpace' type='String'>A path describing
the nameSpace to save in.</paramdesc>
<paramdesc name='root' type='String'>The name of
the serialized data.</paramdesc>
<returns type='String'>An XML String Serialization of
the Concept passed.</returns>