Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Workflow tutorial Step 4 - https://developers.sap.com/tutorials/cp-starter-ibpm-employeeonboarding-5-run.html #20134

Closed
jmalla opened this issue Nov 7, 2022 · 2 comments

Comments

@jmalla
Copy link

jmalla commented Nov 7, 2022

Hi Archana,

We are going through the Workflow tutorial. But are stuck"
The HTTP request to 'https://bpmruleruntime.rule.cfapps.us10.hana.ondemand.com/rules-service/rest/v2/rule-services' failed with status code 401 (Unauthorized) and response body ''.
Log ID: 3ec72cf7-d6d3-4bc7-97c7-23723cdfc95d
Determine Equipment Nov 7, 2022, 9:54:21 AM

The destination seems to be fine in BTP:
bpmrulesruntime - but the URL is https://sap.com/DUMMY_URL

Should this be:
https://bpmruleruntime.rule.cfapps.us10.hana.ondemand.com/rules-service/rest/v2/rule-services

Where do I define the needed permissions? For this BTP free tier - my user id is subaccount admin and I have all of the workflow roles. So not sure what is missing.

Thanks for your help.

Regards,
Jay

@ArchanaShukla
Copy link
Contributor

Hello @jmalla ,
Have you run the Booster? If yes then the needed roles RulesRuntimeSuperUser would have been assigned to your user - which is needed to run the business rules. There was no use of destination in the tutorial. This destination is used for launchpad access. If you are using a different use case than the tutorial, then please let me know how you are using it.

There is a destination named BUSINESS_RULES that would be created, you can use that if you want to consume business rules in workflow or in any application using destination.

@jmalla
Copy link
Author

jmalla commented Nov 8, 2022

Hi Archana - thanks for your reply. I got it to work. It seems that the Booster does not create the BUSINESS_RULES destination correctly. Once I changed it to use OAuth2ClientCredentials with the details from the service key for the client id, secret and token url, it started working. I think the Booster needs to be fixed.

Thanks,
Jay

@jmalla jmalla closed this as completed Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants