What should you do to configure the workflow to continue processing even if an activity throws an error?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application uses a sequential workflow that contains five activities. You need to configure the workflow to continue processing even if an activity throws an error. What should you do?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application uses a sequential workflow that contains five activities. You need to configure the workflow to continue processing even if an activity throws an error. What should you do?

A.
Subscribe to the WorkflowTerminated event in the host to capture errors thrown by workflow instances.

B.
Place the potentially offending activities in a TransactionScope activity. Set the IsolationLevel property of the TransactionScope activity to Serializable.

C.
Use the SequentialWorkflowActivity instance of the FaultHandlersActivity activity to add one or more instances of the FaultHandlerActivity activity. Ensure that one of the FaultHandlerActivity instances catches the System.Exception class.

D.
Place the potentially offending activities in a SequenceActivity activity. Add one or more FaultHandlerActivity instances to the FaultHandlersActivity instance of the SequenceActivity activity. Ensure that the FaultHandlerActivity instances catch the System.Exception class.



Leave a Reply 0

Your email address will not be published. Required fields are marked *