Skip to Content

Introduction:

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.

Version:

SAP BRM 7.31

Prerequisites:

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’.

/wp-content/uploads/2014/08/1_520032.png

Step 6:    Select the ‘Edit’ option for the DC.

  /wp-content/uploads/2014/08/2_520037.png

Step 7:    Give ‘Full’ DC Access Type and Click on ‘Save’ to save the changes.

/wp-content/uploads/2014/08/3_520040.png

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.

/wp-content/uploads/2014/08/4_520042.png

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:

http://scn.sap.com/docs/DOC-20028

METHODOLOGY:

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:

/wp-content/uploads/2014/08/5_520053.png

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):

/wp-content/uploads/2014/08/6_520058.png

On selecting the desired version for the DC, the content of the Development Component opens as shown in the screen below:

/wp-content/uploads/2014/08/7_520059.png

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:

/wp-content/uploads/2014/08/8_520060.png

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.

/wp-content/uploads/2014/08/9_520140.png

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)

/wp-content/uploads/2014/08/12_520069.png

Step 5:    It gets then redirected to the next screen ‘Upload Project’.

/wp-content/uploads/2014/08/10_520070.png

Scroll down and mark the checkbox ‘Activate Changes’ and click on ‘Submit Changes’ to activate the changes.

/wp-content/uploads/2014/08/11_520071.png

Thus editing of the Rule Artifacts like Ruleset, Rule and Decision table can be done in this way.

UNIT TEST

Step 1:    Goto Web Services Navigator http://<host name>:<port>/wsnavigator

T1.png

Step 2:    Select the name of the Interface after checking the Radio button ‘Provider System’ and click on ‘Next’.

T2.png

Step 3:    Navigate to the next page by clicking on ‘Next’.

T3.png

Step 4:    Give the Inputs (Example: here Sales_Order & Shipment_Order) and click on ‘Next’.
T4.png

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)

T5.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply