index > Windows Workflow Foundation > State Machine Workflow sending an event to itself

State Machine Workflow sending an event to itself

Hi All,
lkurts
Hi,
lkurts
Hi,

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
Pavan Apuroop
Hi,

I am not using ASP.NET, I am using a simple console host. It is not quite clear from your post what do you mean by "hung". Could it be that the state machine workflow is just waiting for some event and is simply idle?
lkurts
The web page, i am running, works well for the first time, when used ThreadPool.QueueUserWorkItem(), but for the next activity onwards, it stops responding.

I guess, ManualWorkflowSchedulerService has some issues with ThreadPool class and here are some points to support my guess:

- ManualWorkflowScheduler service makes web app to donate its thread to workflow and waits for the workflow to return back its thread.

- But when we use ThreadPool, workflow picks up any thread available, and executes the event. This causes the workflow, not to return back the thread to webapp.

- But on front-end, it appears (as soon as the event finishes), that the workflow is finished its current execution and waits for next event.

- As the web app is still waiting for its donated thread, it stops responding to any other requests / responses till it gets back the donated thread.

- This causes the application to hang.

These are purely my guess.

Lets wait for any work around to resolve this issue.

Regards,

Pavan

Pavan Apuroop
reply 5

You can use google to search for other answers

 

More Articles

• WebPageRequest/Response activities for ASP.NET integration
• K2.NET vs WWF
• persistence runs only one workflow instance at a time ??
• Questions about my ASP.NET scenario
• Invoke Workflow
• how to using different designer for respectivetly purpose?
• stateinitialization
• xoml or xaml?
• Query for pending Activities with access prvilages for a specific...
• help
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Loading a workflow from xoml file
• WF custom persistence once again
• Reinitializing a correlation token
• Please, Help!
• How to use SharedConnectionWorkflowTrans
• PageFlow WPF Example
• Using InvokeWorkFlow..??
• SqlWorkflowPersistenceService exception
• Workflow desginer Not accesible
• Tracking query problem
• Tracking Changes in 2.2
• How to invoke a web-service specified at
• Validation of Declarative Rule Condition
• Event cannot be delivered
• Filtering activities before insertion; A

Hot Articles

• Any plan to support C++ or Managed CLI/C
• CancellationHandlerActivity
• EventSink activity in WWF Beta 2
• Workflow instance does not exists
• What's the type activity to implement th
• Adding InstanceID as SOAP Header to outg
• Workflow monitoring in Beta 2/2.2
• Best pratice for retrieving data from wo
• How to Create property of type Custom da
• About the Workflow Designer in the lab 10.
• asp.net error continues in the RC versio
• Programming vs. Designing Workflows
• Why doesn't workflowInstance be loaded w
• WF surface designer - loading definition
• Problem generating default childs on cus

Recommend Articles

• How to create a workflow about asp.net?
• Dynamically setting the next state from
• web service workflow
• A workflow application from Visual Studi
• Workflow Foundation and the Hosting Proc
• Where can I get the WWF Beta 2.2 trackin
• Errors while compiling xoml
• Simple SM Workflow Action Doesn't Seem P
• Windows Workflow Foundation Technology F
• Controling the Asp.net pages
• Workflow designer debugging does not work
• regarding passing parameters between wor
• WorkflowRuntime.GetWorkflows() does not
• Compiling markup with embedded code does
• Passing data between activity & flow