send multiple messages Via APi ?
from one pool to several pool:
* use a Throw event. A thread event can send multiple messages (just click on Add for each message)
* via a groovy script. Look at the example I already sent you.
Sorry but i think that my question was wrong:( or not precise!!!
I want to send the same message from one pool to several pool?
So, for each message we must give a different name.
whoever I want to send it to different partenaires with the same name!!!!
Is it possible?
Because it is a standard message.
Effectively, after process execution I want to extract messages information from log file !!!
You mean to use for example :
* From a Groovy custom page ==>JAVA API , getting the apiAccessor from the pageContext
So I must create this page with groovy out bonita(in another editor) or in bonita ?
How I can do it?
No, I'm PHd student,
I want to analyze the execution traces of collaborative process that I am trying to develop. I want to extract all the elements of my process (activities, messages, events, times ....) from the logs to build it later.
I use bonita to develop a collaborative process, using standard messages.
The message names are standard, we cannot change them.
I want to send a message to two collaborators with the same name, Throw Event does not allow the same nomination for two messages !!! so is there another solution?
how can I be in contact with a consultant?
I mean partner process or collaborative process.
This names were imposed by standard, we can not change its Names.
We have xml schéma predefined.
But i create my owner schéma with bdm with the
OK sir I will try
Thanks a lot
I touch about consultant because I'm in my last year of phd I must finish it.
if the price is suitable for my situation :)
That's me who defined internal I'd name with the same name of message imposed by standard. For raison to detected them from log or database as you propose.
Even email I think we must send itsome with different name??
I think that is a good idea.
I will send the message to the first process and the same message in email as notification for the second process.
Have a good weekend
Please find here an example to send a message via the API (this example comes from the Longboard page) https://community.bonitasoft.com/project/custom-page-longboard
Have a look at line 231.
with send message task, there is no connector to add API ?
What do you mean by "add API"? And what is a "connector to add API"? Do you speak about the Command (which is a way to add a API method inside a Bonita Engine)?
I think that you propose to create a separate java application ?
How I can integrate it with bonitastudio with task which send this message?
I search a way to send message to différents pools within bonita studio or uI design without used source code !
I am looking for the simplest, the essential that I send message (which contains a complex variable) from one pool to several pools.
What method do you suggest to me?
Thanks sir so much.
I will try this solution.
Have a good weekend
as you have suggested, i create a groovy connector with this code:
Expression targetProcess = new ExpressionBuilder().createConstantStringExpression("P2");
Expression targetFlowNode = new ExpressionBuilder().createConstantStringExpression("Démarrer3");
ProcessAPI processAPI = apiAccessor.getProcessAPI();
Map mapA = new HashMap();
Expression messageContentKey = new ExpressionBuilder().createConstantStringExpression("key");
Expression messageContentValue = new ExpressionBuilder().createConstantStringExpression("AdtA04DAO");
processAPI.sendMessage("adt_A04", targetProcess, targetFlowNode,mapA);
but i don't know how to received this message by P2?