Hi @StephanHaarmann ,
thank you for your response.
I tried your suggestion but angular turns the url into unsafe:deployement:task-form.html?taskId=90f0dca6-377c-11ed-99e1-56fc3af5d304&callbackUrl=http://localhost:8080/camunda/app/tasklist/default/#/
because it is not explicitly white listed. The unsafe
part prevents the browser from showing the form.
I guess using external
as the type of task list is only meant to be used when you embed your camunda inside your own application.
I hope I can simulate the same behaviour by deploying a form as embedded:deployemnet:task-form.html
. The task form will then show a link to the real external form.
EDIT:
I tried using embedded:deployment:task-form.html
as the form key, but this time the form does not load because of the following console error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at deployement:task-form.html?noCache=1663528778557&userId=jan&engineName=default&taskId=d67f33e9-3782-11ed-99e1-56fc3af5d304. (Reason: CORS request not http).
Acoording to Reason: CORS request not HTTP - HTTP | MDN this is because the browser (firefox) will only request http or https. I think the problem is the deployement:
prefix of the link making the browser think it’s a kind of protocol.
I tried editing the application.yaml file of the camunda run server by adding:
camunda.bpm.run.cors
enabled: true
allowed-origins: '*'
but this did not help b/c the problem is not the allowed-origins. The problem is that firefox thinks it’s dealing with a deployement-protocol The same problem occurs in Chrome failing with the following error:
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https, isolated-app.
I think I’m running out of options showing a custom form when running camunda separate from my companion application. Or am I missing something?
To be clear: I’m trying to run camunda as a separate process as advised in the best practices and use the task list for showing forms that are more advanced than the generic-form or camunda-form. I hope there is a way that this is supported.
Best regards
Jan