开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜