List of current workflows in .NET 4.0

I have a .Net 4.0 Workflow application hosted in WCF that accepts a request to process some information. This information is passed to the secondary system through a web service and returns a bool indicating that it will process this information.

My work cycle then completes the sleep cycle for 5 minutes and then queries the secondary system to check if the information processing is complete.

When the workflow will end.

This is saved for me in SQL, and it works fine.

My question is how to get a list of saved workflows so that I can bind them to the original request? I would like my user interface to be able to display current workflows in a grid with expired runtimes.

I was thinking about storing the GUID of the workflow in my primary database and creating the list this way, but I would really like to be able to agree on what I think works and what the permanent store thinks,

I would also like to be able to select a workflow and kill it or completely restart it if the user determines that it was deleted.

+3
source share
2 answers

promote SqlWorkflowInstanceStore. InstancesTable InstancePromotedPropertiesTable. InstancePromotedProperties - .

, .

+3

, WorkflowRuntime GetAllServices(). , . , . 100 , , .

, DAL Repo. , sql .

http://msdn.microsoft.com/en-us/library/ms594874(v=vs.100).aspx

0

Source: https://habr.com/ru/post/1761390/


All Articles