on 11-18-2020 1:17 PM
Dear experts,
I am trying out the BAS preview / run configuration capabilities. I am using a MTA project which was created in WebIDE. https://github.com/korayyersel/scp_cf_sampleworkflowproject_mta/blob/master/mta.yaml
So far I could create a dummy-uaa service and open my portal app in a sandbox launchpad as "preview" thanks to the settings described in this blog: https://blogs.sap.com/2020/10/30/how-to-run-the-application-in-sap-fiori-launchpad-environment-using...
But I had to delete the destination routes from my xs-app.json to make it work. Now I want to activate them and basicly use my destinations also in the preview. But binding option for destinations is not listed on my run configuration. I see only xsuaa in the list.
Am I missing a configuration / parameter on my yaml file? How can I make sure that the destination service is listed here?
Thanks and regards,
Koray
Yuval could help me out with this issue: https://blogs.sap.com/2020/08/27/starting-workflow-from-custom-fiori-application-in-cloud-foundry/co...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Did you manage to make BPM destinations binded and run locally please ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amel,
please have a look to my comment with the "Best Answer" label
Regards,
Koray
OK interesting.
Please send me a mail and we can have the call next week
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If I get it right you try to migrate a project from Neo Web IDE to CF BAS.
The project consumes 2 data sources:
1. Workflow Business service which returns non OData REST format
2. Destination that returns OData based REST format
You need to change 3 files see the migration to ABAP blog which might overlap your needs:
1. xs-app.json to include new route for local run
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt"
}
2. package.json to include the dependency and start script for local run
3. manifest.json to ensure you have a data source section with relative url (no leading "/")
the consume service wizard does the work
Then make sure to move inde.html file one folder up to the same level as xs.app.json
Delete you run configuration and recreate it.
In addition if you like to bind also to different workflow services during local run we can have a call
next week.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yuval,
thanks your answer. The mentioned blog didn't help me any further. But after a bit of comparison between my project and a through BAS generated application I found out, what I was missing:
My destination and connectivity services are generated through a central "default" MTA. So resources entry in my YAML looks like this
- name: default-dest
type: org.cloudfoundry.existing-service
I have to change this to
- name: default-dest
type: org.cloudfoundry.existing-service
parameters:
service: destination
to make it work. Now the destination service is also listed for binding. As far as I see manifest.json doesn't have any effect on this feature.
I appreciate your offer for a call regarding to bind the BPM destination. As expected I am getting error :
Format validation failed (A route requires access to com.sap.bpm.workflow service but the service is not bound.
If I remove the bpmworkflowruntime route the error doesn't occur. But I would be really interested to make it work for also BPM destinations. How can I contact you for a call?
Thanks and regards,
Koray
Hi,
Can you attach the xs-app.json, and manifest.json files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sure:
https://github.com/korayyersel/scp_cf_sampleworkflowproject_mta/blob/master/ui/xs-app.json
https://github.com/korayyersel/scp_cf_sampleworkflowproject_mta/blob/master/ui/webapp/manifest.json
I have tried to add "dataSources" in manifest.json. But it didn't help. The version in Github doesn't have it. I consume the OData services with a simple JQuery call for test purposes.
Thanks and regards,
Koray
This is to simulate authentication test.
You can change the authentication method in xs-app.json to "none"
Or if you want to test as close as possible to production
Log in to CF to the space you plan to deploy to.
then
Press F1 and in the dialog press "Create service instance"
call it local_xsuaa
Choose xsuaa plan application
a new service is created.
Go to run configuration in xsuaa tree connect to this service
Then run
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.