Annotated Example One

This example includes instructions on how to:

To create the “HelloWorld” script:
  1. Click Start > Programs > xMatters systems > xMatters Developer IDE to launch the xMatters Developer IDE.
  2. In the Workspace pane on the left side of the screen, right-click the Workspace item, and then select New Script Package.
  3. In the Name field of the New Script Package dialog box, type HelloWorld.
  4. In the Type drop-down list, select Business, and type a brief description in the Description field.
  5. Click OK.
  6. In the Workspace pane, right-click HelloWorld, and then select New Package Version.
  7. In the Script Version Properties dialog box, in the Label field, type 1.0.
  8. In the Status drop-down list, select Production, and then click OK.
  9. In the Workspace pane, right-click PROCESS, and then select New Script.
  10. In the Script Properties dialog box, in the Name field, type initial, and then type a description for the script in the Notes field.
  11. In the Workspace pane, double-click the initial script.  

##################################################################

#

# Script: HelloWorld/PROCESS/initial

#

# This is the main entry point for this script package.

#

##################################################################

#/////////////////////////////////////////////////////////////////

# This is the main entry point for this script.  Whenever a

# message is sent to the domain that owns this script package,

# this script is called.

#/////////////////////////////////////////////////////////////////

main:

 

  # write the log entry to the file

  @script::log("Hello World!")

 

### DONE: main ###

 

  1. Click the Save All Unsaved Scripts button in the toolbar to save the changes.
  2. Click Validate Selected Workspace Item.
  3. Click Check In Selected Workspace Item to save the script package to the database.
  4. When prompted whether to create the script package in the database, click Create.

Next topic: Configuring the Event Domain