Display timestamp in workflow task description
Here is a challenge for all workflow development enthusiasts
Imagine there is a workflow with 5 tasks in it. Is it possible to display the timestamp of the workflow start in the description of the first task ((see below screenshot just as an example from OOTB workflow))
There is a workflow that can be run several times in a day, and the tasks can be acted upon by the data stewards after a while. When the data stewards look at “My tasks”, they see many tasks with the same name and description which is little confusing for them. The “related resource” column will be NULL here as the workflow just started.
I did some research and found the “Description” column value is coming from the “Documentation” column of the respective task in the workflow code.
Appreciate any ideas…
arthurburkhardt
Ah, finally got one working:
arthurburkhardt
loggerApi.info("This workflow started at: " + execution.startTime)arthurburkhardt
You can, but then you have to write
arthurburkhardt
noor
OPah, it just picks the value as-is. May be, we cannot write code in the “documentation” field
noor
OP@arthur.burkhardt this still does not work for me, and the string “{execution.startTime()}” gets printed. Is there any pre-cursor that I should set…