AnsweredAssumed Answered

send mails after every a particular period of time repeatedl

Question asked by mhp on Mar 21, 2012
Latest reply on Mar 21, 2012 by ronald.van.kuijk
i want to send mails after every a particular period of time repeatedly..
For that i am starting the process like this:
Map<String, Object> vars = new HashMap<String, Object>();
      vars.put("sender", "");
      vars.put("recipient", "");
and this is my bpmn20.xml code:
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"

<process id="helloProcess1">     
<startEvent id="start">
  <sequenceFlow id="flow1" sourceRef="start" targetRef="print" >   
   <conditionExpression xsi:type="tFormalExpression"> <![CDATA[${printer.isStandardOrder()}]]></conditionExpression>
<serviceTask id="print" activiti:type="mail">
        <activiti:field name="from" expression="${sender}" />
        <activiti:field name="to" expression="${recipient}" />
        <activiti:field name="subject" expression="Onboard Request for your approval" />
        <activiti:field name="html">
                  Hello ,<br/><br/>
                  Thank you,<br/>
  <sequenceFlow id="flow2" sourceRef="print" targetRef="end" />       
  <endEvent id="end" />     


But in the second time it is unable to resolve those sender and recipient parameter..
How to solve this..
Can anyone help me?its very urgent…