Nuxeo Server

How to Set a Default Value on a Date Field of a Task Form

Let's say we have a workflow variable in a workflow whose name is due_date. In the first node of the workflow, a task asks the workflow initiator to fill-in the participants. He/She also has to set the due date, but a value is already suggested: The current date plus seven days.

While desinging your workflow in Nuxeo Studio, in order to pre-set the due_date value, you can use an input automation chain on the node (General tab of the Node Properties dialog). In this automation chain, you use the Workflow Context>Set Workflow Variable.

Fill in the following parameters:

  • name: due_date
  • value: @{CurrentDate.days(7).date}

2 months ago manonlumeau NXDOC-1405: format + clean up + ok for lts2017
3 months ago Manon Lumeau add tags for doc days
3 months ago manonlumeau Added content-review-lts2017 label
4 months ago manonlumeau NXDOC-1346-FT review screenshot
3 years ago Solen Guitter 6
3 years ago Manon Lumeau 4
3 years ago Manon Lumeau 5
4 years ago Thibaud Arguillere 3
5 years ago Solen Guitter 2 | Added excerpt
5 years ago Alain Escaffre 1
History: Created by Alain Escaffre