开发者

Getting current activity when a workflow instance loads from persistent store in WF 4.0

开发者 https://www.devze.com 2023-01-09 03:16 出处:网络
I\'ve still been trying to wrap my head around some workflow issues we\'ve been having. I\'m using Workflow foundation 4.0 and I need to get the current activity of an instance when I load it from per

I've still been trying to wrap my head around some workflow issues we've been having. I'm using Workflow foundation 4.0 and I need to get the current activity of an instance when I load it from persistence. I tried using tracking, but that does not get called when the instance is loaded.

I'd like to avoid having to persist this information myself if at all possible.

Do you have any idea about how to do this?

Regards, Anž开发者_如何学Goe


As far as I know using tracking is the only way to monitor which activity starts and stops. Using a workflow extension deriving from PersistenceParticipant you can save the data as part of the workflow itself. Keep in mind that the could be multiple active asynchronous activities when a workflow is persisted.

See this question for how to do so.

0

精彩评论

暂无评论...
验证码 换一张
取 消