Hi! We are going to start using bonita and alerting/notifying that you have a task pending is a must, i had read many other posts but i haven't find a solution, I would like to send a mail to everyone in a group. i was thinking to do a script to generate coma separated mails but i don't really know how to do it. can you help me? Thanks in advance!
Try puting the script in a textbox so you can see the result… i didn’t had any trouble with the script…
in the script did you substitute the “/acme/hr” with some actual existing group in your organization?
Continue the error…!! I did try this…
I need this code for implement a connector for send email to users of a group.
I have a conector implemented… this is right… but can only a one user email
I need help …!!! for this Script… I implemented in my project…
I have this error:
"java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: groovy.lang.MissingMethodException: No signature of method: static org.bonitasoft.engine.api.APIAccessor.getIdentityAPI() is applicable for argument types: () values:
"
Hi Poltowers.
It seems to me that you have made some mistake in the code getting IdentityAPI. Could you attach here the code you’re using?
Ill give a look.
Ciao
Hi domenico,
i would also like to use your solution,
but my Problem is, I already have the GroupId as a String and would like to use it instead of get GroupByPath.
Can you give me a solution?
Thx
Group groupSelected=apiAccessor.getIdentityAPI().getGroupByPath(“/acme/hr”);
List usersInGroup=apiAccessor.getIdentityAPI().getUsersInGroup(groupSelected.getId(), 0, 100, UserCriterion.FIRST_NAME_ASC);
List listUserId = new ArrayList();
for (User user:usersInGroup){
listUserId.add(user.getId());
}
return listUserId;
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.