Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

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

Arguments

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

Returns

...

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

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

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