What should you do?

You plan to create a workflow that has the following three activities:

* CreateTask
* OnTaskChanged
* CompleteTask

You need to ensure that each time the workflow starts, the three activities are linked to a single task.

What should you do?

You plan to create a workflow that has the following three activities:

* CreateTask
* OnTaskChanged
* CompleteTask

You need to ensure that each time the workflow starts, the three activities are linked to a single task.

What should you do?

A.
Configure all activities to use the same TaskId.

B.
Configure all activities to use the same correlation token.

C.
Create an SPItemEventReceiver event receiver for the SharePoint Tasks list.

D.
Create an SPWorkflowEventReceiver event receiver for the SharePoint Tasks list.

Explanation:
MNEMONIC RULE: “Correlation token (to correlate one task with three activities)”

Each specific task within the workflow should have its own correlation token, which each related activity can use to access the same, task-specific information. For example, if in your workflow you want to reference the same task in CreateTask, CompleteTask, and OnTaskChanged activities, you would bind the CorrelationToken property of each of these activities to the same correlation token variable.

Correlation Tokens in Workflows
http://msdn.microsoft.com/en-us/library/ms475438.aspx



Leave a Reply 1

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


mikeytime

mikeytime

This is the same question as 107