Document generation based on different address types
We maintain different types of addresses in Employee central.Customers may be interested in fetching data based on address types in document generation. Its not possible to achieve this via direct mapping.We have to use business rules for the same.
Requirement
To generate a document containing Address 1, Address2 and City of type home and business.
- Home Address 1
- Home Address 2
- City
- Business Address 1
- Business Address 1
- City
- we have to create 3 different rules and 3 place holders to populate address 1 , address 2 and city for home address
- Same is the case to generate different address fields of type business.
- Only 1 set statement can be added in the rule.
- Highlighted values in below screenshot should be exactly same.Its case sensitive too
Below screenshot is a sample rule to fetch address line 2 from home address portlet.
Business Rule
Try this rule in your system and let me know your comments.