nerdexam
Microsoft

70-573 · Question #95

You create a list named List1. You create two workflows named WF1 and WF2 for List1. You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start…

The correct answer is D. Create a SPWorkflowEventReceiver event receiver. MNEMONIC RULE: "Workflow = SPWorkflowEventReceiver" The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a Starting: Occurs when a workflow is starting Started: Occurs when a workflow is started Postponed: Occurs when a workflow is postponed…

Developing Business Logic

Question

You create a list named List1. You create two workflows named WF1 and WF2 for List1. You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start automatically after WF1 completes. What should you do?

Options

  • AAdd a SendActivity activity to WF2.
  • BAdd a Replicator activity to WF2.
  • CCreate a SPWebEventReceiver event receiver.
  • DCreate a SPWorkflowEventReceiver event receiver.

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    3% (1)
  • D
    84% (26)

Explanation

MNEMONIC RULE: "Workflow = SPWorkflowEventReceiver" The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a Starting: Occurs when a workflow is starting Started: Occurs when a workflow is started Postponed: Occurs when a workflow is postponed Completed: Occurs when a workflow is completed You can register the SPWorkflowEventReceiver with any site, list, or content type. Apress-SharePoint 2010 as a Development Platform (book)

Topics

#SharePoint workflows#SPWorkflowEventReceiver#workflow chaining#event receivers

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice