Hi Folks,
I'm trying to achieve the following.
Use case:
Discussion posts and replies are publicly visible
I recently implemented something similar. In the process I had a "Receive Message" event waiting. I had a Web API receiving the data which started a process. This process sends the data via a message to the waiting one. Works, but I think this is not the best solution. Next time I will try to just have short snippets of process, persisting state and data in DB, and each incoming call just figures out by status which process to start next. This way there are no active waiting process instances. Keep an eye on proper validation of incoming data and also if a specific call is allowed in the status the process is in.
Why not separate it in two processes instead?
The second process should receive an identifier or something to match it with the first process.
You could then call the second process to start from the API directly and you would probably need to handle exceptions on the second process.
Thanks for your reply, Could you please elaborate on what steps you have performed in the process model?
Thanks,
Sharath
For which variant?
Why don''t you create two WebAPI endpoints? I think it would be easier and will it it more reusable assuming that you divide the operations properly?
For example:
Create a Process Model with these Elements