About ER Generic Server Openings

This page provides background information on the precommit, init, compute, and UX-specific openings that are available in the ER generic server openings resource set.

For information about the EKL functions that are specifically available for the ER generic server openings, see 3DEXPERIENCE | Enterprise Knowledge Language | Enterprise Knowledge Language | Server Types and Functions | EKL Functions by Modeler | ER Generic Server EKL Functions.

This page discusses:

Precommit Openings

Precommit openings allow you to customize server operations.

Workflow

  1. In a development environment (if you are on premises, on private cloud, or on dedicated cloud), or in a sandbox (if you are on the public cloud), do the following in Data Setup:
    1. Create a precommit business rule. For more information, see Creating a Business Rule.
    2. Deploy this business rule. For more information, see Deploying and Undeploying a Business Rule on the Server.
      Note: Precommit business rules do not require you to bind them to a collaborative space in Data Setup before deploying them.
    3. Export the server business rules. For more information, see Exporting and Importing ER Generic Server Openings Business Rules.
  2. In your production environment, import these business rules as follows:
    • Private and dedicated cloud: In the Enterprise IP Schema Specialization app.
    • On premises and on the public cloud: In Data Setup.

    For more information, see Import the ER Generic Server Openings Business Rules.

Order of Operations

When you create a business rule with a precommit opening, the system follows a specific order of operations that differs from the order of operations that it follows for any other kind of openings.

When a user executes a transaction that depends on a precommit business rules, the following occurs:

  1. The kernel registers the transaction.
  2. The kernel executes the command (for example, promote).
  3. The kernel fires the precommit business rule.
  4. If no error occurs, the kernel commits the transaction. Otherwise the transaction is aborted.

Execution Control

On the dedicated cloud, resources (database, memory, and CPU) are shared across several customers. As a result, precommit business rules must use these resources reasonably. This is enforced by the execution control mechanism, whose role is to authorize or forbid the execution of EKL functions based on the following:

  • The EKL function profile card: Each EKL function declares a Performance Capacity and Scalability (PCS) profile based on its consumption of resources (metadata, database).
  • The execution context: The opening type, the objects in the transaction, and the perimeter of the function.

For more information, see 3DEXPERIENCE | Enterprise Knowledge Language | Enterprise Knowledge Language | Server Types and Functions | About EKL Server Functions | EKL Profile Cards.

Information about Possible Empty Values for RuleContext

Recommendation:

When defining your business rule script, take into account that, in some cases (for example, when deploying a specialization from the Enterprise IP Schema Specialization app), the SecurityContext, Role, Project, and Organization attributes of RuleContext can have an empty value (that, is "").

Available Precommit Openings

The table below lists all existing precommit openings.

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

Opening ID Description For more information, see...
addinterface An interface or an extension has been added to an object. Add Interface (addinterface)
removeinterface An interface or an extension has been removed from an object. Remove Interface (removeinterface)
batchclone A set of objects has been cloned. Batch Clone (batchclone)
batchrevise A set of objects has been revised. Batch Revise (batchrevise)
changename The name (from TNR) of an object has been changed. Change Name (changename)
changeowner An object's owner has been changed. Change Owner (changeowner)
changepolicy An object's policy has been changed. Change Policy (changepolicy)
connect A new relationship has been added to an object. Connect (connect)
copy An object has been duplicated.
Important: Copy operations do not trigger the create opening for the new objects.
Copy (copy)
create An object has been directly created. Precommit at Create (create)
delete An object has been deleted. Delete (delete)
demote An object's maturity has been changed and moved backward in the maturity graph. Demote (demote)
Warning: It is strongly discouraged to make a set of attributes.
disconnect A relationship has been removed from an object. Disconnect (disconnect)
majorrevision A new major revision for an object has been created. Major Revision (majorrevision)
modifyattribute An attribute of an object has been modified.
Important: This opening is not triggered if the create opening for the same object is in the same transaction.
Modify Attribute (modifyattribute)
modifydescription The description of an object has been changed.
Important: This opening is not triggered if the create opening for the same object is in the same transaction.
Modify Description (modifydescription)
promote An object's maturity has been changed and moved forward in the maturity graph. Promote (promote)
Warning: It is strongly discouraged to make a set of attributes.
revision A new minor revision for an object has been created. Revision (revision)

Compute Openings

Compute are openings that allow apps to customize server operations on the private cloud, on the dedicated cloud, and on premises.

This section is for information purposes only. Only the apps development teams can create business rules with the compute openings.

General Information

Compute openings allow apps to customize server operations by creating and triggering business rules that compute values and return results. Compute openings cannot modify any objects, including the current object.

Execution Control

On the dedicated cloud, resources (database, memory, and CPU) are shared across several customers. As a result, compute business rules must use these resources reasonably. This is enforced by the execution control mechanism, whose role is to authorize or forbid the execution of EKL functions based on the following:

  • The EKL function profile card: Each EKL function declares a Performance Capacity and Scalability (PCS) profile based on its consumption of resources (metadata, database).
  • The execution context: The opening type, the objects in the transaction, and the perimeter of the function.

For more information, see 3DEXPERIENCE | Enterprise Knowledge Language | Enterprise Knowledge Language | Server Types and Functions | About EKL Server Functions | EKL Profile Cards.

UX-Specific Openings

The UX openings are meant to support ENOVIA use cases. For more information, see UX Openings.

Opening ID Description For more Information, see...
ux_new_init Fired when New panel is build New Initialization (compute_new_init)
ux_new_modify Fired when the user modifies an attribute in New New Modify (ux_init_new_modify)
ux_edit_properties_init Fired when Properties experience is built Properties Initialization (compute_edit_properties_init)
ux_edit_properties_modify Fired when the user modifies an attribute in Properties Properties Modify (ux_init_edit_properties_modify)