cancel
Showing results for 
Search instead for 
Did you mean: 

Current Date and Other Available System Variables in the Context

ramki_maley
Active Contributor
0 Kudos

I need to check current date with a date supplied to the workflow context from the application. Is current date available in the context similar to ${info.startedBy}? Is it in YYYYMMDD format? What other variable are supplied by the system other than the below?

  • workflowInstanceId
  • workflowDefinitionId
  • startedBy
  • businessKey

TIA,

Ramki Maley.

tobias_breyer
Contributor
0 Kudos

Hi Ramki,

There are no other fields on $.info than the ones documented. This is a special object only for workflow related data. But the standard Ecmascript 5.1 APIs are available.

You can use any date-related API that is defined in that standard. For example, "new Date().toISOString()" will give you the current time in YYYY-MM-DDTHH:mm:ss.sssZ

Regards,

Tobias

ramki_maley
Active Contributor
0 Kudos

Thanks Tobias!

Accepted Solutions (1)

Accepted Solutions (1)

MaKu
Advisor
Advisor
0 Kudos

Hi Ramki,

please check this site and if this answers your question: https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/LATEST/en-US/46d90c6dd6ee4103ba35da3b3f...

BR, Manuela.

ramki_maley
Active Contributor
0 Kudos

Thanks Manuela!

Answers (0)