Is it possible to start a process with start message thru Rest API?

1
0
-1

Hi all,

I am new to Bonita. I want to start a process with "start message" without knowing its process id thru rest api, is it possible? I couldn't find any example on Internet. Many thank in advance.

2 answers

1
0
-1
This one is the BEST answer!

Finally get it works.

The messageName should be the same as the "Catch message" configured in the "message started" event, and the targetProcess should be the same as the process name (Pool -> Name).

Comments

Submitted by Pierre-yves Monnet on Sun, 09/06/2020 - 22:28

Hello

Awesome,

yes this is the same way as a classical process.

LongBoard help you on to determine the message you have to send

https://community.bonitasoft.com/project/custom-page-longboard

1
0
-1

Hello,

Sure it is possible via the REST message /API/bpm/message

https://documentation.bonitasoft.com/bonita/7.11/bpm-api#toc41

All the REST API documentation is here

https://documentation.bonitasoft.com/bonita/7.11/_rest-api

Best,

Comments

Submitted by whelan.chan_1989823 on Sun, 09/06/2020 - 03:36

Thanks man.

Actually I already tried the rest api... but I configured my process with start message even to catch message. e.g. "abc", and i submit a message thru rest api with the same name:

{

"messageName" : "abc" ,

"targetProcess": "abcManagement",

"messageContent" : {

"submitRFQ" : {

"value" : "refNo1"

}

}

}

It returnd 204 but I don't see any case created in my portal... what could be done wrong?

Notifications