on 05-06-2020 4:20 AM
I'm sure this is something simple, but I cannot figure out how to eliminate this error upon deployment from the WebIDE to Cloud Foundry. Can anyone help get past this?
Here is the error in the dmol log:
MTA Deployment Error - /routes/0: Format validation failed (A route requires access to com.sap.bpm.workflow service but the service is not bound.)
MTA.yaml
ID: onboardingWorkflow
_schema-version: '2.1'
version: 0.0.1
modules:
- name: onboarding
type: com.sap.application.content
path: workflow
requires:
- name: workflow_onboarding
parameters:
content-target: true
- name: requestaccess
type: html5
path: requestAccess
parameters:
disk-quota: 512M
memory: 256M
build-parameters:
builder: grunt
requires:
- name: uaa_onboardingWorkflow
- name: dest_onboardingWorkflow
resources:
- name: onboarding_html5_repo_host
parameters:
service-plan: app-host
service: html5-apps-repo
type: org.cloudfoundry.managed-service
- name: workflow_onboarding
parameters:
service-plan: standard
service: workflow
type: org.cloudfoundry.managed-service
- name: uaa_onboardingWorkflow
parameters:
path: ./xs-security.json
service-plan: application
service: xsuaa
type: org.cloudfoundry.managed-service
- name: dest_onboardingWorkflow
parameters:
service-plan: lite
service: destination
type: org.cloudfoundry.managed-service
I DO reference the Workflow service in xs-app.json, below:
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [{
"source": "^/workflow/(.*)$",
"target": "/$1",
"service": "com.sap.bpm.workflow",
"endpoint": "workflow_rest_url",
"authenticationType": "xsuaa"
}, {
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}]
}
Instead of:
"service": "com.sap.bpm.workflow",
"endpoint": "workflow_rest_url",
in your xs-app.json you should have a "destination" attribute which points to a destination defined in the requires or your module requestaccess. It needs then also:
group: destinations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.