The Wait for Event trigger can detect
an event that occurs on a system that is external to WebSphere Commerce.
You must implement a Process MarketingTriggers service call from the
external system to inform the marketing services of the event. You
can call this service a number of ways, by using a URL or Java code.
The service call must pass the marketing services the name of your
event and the parameters to match. Marketing managers need the event
name and parameters from the service call to set up the Wait for Event
trigger in the Management Center Marketing tool.
Dialog
activities are available only in the Professional and Enterprise editions
of WebSphere Commerce.
Procedure
- Define the Event name for
the Wait for Event trigger.
The Event name represents
the event that starts or continues a Dialog activity that contains
this trigger. Make up any name you want.
For example,
you might want to start a Dialog activity when an external system
detects that fraud occurred for a certain customer's credit card.
You could define an event name of CustomFraudDetectedTriggerEvent.
- Define the Parameter name for
the Wait for Event trigger. Make up any name you want.
The Parameter
name is the name of a parameter in the service call that
you want to match. The Wait for Event trigger can match one or two
parameters.
For example, you could define a parameter
name of eventType.
- Optional: For each Parameter
name, define the Parameter value to
match. If necessary, you can define more than one Parameter
value for each parameter. Make up any name you want.
For example, for the eventType parameter,
you could define a value of CreditCard.
Note: The Parameter
value is an optional field when setting up the Wait for
Event trigger in the Management Center Marketing tool. If you want
the Wait for Event trigger to match only the Event name and
the Parameter name, do not provide parameter
values to the marketing manager.
- Implement the Process MarketingTrigger service
call from the external system by using either a URL or Java code.
What to do next
Provide the Event name, the Parameter
name, and (optionally) the Parameter value data
for the Wait for Event Trigger to the marketing manager. In the Management
Center Marketing tool, the marketing manager must enter this data
in the properties view for the Wait for Event trigger used in a Dialog
activity.