AnsweredAssumed Answered

How to set any custom due date?

Question asked by dbz on Apr 8, 2009
Latest reply on Apr 9, 2009 by dbz
Hello, guys and girls!

I'm asking google about this the whole day, but the situation is sad…

In standard Alfresco process definitions there are following code:

if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;

This checks the bpm_workflowDueDate parameter and, if it's set, sets the dueDate for the taskInstance variable.

I looked for how to set taskInstance.dueDate to be DIFFERENT from bpm_workflowDueDate and there is no answer! Anywhere!

I've tried various variants of how to do that, like:

taskInstance.dueDate = bpm_workflowDueDate - 1;
or
taskInstance.dueDate.setDate(bpm_workflowDueDate.getDate() - 1);
or
taskInstance.dueDate.setDate(new Date(bpm_workflowDueDate) - 1);
or
taskInstance.dueDate = new Date();
or even
taskInstance.dueDate = new Date(bpm_workflowDueDate - 1);

:(

Nothing works…

How to do what I want?
And, please, refer me to the specs where taskInstance variable defined…

Thank you very much!

Outcomes