How to update Camunda FollowUpDate and Due Date in a UserTask

Hi there,

well, I’m a bloody beginner and I’ve already read some threads about ‘Due Date’ but I just can’t get it handled so far…

I’m working on a Resubmission Workflow, it seems quite simple but I’ve got a problem here:

The initiator starts the workflow and fills in two forms in the start event (the variables are called “followup” and “due”).

In the first UserTask you can see both forms with the values.
The camunda default-fields (Follow Up Date and Due Date) also got the values → So far so good.

My Problem: I don’t know how to update the default-fields (Follow Up Date and Due Date), when the initiator updates the dates in the forms (followup and due) in his UserTask.

Wiedervorlage.bpmn (26.7 KB)

Forms in StartEvent

Someone got an idea?

Best regards
Peter

You’d need to explicitly update the Task with a rest call. You can send the new variables as part of the payload. A Save or Update button on the front end might be the best way to do this.
https://docs.camunda.org/rest/camunda-bpm-platform/7.21/#tag/Task/operation/updateTask

Hey Niall,

thanks for your quick response. With more knowledge I will test it.

Can you tell me if it’s also possible to update the forms with changed values from the default-fields? So the other way around…?

Best regards
Peter

Can you explain that in a little more detail - what kinds of variables would change? where would the update come from exactly and what would you like to see react to that update?

The update would come from changed values in the default fields camunda:followUpDate und camunda:DueDate as seen in the screenshot.

UserTask update by click on button “Save”.

Then, the new changed values (here: 30.08.2024 and 31.08.2024) should update the values in the forms where the arrows point to.

Can I somehow “get” the changed values to work with in my forms?

To do that, you’d need to update the process instance with the new variables, not the task itself.

You can use this API to do it: Camunda Automation Platform 7.21.3 REST API

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.