AnsweredAssumed Answered

Specify candidate group for my serviceTask

Question asked by vincent_roye on Feb 11, 2014
Latest reply on Feb 11, 2014 by afaust
Hi,

I am customizing a document review workflow and I would like that this serviceTask :


<serviceTask id="reviewNagEmail" name="Nag Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate" activiti:async="true" activiti:exclusive="false">
      <extensionElements>
        <activiti:field name="script">
              <activiti:string>              
                var mail = actions.create("mail");
               mail.parameters.to = "fff@fff.no";
               mail.parameters.subject = "reminder";
               mail.parameters.from = "fff@fff.no";
               mail.parameters.text = "It's the day";
               mail.execute(bpm_package);
            </activiti:string>
         </activiti:field>
        </extensionElements>
      </serviceTask>


sends a mail only to people who haven't reviewed the document yet. What's the best way to make it ?

Thank you very much,

Best Regards,

Vincent

Outcomes