Question & Answer
Question
How can the class java.lang.String be used in the Business Object Model (BOM) without making all the methods of the String class available when authoring business rules?
Answer
You will need to edit the String entry in the boot BOM files, to remove the methods that you do not want to be used in your business rules.
The java.lang.String
class is defined in the boot BOM, which is provided in <JRules Installation Directory>/studio/samples/authoring/bomextensions/rules/resources
.
Drag and drop all the boot BOM files (boot.bom, boot.voc and boot.b2x) into the bom directory of your rule project.
Edit the boot.bom file. Remove the methods from the String class that you do not want to be used in your business rules. This way only the methods in the boot.bom will be visible to the rule writer when authoring business rules.
Keep track of the modifications you make to the boot BOM. Each JRules release comes with a possibly modified boot BOM. Once you upgrade to a different JRules version, you will have to reapply the modifications on the latest boot BOM.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21424949