Hi,
I have a scenario, where in, i invoke Workflow from an ASP .Net app and the workflow is state machine workflow.
The workflow starts by listening to an event and the event executes sequence of steps and calls external method, that is defined in ExternalDataExchangeService.
Once the method gets executed, it returns a value, which will be caught by workflow.
Based on the return value, i need to raise specific event, which is again defined in ExternalDataExchangeService.
To simply put, i need to have a choice, where in either user or workflow itself based on method's return value has to raise the events.
Can we do this If so, please let me know the procedure.
Thanks in advance for your time.
Regards,
Pavan

Raising external event from Workflow itself
Adam23
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=788097&SiteID=1
cmfairbank
I have tried implementing your solution and it worked well for the first time, later on my application got hung, when ever i try to re-execute next steps.
By the way, i am using ASP .Net app to host my workflow and ManualWorkflowSchedulerService to run my WF with in the web app.
I think, there might be some conflicts between the Thread that runs my web application and the thread (obtained from ThreadPool), which executes the event.
I have few queries in this regard,
- Are you using ASP .Net application as your host
- If so, do you get similar kind of behavior from your application.
- Is there any way to resolve this issue
Thanks in advance for your time
Thanks a lot
It worked for me also.
Regards,
Pavan
Aaron128
I have answered your questions at:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1127732&SiteID=1&mode=1
Thanks,
Kushal.