AnsweredAssumed Answered

bpm_workflowDueDate

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

I have some problem with start my task in date from "bpm_workflowDueDate" field.
I tried to get this date from "bpm_workflowDueDate" field:

   <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 want to start next task in this 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.

Outcomes