Is it possible to catch workflow events?


I'd like to do some simple logging when a workflow is passed to the next state -- so when someone approves an event, for instance, I'd like to log the approval and their comments.

I can find InstanceStarting, etc. on InstanceHandler, but I can't seem to find an event that fires ever time a workflow moves to the next state.  Does such an event exist?  I've been searching both EPiServer's code, and Windows Workflow Foundation docs.

Aug 31, 2015 18:42

Some more context...

I know that through a workflow, the workflow instance keeps getting History Items added to it.  And you can view those in the Running Instances.  But when a workflow terminates, all those history items appear to vanish.

How do I retain them?

Aug 31, 2015 18:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.