AnsweredAssumed Answered

How to start task in date

Question asked by gslamy on Aug 6, 2015
Latest reply on Aug 7, 2015 by gslamy
Hello everybody!

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"> 
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
               <![CDATA[execution.setVariable('startdate', task.getVariableLocal('bpm_workflowDueDate'));]]>

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.