Hello everybody!
I have some problem with start my task in date from "bpm_workflowDueDate" field.
I extracted date (if it works..):
Now I need start next task in date from variable ("startdate"-3 days). I tried to add a timer, but I think it has a different date format and doesn't work.
Please, help me with this question, I can't find solution. Thank you.
I have some problem with start my task in date from "bpm_workflowDueDate" field.
I extracted date (if it works..):
<startEvent id="startevent" name="Start" activiti:initiator="initiator" activiti:formKey="scwf:startstaff">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
<![CDATA[execution.setVariable('startdate', task.getVariableLocal('bpm_workflowDueDate'));]]>
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</startEvent>
Now I need start next task in date from variable ("startdate"-3 days). I tried to add a timer, but I think it has a different date format and doesn't work.
Please, help me with this question, I can't find solution. Thank you.
Activiti timers use date formats in the ISO standard. You can use the Alfresco Utility method to convert the date you construct to the required format. http://docs.alfresco.com/4.1/references/API-JS-Utility-fromISO8601.html