cancel
Showing results for 
Search instead for 
Did you mean: 

Signal an event in demo application

yongjian
Champ in-the-making
Champ in-the-making
I try to test a process with tasks and catching events. I created a process, deployed and started it in activiti demo application. It run as expected and wait at the event for a signal. How can I signal that event in activiti demo application? I tried to use activiti REST API, but it failed with message 'method not allowed'. Anybody has an idea? Thanks
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
The explorer doesn't allow signaling an execution? What exact REST-call did you use?

yongjian
Champ in-the-making
Champ in-the-making
I used restty to send a http post

http://localhost:8080/activiti-explorer/service/process-instance/1327/signal/

and set the json body to contain the activity id which is waiting for signal

body: {"activityId":"sid-03DB14B3-00E5-41C4-9F99-9B968AD21B1C"},

The response to this rest call is 'method not allowed'. But I actually included http basic authentication in the http header 'kermit:kermit' (base64). I'm new to Activiti and try to test the event signaling. I used a separate process which include an throwing event to complete my test. But really love to know how to use rest API to send signal.

Thanks -yongjian

frederikherema1
Star Contributor
Star Contributor
Method not allowed means the method you're using (I suppose POST, dhouble-check that) is not allowed to be called on that URL.

HAve you tried calling http://localhost:8080/activiti-explorer/service/process-instance/1327/signal (without the ending "/").