cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cloud Foundry - My Inbox - Cannot create component for smart template rendering

shubhamd_27
Participant
4,069

Hello Experts,

In Cloud Foundry using business application studio I am creating a Custom UI5 application to trigger the workflow. I am referring the following blogs-

https://blogs.sap.com/2020/08/27/starting-workflow-from-custom-fiori-application-in-cloud-foundry/

https://blogs.sap.com/2020/08/31/enhancing-custom-application-as-workflow-task-ui-in-cloud-foundry/

https://blogs.sap.com/2020/09/10/create-workflow-mtar-application-with-custom-ui-using-business-app-...

I have created 2 applications -
App1) Workflow

App2) Custom UI5 app using which I am able to successfully trigger the workflow from UI5 app and I can see that item in My Inbox as well. PFB-

However, once the item is selected in My Inbox it is throwing the following error:

PFB code from my custom UI5 application:
1) xs-security.json

2) xs-app.json

3) mta.yaml

4) Service Instances in Cloud Foundry

I am not sure why My Inbox is unable to load the component of the custom ui5 application, which as a standalone app is working fine.

The url which My Inbox is trying-https://xxxxxxxtrial.cockpit.workflowmanagement.cfapps.eu10.hana.ondemand.com/nsPOCCreateInvoice/Component-preload.js

Standalone app url-
https://xxxxxxxtrial-dev-myapp-cap-createinvoice-approuter.cfapps.eu10.hana.ondemand.com/nsPOCCreate...

Can you please help.

Thanks & Regards,
Shubham

View Entire Topic
vbalko-claimate
Contributor
0 Likes

Hello shubham_27d94,

this xs-app.json are from approuter or from that html5 module.

I can see, that you are probably using standard portal site from workflow management and therefore you are effectively bypassing your app router.

If that xs-app.json is defined on approuter level, then you are bypassing it also.

shubhamd_27
Participant
0 Likes

Hi vbalko_effiis,

As you have correctly mentioned I am using standard portal to access My Inbox.
https://xxxxxxxtrial.cockpit.workflowmanagement.cfapps.eu10.hana.ondemand.com/cp.portal/site#Shell-h...

The shared xs-app.json is from HTML5Module.

Please find below the xs-app.json from AppRouter -

Do I need to change something in xs-app.json of AppRouter ?

Thanks & Regards,
Shubham

vbalko-claimate
Contributor
0 Likes

Hmmm,

this is strange - if that xs-app.json are on html5 app level, then it should work - I guess.

I use in my solution portal site (SaaS portal service), so I dont have first hand experience with that wf management portal.

Maybe archana.shukla or somebody else from WF management team can help.