Initialization at Creation (init_create)

An opening ID is an entry point used to customize business logic. Initialization at Creation (init_create) allows to define attributes on new objects.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is executed on the proxy object that represents the future entity (a business object or a relationship). This future entity only exists as a Java object in memory until a create method is invoked.

Important: Do not use any GetAttribute** methods (that is, GetAttributeString, GetAttributeBoolean, GetAttributeInteger, GetAttributeReal, and GetAttributeValue) with this opening. This opening can only write attribute values; it cannot read them. Using a GetAttribute** method will always return a null value, which can lead to unexpected behaviors.

See any app's documentation for information on whether this app supports this opening ID.

This opening ID is used to customize: Attribute valuation of new objects.

Definition Description
PLM Opening ID init_create
Customization intent Not applicable
Execution context Server

Input Objects

Input objects must be of the following types:

  • ThisObject
  • Parameters corresponds to the context object.

Context Object Parameters

No context object parameters.

Sample

The following sample valuates the PLM_ExternalID attribute whenever a new object is created.

ThisObject.SetAttributeString("PLMEntity.PLM_ExternalID", "modified by Init opening script")