{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":3770,"path":"build-workflows/legacy-workflow/r_EventSpecificWorkflowActivities.md","title":"Event-specific workflow activities","bundle":null,"doc_type":null,"release":"australia","body":"\n# Event-specific workflow activities\n\nThe following workflow activities trigger events.\n\n<table id=\"table_pmc_twt_hp\"><thead><tr><th>\n\nActivity Name\n\n</th><th>\n\nDescription\n\n</th><th>\n\nPurpose\n\n</th><th>\n\nTo Use\n\n</th><th>\n\nSource\n\n</th><th>\n\nThread\n\n</th><th>\n\nListeners\n\n</th></tr></thead><tbody><tr><td>\n\nCreate Event\n\n</td><td>\n\nRequires an event from the event registry rather than a workflow event. This activity is located in the **Notification** category of the workflow tree.\n\n</td><td>\n\nFires the notification event specified in the Workflow Activity \\[wf\\_activity\\] table.\n\n</td><td>\n\n1.  Navigate to **System Policy** &gt; **Events** &gt; **Registry**\n2.  Create an event.\n3.  Navigate to **System Policy** &gt; **Templates** and create an [Email templates](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_EmailTemplates.md).\n4.  Navigate to **System Policy** &gt; **Email** &gt; **Notifications**.\n5.  [Create an email notification](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_CreateANotification.md) that is triggered by the event you created and sends the template you created.\n6.  On the workflow canvas, drag the **Create Event** activity onto the canvas and associate it with the newly registered event.\n\nWhen the workflow executes, the event is created and the email associated with the event is sent.\n\n</td><td>\n\nEvent Registry\n\n</td><td>\n\nTriggered in the current thread and handled on the worker thread in notifications. Never processed by a workflow\n\n</td><td>\n\nOn the notification thread, outside of workflow\n\n</td></tr><tr><td>\n\n[Wait for WF Event](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/r_WaitForWFEvent.md)\n\n</td><td>\n\nListens for workflow events, as described in the [Workflow Events in the Base System](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/legacy-workflow/r_WorkflowEventsInTheBaseSystem.md) table, and only within the current context. This activity is located in the **Conditions** category of the workflow tree.\n\n</td><td>\n\nWaits for another transition branch of the current context to trigger an event.\n\n</td><td>\n\nTakes an event name as input. When the activity is executed, the specified event name is added to a string array stored in the **registered\\_events** column. The values in this column are in a list of all events the activity waits for when it is executing.\n\n</td><td>\n\nThe **Wait for WF Event** activity has a generic onUnhandledEvent that tests the current event against the value that was passed to the variable. If they match, the **Wait for WF Event** moves the workflow forward.\n\n</td><td>\n\nTriggered in the current thread or from a script include\n\n</td><td>\n\nThe onUnhandledEvent of the **Wait for WF Event** activity\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Workflow events in the base system](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/legacy-workflow/r_WorkflowEventsInTheBaseSystem.md)\n\n"}}