.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How does the workflow engine receive the external event?

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :WPF
WorkflowRuntime workflowRuntime = new WorkflowRuntime(); ExternalDataExchangeService dataExchangeService; dataExchangeService = new ExternalDataExchangeService(); workflowRuntime.AddService(dataExchangeService); PaymentProcessingService paymentProcessing; paymentProcessing = new PaymentProcessingService(); dataExchangeService.AddService(paymentProcessing); With the code above, our application can use paymentProcessing.RaiseXXXXEvent to interactive with the workflow instance. My question is : What's the principle to implement such a mechanism. I think this is a kind of Event Driven Pattern, but how can I implement this mechanism and why ? Please point me the direction or any references are appreciated. By the way, is there the mechanism in jBPM ? Does jBPM include sequence workflow and state machine workflow like window workflow foundation ? Thanks ! Dummy

View Complete Post

More Related Resource Links

State Machine Workflow + External Event + Delay activity



I have state machine workflow with a state contain 2 event driven activities, one is waiting for an external event, and second one is delay. If the external event didn't happen within specified time, timeout occurs and send email. But if the external event delivered, it transited to next state.


Both situation works fine. But once the external event occurred and transited to next state, the delay activity time out happens and it sends the mail. I don't want it happen, When i read through various blog, I learnt that once the workflow instance moved to next state, all event subscriptions related to the previous state are removed from the queue.... But it is not happening in my situation

Kindly help me to find where i am going and to resolve this issue..


p.s I set manualworkflow scheduler  - useActiv

How to get Workflow Runtime outside SharePoint Workflow class, while calling Handle External Event?



I have a state based workflow. Now, i want to change its state based on the event raised by my form(Like on Submit). I created the workflow and started it on the item in a doc Library. But, now when i want to register an external event we need to add that local service to the workflow runtime of the current executing workflow.

I am not able to find any way to do that or a workaround to achieve the same.

Does anybody has any idea about this??

InfoPath Workflow Task Form "Loading" event handler only being called after App Pool recycled.


I have a Workflow that is using an InfoPath task form.  In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened.   I recycle the App Pool and open the form the code runs perfectly, but if I close and try to re-open the form the code is not run at all.  I can then recycle the App Pool again and on the next load the code executes just fine.   The code that is supposed to be run is a very simple statement to set a field value, so I don't think it is interfering.

Does anyone know what this might be?


Infopath button click event in custom workflow code.


Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.




Binding event or interacting with WorkflowDesignSurface in Workflow Monitor

Is there any way to modify the sample Workflow Monitor class so the user can interact with the diagram, for example;    1) being able to select an activity in the diagram and get back an event of which activity was selected? and/or 2) being able to trigger an if else branch by clicking on the diagram. Any pointers to howtos/tutorials will be helpful, thanks!

Workflow Service 4.0 with One Way Receive activity will not get fired when called by a console based

Workflow Service 4.0 with One Way Receive activity will not get fired when called by a console based client application. This service does get called when there's the default ReceiveRequest coupled with a SendReply activity in the service. However deleting the ReceiveRequest and SendReply Activities and replacing it with a one way Receive Activity causes the Workflow 4.0 Service to not get called. Thanks, Leo Cono - http://www.YouLoveMe.com, Free Dating Site  

sharepoint 2010 event receive

Hi, Hi, I have a two fields(mailid,cost,mailid2), i need a validation of mailIds if already existing  mails three time I need a validation for new request , I have user interface in InfoPath 201 0 , workflow SharePoint designer 2010 , everything is working now I need a validation mail id , if mail is already existing three time ,how to count mails ids individual mails how to i count Regards

Which is the best approach out of 'workflow' or 'rule engine without workflow' for business rule

Hi Everybody   Please let me know which is the best approach for applying business rules from out of 1)windows workflow 2)rule engine without work flow Please give me the scenarioes where exactly used? Thanks in advance..my dear friends  

Adding Flexibility to SharePoint 2010 Workflows Using the Windows Workflow Foundation Rules Engine

Learn about Windows Workflow Foundation rules engine capabilities and benefits to automate business logic and processes for workflows in SharePoint 2010 applications.

pass data to event in workflow



i have the event that calling  my workflow to start,then this workflow when is completing must passing data to this event.

how i can call(and pass data to)event in sequential workflow programming?(in sharepoint2010,visual studio2010) 


WorkFlow Event Reveiver parameter "properties.ActivationProperties" is null.

I have been trying to write the event receiver on completion of my out of box "Approval - Sharepoint 2010 workflow" set on a Site Page library. I need to update some column on completion of the workflow.

So for this I need is the list and listItem to which the workflow is attached and the column that I need to update. I understand I can get this using "properties.ActivationProperties" but what I get is null value for this. Can someone help me in this regard? I also tried reading the same in workflowStarted event but even there I get the value as null.

Passing parameters of type List<> from a web application to the Receive activity of a workflow servi



I have a Recieve activity with the following parameters in the Content property.  Using generic parameter names here:

- parameter1 of type Object1 assigned to Parameter1 variable

- parameter2 of type List<Object2> assigned to Parameter2 variable.  Note - default value of Parameter2 variable = New List(Of Object2)()

- parameter3 of type Object3 assigned to Parameter3 variable

In my web application, I create a service reference and create a client as such:


SomeWFServiceClient client = null


 client = new
 List<Object2> listOfObject2 = new
 List<Object2> { new
 Object2 {Id=1, Name="SomeName"
, Type="Customer"
 }, };

client.ProcessSomething(Object1, listOfObject2, Object3);


I have a breakpoint at the Receive activity.  When I look at the values that get assigned to the Receive activity parameters, I see that parameter1 and parameter3 ge

how to create date time event in sharepoint workflow



I want to change the status of a list item one month after its approval. which event should i fire and how do i do it in workflow. any idea.



workflow pause and event handlers


Hi All,

No matter what I do, if I pause my workflow, and then update a list item after the pause is over, my event handler on update list item will not fire, though the item has been updated! No matter I use Set Field or Update Field, same result. If I do not use pause, it will fire. 

I need pause to give user sometime to react, if he doesnt then remind him. Can use Wait Until Due Date etc., but why not pause. (Not sure, if event firing will work with Wait Until Due Date even.)

Any ideas will be much appreciated.


Rehman Gul

How can I make my Visual Studio Workflow update my External List that I created in SPD


I am creating a workflow VS2010 that can write to regular SP Lists however, when I try to have it write to my External List it does not work?


Leland Usher SharePoint Developer/Administrator

Item Event Receivers or way to validate data entered for External List in SharePoint 2010?

Hi everyone,

Are there Item Event Receivers for External List in SharePoint 2010? If not, is there a way to validate the item data entered from External List UI in SharePoint site?


Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventRecei


Hi all, i found the below error in event log. How can i fix this issue.

Event ID: 6875            Source: Windows SharePoint Services 3

Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver in Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.

: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Please help me out in this issue. Thanks in advance.


K2Blackpearl, Sharepoint, .Net

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend