Extending naming conventions by registering a new naming convention rule

WebSphere® Multichannel Bank Transformation Toolkit provides a naming convention rule that enables technical developers to customize simple naming conventions without coding.

A naming convention rule is in the following format:
elementRuleID=[prefix]{variable}[suffix]
elementRuleID
Is the rule ID of the element that supports customized naming conventions.
prefix
Can be 0 or n number of characters.
variable
Can be 0 or n number of predefined variables that can be referenced by a naming convention rule
suffix
Can be 0 or n number of characters
An example of naming convention rule is provided here:
FILE_TRANSACTION=newTransaction{file_count}.transaction
Table 1 provides a list of the naming convention rule IDs for Transaction editor elements.
Table 1. Naming convention rule IDs for Transaction editor elements
Element ID
Transaction file name FILE_TRANSACTION
Processor ID Processor
Operation ID operation
Operation step ID opStep
Context ID context
Data ID data
Field ID field
Indexed Collection ID iColl
Keyed Collection ID kColl
Bean Collection ID bColl
Formatter ID fmtDef
Service ID service
Table 2 provides a list of the naming convention rule IDs for XUI editor elements.
Table 2. Naming convention rule IDs for XUI editor elements
Element ID
XUI file name FILE_XUI
Widget ID ELEMENT_WIDGET
ECA rule ID ELEMENT_ECA_RULE
Table 3 lists predefined variables that can be referenced by a naming convention rule:
Table 3. Predefined variables that can be referenced by a naming convention rule.
Variable Description
file_count Returns a count of the files that have applied the rule in current project.
file_name Returns the file name.
widget_type Returns widget type string of the widget in the XUI editor.
widget_count Returns a count of the widgets that have applied the rule in the current XUI file.
rule_count Returns a count of an ECA rule that is applied in the current XUI file.
impl_class Returns the implementation class name of a transaction element. For example, an implement class name of an Operation object.
oper_count Returns a count of the operations that have applied the rule in current transaction file.
op_step_count Returns a count of the operation steps that have applied the rule in current transaction file.
ctx_count Returns a count of the Context in current transaction file.
item_count Returns a count of the elements with the same type in the Data section of the current transaction file.
fmt_count Returns a count of the formatters in current transaction file.
service_name Returns the service name of a service object. The object can be normal service or web service object. For a web service object, the port name is returned. For normal service objects, the implement class name is returned.
service_count Returns a count of the services that have applied the rule in the current transaction file.

A naming convention rule can be extended both at the system level and at the project level. For information on how to extend naming convention rules at the system level and the project level, see the following topics: