What should you do to ensure that the workflow queue is available for local services before the custom activity is executed?

You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5. The workflow has an event-based activity that waits for an item to arrive in a workflow queue. You need to ensure that the workflow queue is available for local services before the custom activity is executed. What should you do?

You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5. The workflow has an event-based activity that waits for an item to arrive in a workflow queue. You need to ensure that the workflow queue is available for local services before the custom activity is executed.

What should you do?

A.
Provide a default constructor for the custom activity. Create and register the queue in the implementation of the constructor.

B.
Override the Initialize method. Create and register the queue in the implementation of the Initialize method.

C.
Override the InitializeProperties method. Create and register the queue in the implementation of the InitializeProperties method.

D.
Override the OnWorkflowChangesCompleted method. Create and register the queue in the implementation of the OnWorkflowChangesCompleted method.



Leave a Reply 0

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