08-06-2015 07:06 AM
<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>
08-06-2015 10:52 AM
08-07-2015 02:07 AM
var date = new Date();
var timeInMillisecs = date.getTime();
var ISODate = utils.toISO8601(timeInMillisecs);
var origDate = utils.fromISO8601(ISODate);
08-07-2015 03:39 AM
<boundaryEvent id="reminderTimer" name="Reminder Timer" attachedToRef="processingTask" cancelActivity="false">
<timerEventDefinition>
<timeDate>${reminderDate}</timeDate>
</timerEventDefinition>
</boundaryEvent>
execution.setVariable('reminderDate', utils.toISO8601(reminderDate));
08-07-2015 06:31 AM
<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(utils.toISO8601('bpm_workflowDueDate')));]]>
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</startEvent>
<intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent">
<timerEventDefinition>
<timeDate>${startdate}</timeDate>
</timerEventDefinition>
</intermediateCatchEvent>
08-07-2015 07:40 AM
<startEvent id="request" activiti:initiator="initiator" />
08-07-2015 08:28 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.