sendevent

The command sends the custom events defined with the evtdef command to the event processor server currently active in the production plan. As the events are received by the event processor, they trigger the event rules in which they were specified.

Users can override the default destination server (defined by global options) by specifying the host and the port of a new server.

Syntax

sendevent -V | ? | -help | -u | -usage

sendevent [-hostname hostname]
           [{-port | -sslport} port]
           eventType
           source
           [[attribute=value]...]

Arguments

-V
Displays the command version and exits.
? | -help | -u | -usage
Displays command usage information and exits.
-hostname hostname
Specifies the host name of an alternate event processor server other than the currently active one.

This parameter is required if the command is launched from a command-line client.

-port | -sslport} port
Specifies the port number of an alternate event processor server other than the currently active one. -sslport defines the port used to listen for incoming SSL connections.

This parameter is required if the command is launched from a command-line client.

eventType
One of the custom event types defined with the evtdef command in the generic event provider and specified as the triggering event in an event rule definition.
source
The name of the event provider that you customized with evtdef. This is also the name you must specify as the argument for the eventProvider keyword in the definition of the event rules triggered by these custom events.

The default name is GenericEventPlugIn.

attribute=value
One or more of the attributes qualifying the custom event type that are specified as the triggering event attributes for the event rule.

Comments

This command can be run also on systems where only the HCL Workload Automation remote command line client is installed.

Examples

In this example an application sends the BusProcCompleted custom event type to an alternate event processor server named master3. The event is that file calcweek finished processing.
sendevent -hostname master3 -port 4294 BusProcCompleted 
GenericEventPlugIn TransacName=calcweek Workstation=ab5supp
The file name and the associated workstation are the two BusProcCompleted event attributes that were specified as triggering event attributes in an associated event rule.