<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var grupo=new Array();
grupo[0]="GROUP_Vendedores"; //*nombre del grupo para el envio *//
var mail= actions.create("mail");
mail.parameters.to_many=grupo;
mail.parameters.subject = "prueba";
mail.parameters.text = "cuerpo del correo"
mail.execute(bpm_package);
</script>
</action>
<task-node name="Documentos Proformas" >
<task name="wfj:OC2" swimlane="initiator">
<event type="task-create" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var grupo=new Array();
grupo[0]="GROUP_Vendedores";
var mail = actions.create("mail");
mail.parameters.to_many = grupo;
mail.parameters.subject = "prueba correo workflow";
mail.parameters.text = "some text, in case template is not found";
mail.execute(bpm_package);
</script>
</action>
</event>
</task>
<transition to="Aprobacion G.Ventas" name="Enviar a Aprobacion">
</transition>
</task-node>
Hola de nuevo.
Como puedo enviar un correo a un grupo de usuarios desde el workflow.
O otra solución seria listar los usuarios.mail de un grupo especifico, para luego concatenar con ";" y poder enviar
Cualquiera de las dos soluciones me sirve.
Gracias.
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.