How can I start a process and get response before arriving to wait state
I designed a very long and complex WF with up to 30 service tasks at the beginning and then user task.
When I run the WF through Activiti-Explorer the WF run just fine.
But, When I run the WF through Activiti-Rest, I get Internal server error 500.
This phenomenon happened again with WF that start with one service task that last for 3 min and after that there is user task.
I think the problem is that response for "start process" request is not given until WF reach wait state (user task for example) - the connection channel cut after a while without receiving the response.
Am I right?
I yes, How can I avoid it? How can I start a process and get response before arriving to wait state?
Re: How can I start a process and get response before arriving to wait state
Thanks Greg Harley for the immediate response. Sorry for my delay...
I have problem with using the message start event because that mean defining every WF with 'message start event'. It has cost of complication in WF construction (WF construction is done by system users)
Another issue - I use this rest call (start process instance) also for 'errors handling'.
For now, I know how to catch errors occur in service tasks by two POST rest calls - complete task & start process.
Mean by the rest call of 'Start process' - I able to catch, in my system, errors occur in service tasks locating at the beginning of the process (before reaching wait state).
Strangely, I can not catch errors by 'ACTIVITY_ERROR_RECEIVED' event in Active MQ.
If I will use fire and forget I will cut this "errors stream" and that is not good...