Which code segment should you use?

You are creating a custom activity by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the custom activity.

The custom activity has the following characteristics:

It is derived from the System.Workflow.ComponentModel.Activity class.
It overrides the Execute method.

The Execute method accepts a parameter named executionContext of type ActivityExecutionContext.

You need to ensure that the Execute method facilitates the transition of the custom activity out of the execution state. You also need to ensure that the Execute method allows the workflow to proceed towards completion.

Which code segment should you use?

You are creating a custom activity by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the custom activity.

The custom activity has the following characteristics:

It is derived from the System.Workflow.ComponentModel.Activity class.
It overrides the Execute method.

The Execute method accepts a parameter named executionContext of type ActivityExecutionContext.

You need to ensure that the Execute method facilitates the transition of the custom activity out of the execution state. You also need to ensure that the Execute method allows the workflow to proceed towards completion.

Which code segment should you use?

A.
return this.ExecutionStatus;

B.
return this.Parent.ExecutionStatus;

C.
return ActivityExecutionStatus.Closed;

D.
ActivityExecutionContextManager manager;
manager = executionContext.ExecutionContextManager;
manager.CompleteExecutionContext(executionContext);



Leave a Reply 0

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