Does WF4 have the ability to search for instances?

I have a WF4 workflow service deployed to AppFabric. Is there a built-in way to do a general search across all current valid workflow instances?

For example, "enter me a list of all active instances with the variable x = 5"?

If someone can point me in the right direction, it will be very appreciated.

+3
source share
1 answer

You can do this using the created WorklfowInstanceStore database. This will be a record for each running process. You can then configure the promotion of properties to retrieve values ​​from the workflow and store them in the database. In the System.Activities.DurableInstancing.InstancePromotedProperties view, you can request values ​​and provide you with an InstanceId instance.

See here for an example on how to get started. One good way to extract values ​​without using user activity for this is to use a workflow tracking participant.

+5
source

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


All Articles