This document illustrates how to edit rule artifacts such as rulesets, rules and decision table of the project in Rules Composer (already deployed on the server) through Rules Manager for business purposes. Business Users, administrators and functional users can modify the business rule in Rule Manager without going into the technicalities of how the rulesets are created in the project of Rules Composer in NWDS. In Rule Composer, user can create new ruleset, rules and decision tables, edit or delete the existing ones as per business requirement by selecting the development component deployed from the Rules Composer in NWDS. These changes are effective in real time and takes place instantaneously on the rule engine.
SAP BRM 7.31
Check if the Development Component (project already deployed on the server), to be edited in Rules Manager, has ‘full’ edit access.
For Users to edit the DC through Rules Manager, the DC needs to be given ‘full’ edit access. This assignment of Rules access is specific to a particular Development Component. It has to be assigned manually for each DC. This is done by assigning Roles (Pre-shipped Roles/Customized Roles) to the user and then giving DC Access type: ‘full’ to the DC for the same roles. User with the pre-shipped role ‘SAP_BRM_ADMIN’ can be given access to the DC through the below steps:-
Step 1: Goto Netweaver Administrator http://<host name>:<port>/nwa
Step 2: Select Configuration>Security> Identity Management
Step 3: Select the tab ‘Business Rules Access Control Management’.
Step 4: Select the Role: ‘SAP_BRM_ADMIN’ (this pre-shipped role has the action ‘SAP_BRM_APPROVE_RULE’ added which gives the permissions to approve a particular version of a rule to be the active).
Step 5: Select the Development Component (the particular DC to which you want to give edit option) for the Rule and click on ‘Go’.
Step 6: Select the ‘Edit’ option for the DC.
Step 7: Give ‘Full’ DC Access Type and Click on ‘Save’ to save the changes.
You can also assign access control for the each Ruleset by selecting one of the access types (Same as Parent, Read or None) as per requirement.
Note: The user can also be assigned to customized role with action ‘SAP_BRM_APPROVE_RULE’ for approving a particular version of rule to be active. Below link will help for the same:
Step 1: Log In to Rules Manager: http://<host name>:<port>/rulesmanager with user assigned to the roles as mentioned in the prerequisites.
You are able to view the below screen:
Step 2: Select the BRM DC (deployed on the server) and from the ‘Open Project’ dropdown, select the version (Latest- the version with the latest changes which may not be active on the server or Active- the version which is active on the server):
On selecting the desired version for the DC, the content of the Development Component opens as shown in the screen below:
Step 3: Expand the Ruleset which needs to be edited and select the rule artifact to be edited (Example: Rulesets, Rules, Decision Tables)
For example, select the Rules from the Rules Navigator:
Step 4: You can change the condition/action of the rule. You can also set some preconditions and click on ‘Save’ to save the changes.
Similarly you can edit the Decision Table. You can either directly edit the decision table content here or export/import the excel file with the rules and click on ‘Save’ to save the changes.(Example: changed a value of Action ‘Transport_Order’ i.e SG6767)
Step 5: It gets then redirected to the next screen ‘Upload Project’.
Scroll down and mark the checkbox ‘Activate Changes’ and click on ‘Submit Changes’ to activate the changes.
Thus editing of the Rule Artifacts like Ruleset, Rule and Decision table can be done in this way.
Step 1: Goto Web Services Navigator http://<host name>:<port>/wsnavigator
Step 2: Select the name of the Interface after checking the Radio button ‘Provider System’ and click on ‘Next’.
Step 3: Navigate to the next page by clicking on ‘Next’.
Step 5: Now the Result is displayed (Here it shows the change in the value of ‘Transport_Order’ made through Rules Manager i.e value of Action ‘Transport_Order’ is SG6767)