Save Workflow in Database

2.2k views Asked by At

All

Is there any way I can serialize Workflow and save in database and load it later on ?

How can I save instance of workflow in database in C# ?

Thanks

1

There are 1 answers

0
Thelonias On BEST ANSWER

This is called workflow persistence. Here is a simple example to get you started. Essentially, when your workflow idles (there are certain points at which this is possible, e.g. a Delay Activity), if persistence is enabled, your workflow will create a resumption point (i.e. a bookmark), unload and persist to the instance store you've set up (SQL DB, XML file, etc.). When you resume, everything is loaded the way it was before.