What should you do o ensure that corrective action is taken on work performed by the first task?

You are creating a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application contains a workflow that performs two tasks. The first task will complete before the second task begins. You need to ensure that corrective action is taken on work performed by the first task if an exception occurs while processing the second task. What should you do?

You are creating a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application contains a workflow that performs two tasks. The first task will complete before the second task begins. You need to ensure that corrective action is taken on work performed by the first task if an exception occurs while processing the second task. What should you do?

A.
Place the activities that perform the first task in a CompensatableSequenceActivity activity.Add a compensation handler to the CompensatableSequenceActivity activity.Add an activity at the workflow level to perform the second task.Add an exception handler that traps the System.Exception exception and contains a CompensateActivity activity with a TargetPropertyName property that points to the CompensatableSequenceActivity activity.

B.
Place the activities that perform the first task in a CompensatableSequenceActivity activity.Add a cancellation handler to the CompensatableSequenceActivity activity.Add an activity at the workflow level to perform the second task.Add an exception handler that traps the System.Exception exception and contains a CompensateActivity activity with a TargetPropertyName property that points to the CompensatableSequenceActivity activity.

C.
Place the activities that perform the first task in a CompensatableSequenceActivity activity. Add a fault handler to the CompensatableSequenceActivity activity. Add an activity at the workflow level to perform the second task.Add an exception handler that traps the System.Exception exception and contains a CompensateActivity activity with a TargetPropertyName property that points to the CompensatableSequenceActivity activity.

D.
Place the activities that perform the first task in a CompensatableSequenceActivity activity. Add a fault handler to the CompensatableSequenceActivity activity. Add an activity at the workflow level to perform the second task and enclose it in a CompensatableSequenceActivity activity.Add an exception handler that traps the System.Exception exception and contains a CompensateActivity activity with a TargetPropertyName property that points to the second CompensatableSequenceActivity activity.



Leave a Reply 0

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