State Machine WF: Issues with workflow termination

Posted by AgentHunt on Stack Overflow See other posts from Stack Overflow or by AgentHunt
Published on 2010-04-03T17:26:29Z Indexed on 2010/04/03 17:33 UTC
Read the original article Hit count: 574

Hello,

We have a state machine workflow for maintaining the state of an application submitted by a user. One of the issues I am having is related to workflow termination. In one of the states, I had a bug. When the application reached that state, it threw an exception and as a result, the terminate event of the workflow was called and the particular workflow instance got removed from the persistence database. So I am not able to load that workflow instance anymore. I would have hoped, if there is an error in one of the states, an exception would be thrown(so that we know what the issue is), yet the entire workflow instance should not disappear. Can the fault handler activity ensure that the workflow does not terminate. Also, is there a way, when the terminate event is called, the instances do not get removed from the persistence store.

Thanks for any help/suggestions.

© Stack Overflow or respective owner

Related posts about wf

Related posts about Workflow