Skip to Content
0
Jan 13, 2023 at 07:12 AM

SAP BTP Workflow Service Task Issue in Business Rules Access

361 Views

Hello there,

I'm trying to consume my Business Rules from my workflow service task. I created the business rules from Business Rules --> Manage Rule Projects and deployed with versions. Below is how my version history is looking like for the business rules.

versionhistorybusinessrules.png

To confirm the rules execution, I configured the environment in sap api business hub under rule execution API for cloud foundry and executed my rules. The results appeared satisfactory.
Request -

apihubrequest.png

Response -

apihubresponse.png

I configured my service task step like this -

servicetaskconfiguration.png

My payload for request looks like below -

/********** Prepare Input Payload to Execute Rule ********** */var ruleServiceId = '3c4c2bfd5d4b46bb961359aab86052aa';$.context.selfApproval = 'false'; 

var productPrice = { "ProductPrice" : $.context.price};
var rulesPayload = { "RuleServiceId": "3c4c2bfd5d4b46bb961359aab86052aa", "RuleServiceVersion": "000001000000000001", /* "RuleServiceRevision": "Trial01", */ "Vocabulary": [ { "ProductPrice": productPrice } ]}
$.context.rulesPayload = rulesPayload;

Ru and le Execut

While doing the execution, I'm getting the following error -

errorlog.png

I tried with the /v2/workingset-rule-services and that lead to similar error.

What am I missing here?