Service Catalog: Using parenthesis when creating or editing a rule filter
search cancel

Service Catalog: Using parenthesis when creating or editing a rule filter

book

Article ID: 271864

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

When creating/editing rules in Service Catalog, parenthesis cannot be created from the Service Catalog UI.

Environment

Release : 17.3

Cause

Product Limitation

Resolution

Workaround: Update a rule filter by using the below web service methods:

addRule()
editRule() 

Examples:

editRule

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://<WEB_SERVICES_URL>">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:editRule soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <sessionID xsi:type="xsd:string">a3491060-acfc-40cc-9075-21d4ab3978f0</sessionID>
         <ruleBean xsi:type="urn:Rule" xmlns:urn="XXX">
            <description xsi:type="xsd:string">update paranthesis</description>
            <eventFilter xsi:type="xsd:string">(status &lt; 400 AND status >= 200) AND (status_old &lt; 200 AND status_old >= 100) AND (rate_item_col = 0 AND approval_process = 2)</eventFilter>
            <eventID xsi:type="xsd:string">BILL_SUBSCRIPTION_CHANGE</eventID>
            <isSystem xsi:type="xsd:int">0</isSystem>
            <name xsi:type="xsd:string">testparenthsis_approaval_test</name>
            <ruleID xsi:type="xsd:string">3f2cc85b8eff8-5bb0367189e33121ed-75741692254994167</ruleID>
            <status xsi:type="xsd:int">0</status>
         </ruleBean>
      </ser:editRule>
   </soapenv:Body>
</soapenv:Envelope>

 

addRule

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://<WEB_SERVICES_URL>">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:addRule soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <sessionID xsi:type="xsd:string">fdcf62d7-e82f-4cf0-b0b7-466c65902d88</sessionID>
         <ruleBean xsi:type="urn:Rule" xmlns:urn="XXX">
            <description xsi:type="xsd:string">XXX</description>
            <eventFilter xsi:type="xsd:string">(status &lt; 400 AND status >= 200) AND (status_old &lt; 200 AND status_old >= 100) AND (rate_item_col = 0 AND approval_process = 2)</eventFilter>
            <eventID xsi:type="xsd:string">BILL_SUBSCRIPTION_CHANGE</eventID>
            <isSystem xsi:type="xsd:int">0</isSystem>
            <name xsi:type="xsd:string">testparenthsis_approaval_test</name>
            <ruleID xsi:type="xsd:string"></ruleID>
            <status xsi:type="xsd:int">0</status>
         </ruleBean>
      </ser:addRule>
   </soapenv:Body>
</soapenv:Envelope>

 

Additional Information

You can check more details on the Service Catalog web services at the following link:

https://knowledge.broadcom.com/external/article?articleId=12109