Hi.
Is there a reference on how to use the vast functionality in the JS SDK?
I’m trying to embed Tasklist and Process forms into a portal Web app and the SDK samples (https://github.com/camunda/camunda-bpm-examples/tree/master/sdk-js
) basically demonstrate viewing and processing Tasks to start but they don’t work.
Also the SDK-JS project https://github.com/camunda/camunda-bpm-webapp/tree/7.13/camunda-bpm-sdk-js
points to the Embedded Forms Reference https://docs.camunda.org/manual/7.5/reference/embedded-forms/
which doesn’t cover how to use the Form SDK from a separate Web app, not just use a customer Web app WAR in the Camunda Web app.
When I try the browser-forms sample, Chrome complains with: scripts.js:100 Uncaught TypeError: Cannot read property 'replace' of null
taskService.form(taskId, function(err, taskFormInfo) {
var url = taskFormInfo.key.replace('embedded:app:', taskFormInfo.contextPath + '/');
// taskFormInfo is returned as null, yet I can retrieve the task list ID up to this point
...
}
The task IDs are correct in the sample, so maybe something has changed in the API? The sample was updated recently but it’s not working as expected. I deployed it to my Camunda webapp directory and simply browsed to it.
Any advice is greatly appreciated.