Question

When rule is not picking the DSS value

Hi All,

 

I created the one when rule and included the DSS rule using @Utilities.getDataSystemSetting(owningRuleSet,setting),But it is not picking the DSS value and its returing the always false .How to rectify the Issue.Please help ASAP

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 9, 2016 - 5:45am

I tried a when rule checking DSS in activity and it works fine. Please attach screens for your scenario.

1.

     

2.

    

3. 

4.

5.

December 9, 2016 - 6:28am

Hi Kasun,

I did same thing ,but runtime its not taking the value please check the attached doc let me know any changes are needed in my rules

December 12, 2016 - 1:34am
Response to PraveenKumar143

Can you trace and debug the when rule? Without a DSS its working and picking correctly? 

December 14, 2016 - 6:48am
Response to Kasun.M7

Yeah ,With out DSS it is working fine.we are able to process as per business

December 29, 2016 - 2:47am

Please help me on this issue ,Its not yet resolved

December 29, 2016 - 3:19am

Have you tried passing the parameters as strings? This expression works for me:

@(Pega-RULES:Utilities).getDataSystemSetting("Pega-DecisionEngine", "admmart/batchSize")

Whereas the one without the high commas cannot be saved because of the dash:

@(Pega-RULES:Utilities).getDataSystemSetting(Pega-DecisionEngine, admmart/batchSize)

Invalid expression or reference: Operation "-" is not permitted on types: includedpage and includedpage
Invalid expression or reference: Operation "/" is not permitted on types: includedpage and includedpage
Invalid expression or reference: No suitable instance found
[seeking]
@(Pega-RULES:Utilities).getDataSystemSetting(Object,Object)
[candidate functions are]
@(Pega-RULES:Utilities).getDataSystemSetting(String,String)