IBM Support

Make certain methods of a boot BOM class such as java.lang.String unavailable when authoring business rules

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.

[{"Product":{"code":"SS6MTS","label":"WebSphere ILOG JRules"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Features:BOM (Business Object Model)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.1;7.0;6.7;6.6;6.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21424949