Hello,
I am learning Camunda 8 with the video course Camunda 8 - Getting Started with Human Workflow, but on Camunda SaaS 8.5 it appears to work differently as described in the course. The description of the problem follows.
Create a simplistic process, the diagram of which is here:
The forms embedded to task “Enter Greeting” is as follows:
Deploy the process to the cluster.
Start the process.
Open Tasklist. Form “Enter Greeting” appears.
Assign the task to yourself.
Enter “Hello!” to “Greeting” field and click button “Complete Task”.
Hi @wissenstein, welcome to the forum! I just did a quick test with my SaaS 8.5 cluster, and it works as expected - the second form shows the greeting entered in the first one. So I don’t think there’s a bug, but there’s definitely something not connected quite right in your forms.
When you added the forms to the user tasks, did you use the linked, embedded, or form key option? (Default should be linked.)
My first guess is that the form is embedded, which means the form definition is part of the BPMN model and not a separately deployed file. If you change the form in Modeler the embedded copy isn’t automatically updated. (This is the advantage to using linked forms.) Perhaps the embedded form has a different form key for the text field in the second form?
@wissenstein - if you want to continue to use embedded forms, you need to add one additional step to your deployment process: update the embedded form on the user task. Linked forms are deployed separately with the process, and the process references them, so they are generally always up to date. There are some limitations with form linking to be aware of as well: Form linking | Camunda 8 Docs
I deployed a version of the process with linked forms. Now greeting1 is kept among the process variables, but the second form still does not show it in the field.
@wissenstein - that is strange. Can you attach your BPMN and form files here? You can export them from Modeler (click the vertical “…” from the file list to download), then attach them to the reply. Then we can dig a bit deeper to see what’s happening!
It’s possible that an older version of the process was run again. One thing you can do is to delete all your deployed processes and start again from the beginning. This, of course, isn’t a great option in a true production environment, but for learning it can be quite helpful.
The other question is how are you starting the process? If you don’t want to delete the resources, it’s worthwhile to make sure you’re starting the newest instance. How you do that differs a bit depending on how you’re currently starting the process though.