.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

Auto Save Workflow after any ModelChanged event....

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery

1. After any changed to work flow I want to save my workflow locally on disk (e.g. similar to _workflowDesigner.Save(FileName)). When I call _workflowDesigner.Save within ModelChanged event none of my changes are reflected in that File which gets Saved...



2. Under which scenario TextChanged event gets raised ?

View Complete Post

More Related Resource Links

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!

Event handler that will take an e-mail sent to a doc library and save it as an .MSG file within the

Hi All, I have a requirement to create an event handler that will take an e-mail sent to a doc library and save it as an .MSG file within the library? Any help/inputs on getting this done is much appreciated.  Hanif

Workflow does not save settings

Hi, all! I have created a site on SharePoint 2010 (Team site template). Convigured several approval workflows based on a template of the "Adoption of SharePoint 2010 " for the Shared documents library. Then keep this site as a template. After I have created another site on previous saved this template. That is, the workflows themselves under the same name in the document library are present, but all settings (participnts accounts, the duration of tasks, etc.) - no. How to deal with this? It is necessary that users would not think of workflows settings, and run ready.

How to catch Save Ribbon event from code-behind for the custom webpart

Hi there, How can a custom web part(sitting on top of PDP) catch the Save Ribbon event from code? I’ve been looking around for solution, but not yet find one…. Thank you, —JoeJoe

Catch Save Ribbon Event from code-behind for webpart control

Hi there, How can a custom web part catch the Save Ribbon event from code-behind? Thank you, —JoeJoe

Catch Save Ribbon Event from code-behind for webpart control

Hi there, How can a custom web part catch the Save Ribbon event from code-behind? Thank you, —JoeJoe

find the label control of gridview in save button event in C#

hi, every one..i want save the gridview in buttonsave event..here i wrote the code like thisfor (int i=0;i<gridview1.row.count;i++){label lbl=(label)gridview1.rows[i].findcontrol("lbl");Textbox txtname=(Textbox)gridview1.rows[i].findcontrol("txtname");}here i got the textbox value but am not getting label value how to get that label value..thanks in advance

How does the workflow engine receive the external event?

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

Edit workflow at runtime save in db and restart on per client basis

I need to be able to create a workflow in code (not a problem). Start the workflow and edit it depending on business logic (Add Parallel branches) save workflow in database per client. Pull workflow defintion from database by client and continue to work and persist as workflow progreeses. I thought XamlServices or ActivityXamlServices but i can't seem to get to the individual activities to edit.

Auto-fill fields are racking up the version history whether they are on one workflow or many....SPD


I have a whole batch of fields which trigger an automatic date entry when they are changed: if more than one field is changed then a version is created for each field that is changed. I did some more fiddling to see how many of these workflows I could cram into one (originally built to have one workflow per date trigger) and tested again but although the changes are grouped together now the system automatic updates still trigger another version for each automatically entered date. Anyone know how to get around that? Its not unbearable but it just offends me somehow and it might cause a problem later on.

Completing Workflow on Document Save


I have a Workflow on a document library that is triggered when a new item is added and when an item is changed. The workflow alters the title of the document to add specific metadata that would be tedious (as well as adds certain other metadata).

The workflow completes successfully if a document is opened and then closed. However, if the document is opened and then saved and then closed, the workflow shows as having been stopped, and the title isn't changed nor have any of the other fields been updated.

If the document is opened and saved, but not closed, the workflow stops as well.

Any ideas how to make the workflow complete if the document is still open?

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.

ModelChanged event handler missing event args

I have implemented a ModelChanged event handler in my AddDesigner call as follows:

             _wd.ModelChanged += wd_ModelChanged;

The code for the ModelChanged event is:

private void wd_ModelChanged(object sender, EventArgs e)
            ModelChangedEventArgs changedEventArgs = e as ModelChangedEventArgs;

            if(changedEventArgs != null)
                IEnumerable<ModelItem> itemsRemoved = changedEventArgs.ItemsRemoved;

                foreach (ModelItem modelItem in itemsRemoved)
                    if (modelItem.ItemType == typeof(Flowchart))
                        MessageBox.Show("You can not delete the base flow chart!", _appName, MessageBoxButton.OK, MessageBoxImage.Stop);

            //Add the expression text boxes to all switch and descision flow activities

The issue I have is that there are no event args coming through, when I expected there to be event arguments from the editing context. Any ideas on what I have missed?

Workflow will only auto start with browser forms


I am using an out of the box feedback workflow and have selected 'start this workflow when a new item is created'.

The workflow will only start when I manually kick it off

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