When generating a flow .xml file,
the default rule is to replace the "from" string with the "to" string.
However, there are more complex conversion rules when generating a
flow .xml file. IBM® WebSphere® Multichannel Bank Transformation
Toolkit implements
several predefined rules to convert existing processor objects. When
technical developers create an object, they can create conversion
rules to generate XML lines for the object. To create a new generation
rule, technical developers must create a Java class to implement
the rule, and then register the rule as a plug-in extension.
Creating a property generation rule
To create
a generation rule class, technical developers must extend the
com.ibm.btt.tools.transaction.extend.generator.Rule abstract
class and override the process method. In the process method, technical
developers can manipulate the target tag object according to their
own requirements, such as adding new attributes, changing an attribute
name or value, and so on. The process method is shown here:
public void process(Taggable object, Map<String, String> attributes, PropMapping mapping, String value)
Generating a property generation rule
After
creating new rule class, technical developers must to register the
rule as a plug-in.
To register the rule as a
plug-in, do the following steps:
- In the Extensions tab of the plugin.xml file,
right-click com.ibm.btt.tools. transaction.editor.generator,
and then click .
- In the Extension Element Details panel, enter
the name of the rule. The name of the rule is the identifier of the
rule; therefore, the name must be unique.
- In the class field, enter the implementing
class.