How to send message within a signal to several pools?

1
0
-1

How to send message within a signal to several pools?

can I send a complex variable through a signal to several pools?

Comments

Submitted by maouachria on Mon, 10/19/2020 - 18:47

can I send a complex variable through a signal to several pools?

1 answer

1
0
-1

Hello,

With Bonita, a SIGNAL can't carry any message. So, you can imagine a mechanism where:

* you store data somewhere in a table

* you send your signal

* each receiver comes to read this piece of data

and a MESSAGE can carry data, but a message is 1 to 1 : one sender, one receiver.

Via the APi you can send multiple messages.

Best,

Comments

Submitted by maouachria on Tue, 10/20/2020 - 07:38

Thanks sir

So, how I can do it with api?

Submitted by Pierre-yves Monnet on Tue, 10/20/2020 - 20:10

Hello,

With the JAVA API, you can send a message

Have a look in the Longboard page, here

https://github.com/Bonitasoft-Community/page_longboard/blob/master/src/m...

SendMessage : line 231

Hope this help,

Submitted by maouachria on Tue, 10/20/2020 - 21:54

I use bonita studio, so, I should be create this project in Java editor after that I will add it to my bonita project as page resources ? Are there any way to do this with bonita.?

Notifications