SAP Knowledge Base Article - Public

3242289 - Date and time in a JavaScript tasks

Symptom

How can I determine date and time, when a user task was done? I would like to store the information in a variable to use it in further tasks. 



Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Resolution

For getting the date/time, you can add a JavaScript task just after the user task, e.g.:

You need to declare the JavaScript variable in the task configuration to use it in further tasks:

More information on moment library you can find here: https://documentation.signavio.com/suite/de/Content/workflow-accelerator/developerguide/javascript-libraries.htm

Keywords

KBA , BPI-SIG-PG-JS , JavaScript for SAP Signavio Process Governance , How To

Product

SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions

Attachments

image2021-11-10_11-51-55.png
image2021-11-10_11-52-26.png