cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business Application Studio - Destinations for run configurations

korayyersel_q
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

korayyersel_q
Participant

Answers (5)

Answers (5)

amel_saidani
Participant
0 Kudos

Hello,

Did you manage to make BPM destinations binded and run locally please ?

korayyersel_q
Participant

Hi Amel,

please have a look to my comment with the "Best Answer" label

Regards,

Koray

amel_saidani
Participant
0 Kudos

it worked thank you !

yuval_morad
Employee
Employee
0 Kudos

OK interesting.

Please send me a mail and we can have the call next week

yuval_morad
Employee
Employee
0 Kudos

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:

https://blogs.sap.com/2020/07/08/migrating-fiori-application-from-sap-web-ide-to-sap-business-applic...

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.

korayyersel_q
Participant
0 Kudos

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

yuval_morad
Employee
Employee
0 Kudos

Hi,

Can you attach the xs-app.json, and manifest.json files

korayyersel_q
Participant
0 Kudos

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

yuval_morad
Employee
Employee
0 Kudos

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

korayyersel_q
Participant
0 Kudos

Hi Yuval,

thanks but you answered some other question. As I wrote I could make it work with the xsuaa. What I am missing is the destination service. I don't see it listed in my run configuration.

Regards,

Koray