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

SAP Cloud Workflow not loading UI5 component

2,094

Hello,

I've just started learning SAP Cloud Workflow and I cannot load any UI5 app as User Task(it is empty as bellow). I am currently working in SAP Business Application Studio and all of the tutorials so far seem outdated. Did anyone had this issue before or has a good tutorial on it using Business App Studio?

Accepted Solutions (0)

Answers (4)

Answers (4)

Archana
Product and Topic Expert
Product and Topic Expert

There could be multiple reasons. Please follow the blogs and the standard documentation.

0 Likes

Thank you for the instructions. Unfortunately after multiple attempts and different blogs followed I still have the same issue.

The workflow seems not to find the UI5 app. Even with the code from your blog I get this same error:

Cannot create componentsap.demo.bpm.taskuifor smart template rendering. Showing standard task in the detail screen as a fallback: failed to load 'sap/demo/bpm/taskui/Component.js' from /sapdemobpmtaskui/Component.js: 404 - Not Found -

In this case I uploded the files to my trial workspace, I renamed the "default_workflow" to "workflow_mt" in the mta.yaml(I guess there is a difference in the default configurations since the blog was created and it was needed), built and deployed.

Do you know if there was something extra I should have done?

Many thanks for the support already!

martingerritsen
Explorer
0 Likes

I think this will be caused by the app router configuration in the mta, please check module ...-destination-content. The destination default set for instance.

Change parameters > content > instance to subaccount and i hope your problem is fixed. The sample code is added to the MTA using Yeoman gen "Routing Config".

If you already deployed the application to CF, first undeploy, build and deploy again. Note that the policy for existing destinations is set to ignore. When needed change to update.

- name: FrameworkActivities-destination-content
  type: com.sap.application.content
  requires:
  - name: FrameworkActivities-destination-service
    parameters:
      content-target: true
  - name: FrameworkActivities_html_repo_host
    parameters:
      service-key:
        name: FrameworkActivities_html_repo_host-key
  - name: FrameworkActivities-auth
    parameters:
      service-key:
        name: FrameworkActivities-auth-key
  parameters:
    content:
      instance: <<<< subaccount:
        destinations:
        - Name: nlsampleframework_FrameworkActivities_html_repo_host
          ServiceInstanceName: FrameworkActivities-html5-app-host-service
          ServiceKeyName: FrameworkActivities_html_repo_host-key
          sap.cloud.service: nlsampleframework
        - Authentication: OAuth2UserTokenExchange
          Name: nlsampleframework_FrameworkActivities_auth
          ServiceKeyName: FrameworkActivities-auth-key
          sap.cloud.service: nlsampleframework
        existing_destinations_policy: ignore
  build-parameters:
    no-source: true


Archana
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello kajal0299 and cstrimbei,

There are no limitation in trial account. Hope you have used SAP Managed AppRouter while UI5 module, if you wish it to be used as Task UI in workflow. Steps are clearly mentioned in the blog and in standard documentation. Follow them carefully. I have also mentioned in my blog, why you 404 error.

kajal0299
Associate
Associate
0 Likes

Hey cstrimbei

Could you resolve your issue. Actually I am facing the same problem. Would appreciate if you could help.

Thankyou.

0 Likes

Hi Kajal, I didn't solve the issue but I think it was caused by some limitations in the trial environment.