In most scenarios, alpha developers need to inject some
extra generation rules into Transaction Editor.
Procedure
- To fulfill this requirement, firstly alpha developers need
to create a xml file in the plug-in project to define the mapping
rules.
There are two kinds of tags commonly used in rules
definition: - tag-mapping. This tag is used to indicate the conversion
rules between the tags used in transaction file (the value of attribute
‘from’) and the ones in the generated xml file (the value of attribute
‘to’).
- property-mapping. This tag is used to indicate the conversion
rule between the attributes in transaction file (the value of attribute
‘from’) and the ones in the generated xml file (the value of attribute
‘to’).
- Especially, alpha developers could assign a more complex
property generation rule with the attribute ‘rule’, which references
with a piece of program logic.
BTT product has provided
several rule implementations and developers could also implement and
register their own property generation rules. You can find more detailed
information about this topic in Processor editor extension.