Why does an activity not open when a Date or Datetime Deadline is set

Confluence User - 09 Jul, 2017

When I set a Day, Hour, Minute or Second Deadline for an Activity and monitor the processes, then the Activity opens until the Deadline occurs (synchronous) or the Activity opens and stays open until later completed (synchronous). In either case the next Activity is opened. However, when I choose a Date or Datetime deadline in the same Activity and monitor the processes, the Activity does not even open. Do I misunderstand this or is there a problem. I am using v6 Beta 2.

process;processes

3


09 Jul, 2017
confluenceUser
confluenceUser

Andrew,

I believe I have found the issue and also believe it is a bug in v6 Beta 2. The errors i found in the catalina.out log look like this:

ERROR 09 Jul 2017 01:00:08 Scripting - JavaScriptEvaluator -> The result of expression var d = new java.text.SimpleDateFormat('dd/MM/yyyy'); d.parse(17/07/2017); can't be evaluated - error message=Wrapped java.text.ParseException: Unparseable date: "0.0012040512784191515" (#1)
ERROR 09 Jul 2017 01:00:08 Shark - JavaScriptEvaluator -> The result of expression var d = new java.text.SimpleDateFormat('dd/MM/yyyy'); d.parse(17/07/2017); can't be evaluated - error message=Wrapped java.text.ParseException: Unparseable date: "0.0012040512784191515" (#1)
ERROR 09 Jul 2017 01:00:08 org.joget.workflow.model.service.WorkflowManagerImpl - org.mozilla.javascript.WrappedException: Wrapped java.text.ParseException: Unparseable date: "0.0012040512784191515" (#1)
org.mozilla.javascript.WrappedException: Wrapped java.text.ParseException: Unparseable date: "0.0012040512784191515" (#1)

However, when I put quotes around the Hash Variable in the Deadline specification it began to work properly.

According to the documentation quotes should not be required so this may be an omission in the code.

 

Thanks, Bill

10 Jul, 2017
confluenceUser
confluenceUser

Hi Bill,

Actually, quotes are required for non workflow variable value for deadline limit of date type duration unit. Since you are using Hash Variable, you will need to quotes it. 

Our team will update the page to put a note for it. We had also committed a change for next version to auto adding quotes when quotes are missing for non workflow variable value.

Best regards.

10 Jul, 2017
confluenceUser
confluenceUser

Great, thanks Owen!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print