index > Windows Workflow Foundation > Raising external event from Workflow itself

Raising external event from Workflow itself

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
Pavan Apuroop
Yes, this can be done. Also please see my post about the similar thing:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=788097&SiteID=1
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
reply 3

You can use google to search for other answers

 

More Articles

• CreateWorkflow failing validation
• Why would I use Windows Workflow Foundation for Page Flow?
• Question about state machine workflow designer form
• VS 2005 final release vs. Windows Workflow Foundation
• Deserialization in while loop
• Long run business process
• Authoring Workflows at runtime
• FindLast on UserEvents have been removed
• how to customize workflow in web page
• Restarting Workflow on handled Exception
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Spawning multiple instances of the same
• WF & WCF
• The new kid on the n-tier layer block?
• Roles and next activities help needed?
• ASP.NET & SQL Persistence/Tracking W
• workflow and web apps
• make a simple ASP.Net workflow
• Bug? ArrayList as parameter
• I want to Develop the ASP.NET RuleSetToo
• Is WF worth it? Convince me!
• How to upgrade Beta 1 projects to Beta 2
• Problem in WorkflowRuntime.WorkflowCompl
• Rehydration and member variables
• Problems printing Workflows from Workflo
• Defining private field using xoml

Hot Articles

• Durable and non-Durable Workflows in sam
• Cloning activities in hosted designer fo
• How to create and run a workflow instance.
• Statemashine workflow - Set State
• TransactionScope
• Where's the beef? (actually, the runtime
• How do you serialize WorkflowCompletedEv
• Hide child activities in a custom Sequen
• pesky DLM file
• State Machine Workflow ( Beta 2.0 )
• workflow monitor
• Windows Worflow Designer
• Parallel Webservice Invocation
• uninstall
• About WorkflowRuntime.CreateWorkflow

Recommend Articles

• Fault Handler and Bindable Properties
• Pageflow Engine
• Custom Composite Activities and Correlat
• Why can't call custom Activity with para
• Event Driven Activity On Parent State
• While Activity - Loss of status
• Compilation failed for Travel Demo
• Message Delivery Exception in Windows Se
• custom activities property values
• how to make the connector line at topmos
• Workflow collaboration
• State Machine and AutoResetEvent
• properties - file dialog
• own Attributes on Interfaces
• How to call webservices in a workflow in