Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Hello,

Is it possible for an activity to have its deadline set by a workflow variable?

I have a scenario where the activity has a deadline value of #variable.deadlineVar# where deadlineVar is a workflow variable. Now, when I try to start the process via a json call by using the following link:

http://mydomain:8080/jw/web/json/workflow/process/start/dynamicSetDeadline:4:process1?j_username=admin&j_password=admin&var_deadlineVar=5

catalina.out is showing the following stack trace:

ERROR 06 May 2013 11:15:12 Scripting  - JavaScriptEvaluator -> The result of expression var s=new java.util.Date(); s.setTime(ACTIVITY_ACTIVATED_TIME.getTime()+(#variable.deadlineVar#*1000)); s; can't be evaluated - error message=illegal character (#1)
ERROR 06 May 2013 11:15:12 Shark  - JavaScriptEvaluator -> The result of expression var s=new java.util.Date(); s.setTime(ACTIVITY_ACTIVATED_TIME.getTime()+(#variable.deadlineVar#*1000)); s; can't be evaluated - error message=illegal character (#1)

ERROR 06 May 2013 11:15:12 org.joget.workflow.model.service.WorkflowManagerImpl  - org.mozilla.javascript.EvaluatorException: illegal character (#1)

Does it mean that a deadline cannot take a value from a workflow variable?

Thanks!