All objects generated by Patterns are created with default parts, meaning that every part (form, rules, events, variables) of every object is generated by default. This is represented by the following icons:
If you change some part of the object, the icon will change as well:
The implementation based on default parts provides dynamism between the transaction and the pattern. This means that when you change a property in the pattern definition, add a new filter in the instance or make a change in the Transaction, all objects generated by Patterns will automatically react to the change without the need to reapply the pattern.
For example, the
Work With Pattern implementation creates a set of empty objects with specific default templates set in each object. It creates a “WW
" Web Panel with a default template that reads the transaction structure and creates a grid.
Suppose that you have a Client Transaction with the following attributes:
When you apply the Work With Pattern to this Transaction, you will obtain the following WWClient Web Panel:
Every time you add an attribute to the transaction structure, it will also be added in the transaction's instance and the Work With Web Panel without the need to apply the pattern again. You only need to open the Work With Web Panel to view all the new attributes in the grid.
In the example, if you add a ClientEmail attribute to the structure of the Client Transaction:
When you save the Transaction, the attribute will be automatically added in the transaction's instance and in the Work With Web Panel. When you open the objects you can see the new attribute:
The dynamism between Transaction and Pattern stays for all the default parts of the objects.
For example, if you modify the Web Form of a WW (it does not stay as default), and add a new attribute to the transaction, the attribute will be automatically added in the transaction's instance but not in the Work With Web Panel grid.
If you want to have default parts again, you can select the Edit option of the Menu, Apply Default (the part where the object is open) or Apply Default (All Parts) which returns all the parts that had been modified to default.