You are viewing limited content. For full access, please sign in.

Question

Question

initiated_time

asked on March 28, 2017

I want to create an outflow condition that terminates a workflow if a deadline for submission is not met. As I can't build that in the wysiwyg outflow builder,  I need to know how to format the date and time for this so that I can create the value to compare against. I've found documentation on the date format, but not the time.

Maybe there's a better way to do this, but this is what I'm trying to create:

 

/dataset/_initiated_time/ <= 2017-08-15 ??

0 0

Answer

SELECTED ANSWER
replied on August 7, 2017

Hi Zane, the format for date/time field variable is different from the initiated_time, for date/time field variable as you referred in the screenshot, the conditional expression is "/dataset/Date>"2017-08-04 09:45:00". An easier way to know what the expected value in the conditional expression is to add a "save to repository" service task and check "save business process data as XML" and check the format of the values in the XML saved.

1 0

Replies

replied on March 28, 2017

The format likes this "2016-12-23T08:48:53.0170215Z"

1 0
replied on March 29, 2017

Thank You!

0 0
replied on August 4, 2017

I have just now started testing this, but it's not working. 

Here is my outflow condition language in my exclusive gateway:

/dataset/Date>"2017-8-4T09:45:00.000Z"

Which should divert the the process to terminate, otherwise the process should continue.

Attached is an image of the field "Date" as it is set in the form.

0 0
replied on August 4, 2017

I have just now started testing this, but it's not working. 

Here is my outflow condition language in my exclusive gateway:

/dataset/Date>"2017-8-4T09:45:00.000Z"

Which should divert the the process to terminate, otherwise the process should continue.

Attached is an image of the field "Date" as it is set in the form.

ltac-application-form -Date Field.png
0 0
SELECTED ANSWER
replied on August 7, 2017

Hi Zane, the format for date/time field variable is different from the initiated_time, for date/time field variable as you referred in the screenshot, the conditional expression is "/dataset/Date>"2017-08-04 09:45:00". An easier way to know what the expected value in the conditional expression is to add a "save to repository" service task and check "save business process data as XML" and check the format of the values in the XML saved.

1 0
replied on August 8, 2017

Thanks, for the answer and the tip on writing the XML for field formatting info. I'm sure I'll use that in the future. Your date formatting worked great.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.