Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Overview

Triggers the specified event with input data and returns triggered listener work items.

Array<string> myWorkItem.Trigger(eventName: string, inputData: ( string | Xml ))

Arguments

string eventName
Name of event to be trigger. Multiple events can be specified with ";" delimeter.
( string | Xml ) inputData
Input data to be sent listeners.

Returns

Array of triggered listener work items id numbers.

Remarks

If input data is not a instance of XmlNode or string exception is thrown.

If no listener triggered return value is a empty array.

Example

var workItems = $WorkItem.Trigger('Customer.Created', $Xml.SelectSingle('Customer'));

if (workItems.length) {
   var workItem = workItems[0];
}
  • No labels