3.1.4. Post Create Script

About this task

  • Overview: Post create script.
  • Configuration: Post create script.

Overview: Post 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 PostObjectCreateentry point after 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: Post Create Script

The content of the post 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 Post create script field on the Genera tab in the Class dialog box.

Class: Post create script configuration.
Instantiation: Post create script.
  1. Class: Post Create Script Configuration

New Post Create Script

Procedure

  1. Click the Popup menu button to the right os the Post 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 Post 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 Post create script field; select Browse.
    A Select a Script browse window opens.
  7. Select a script.