Signal an event in demo application

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2013 10:51 AM
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2013 11:17 AM
The explorer doesn't allow signaling an execution? What exact REST-call did you use?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2013 03:23 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2013 08:43 AM
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 "/").
HAve you tried calling http://localhost:8080/activiti-explorer/service/process-instance/1327/signal (without the ending "/").
