VMware Cloud Community
orian
Hot Shot
Hot Shot
Jump to solution

start time of workflow

Hi,

How can I retrieve the start time and date of my rootWorkflow?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
eoinbyrne
Expert
Expert
Jump to solution

In the script body you can reference the context built-in reference to the token for the overall workflow

I tested this just now

Created a simple child workflow with this script content

pastedImage_4.png

Then created a wrapper workflow to call TWO consecutive invocations of the child workflow

pastedImage_8.png

Running that workflow gives the following log content

pastedImage_9.png

You can see that both invocations of the child workflow are referring to the same WorkflowToken so the value of workflow.startDate for any child should always be the startDate for the overall root workflow

-HTH

View solution in original post

0 Kudos
1 Reply
eoinbyrne
Expert
Expert
Jump to solution

In the script body you can reference the context built-in reference to the token for the overall workflow

I tested this just now

Created a simple child workflow with this script content

pastedImage_4.png

Then created a wrapper workflow to call TWO consecutive invocations of the child workflow

pastedImage_8.png

Running that workflow gives the following log content

pastedImage_9.png

You can see that both invocations of the child workflow are referring to the same WorkflowToken so the value of workflow.startDate for any child should always be the startDate for the overall root workflow

-HTH

0 Kudos