How to invoke a method defined in a fact model in a Guided Decision Table in JBoss BRMS 6.x?
Environment
- Red Hat JBoss BRMS (BRMS) 6.x
Issue
There is a need to invoke a method defined in a fact model in Action part of a Guided Decision Table. The issue is that by selecting the New column it opens up a dialog box to select type of column as follows:

After selecting Set the value of a field, it further opened up another dialog box to select Fact and Field:

It will provide all fields defined in the fact model (that invokes the setter method of those fields), but no provides further methods defined in the same fact. How to achieve that?
Resolution
When adding the condition, you will have to bind the used fact type (i.e. Binding field). After that, you will have to check-in the Include advanced options when adding the Action column. Click on Add an Action BRL fragment option (it should be the last option), then fill out the Column header (description) and click on + plus button. It will display the Call method on (x)... option (i.e. x is the name you bound to your fact or field).
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
