3.1.3. Pre Create Script

About this task

  • Overview: Pre create script.
  • Configuration: Pre create script.

Overview: pre Create Script

If class objects require additional functionality that is not configured in the class, the additional functionality can be included in a script. that will call the PreObjectCreateentry point before the object is created.

Tip: The CIMPLICITY Object Model includes many scripting objects that are developed specifically for classes, including the following.
CimClassActionList (object)
CimClassAttribute (object)
CimClassAttributeList (object)
CimClassDataItemExpression (object)
CimClassDataItemExpressionList (object)
CimClassDataItemList (object)
CimClassEventActionList (object)
CimClassEventList (object)
CimClassInstance (object)
CimClassList (object)
CimClassScript (object)
CimClassScriptList (object)

Configuration: pre Create Script

The content of the pre create script depends entirely on your class/object requirements. The one unique feature when configuring the class is that you enter its ID in ??the pre create script field on the Genera tab in the Class dialog box.

  1. Class: Pre Create Script Configuration

New Pre Create Script

Procedure

  1. Click the Popup menu button to the right os the Pre create script field; select New on the Popup menu.

    A New Script Name dialog box opens.

  2. Enter a name in the Script field.
  3. Click OK.
  4. Click the Browse button to the right of the Pre create script field.
    A Select a Script browse window opens.
  5. Select a script.
  6. Click the Popup menu button to the right of the Pre create script field; select Browse.
    A Select a Script browse window opens.
  7. Select a script.