The event handler receives messages.
Before you begin
You import the event handler PHP file that you downloaded
from
GitHub. The PHP file is in the
twilio/cx/imports/cpm directory.
Procedure
- Click Configuration on the navigation
pane.
- Expand Site Configuration, then
double-click Process Designer.
The process designer opens on the content pane.
- Click New.
The event handler editor opens.
- Click the folder icon next to the PHP Code File field.
- Navigate to the
twilio/cx/imports/cpm directory,
select the messageLog_update.php file, and
then click Open.
The PHP code is loaded into the PHP Content field as read-only
text, and the Procedure Name field is completed
with MessageLog_Update.
- Click Save.
You must save the event handler to test it.
- Click Test in the event handler
editor.
The Test Result window displays: [Empty Result].
- Click OK.
- Click Yes in the Event Handler window.
- Click Save.
What to do next
Next you associate the event handler with the custom process
model.