Precommit Openings
Precommit openings allow you to customize server operations.
Workflow
- 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:
- Create a precommit business rule. For more information, see Creating a Business Rule.
- 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.
- Export the server business rules. For more information, see Exporting and Importing ER Generic Server Openings Business Rules.
- 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:
- The kernel registers the transaction.
- The kernel executes the command (for example,
promote). - The kernel fires the precommit business rule.
- 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
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.
| 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.
|
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)
|
|
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.
|
Modify Attribute (modifyattribute) | |
modifydescription |
The description of an object has been changed.
|
Modify Description (modifydescription) | |
promote |
An object's maturity has been changed and moved forward in the maturity graph. | Promote (promote)
|
|
revision |
A new minor revision for an object has been created. | Revision (revision) |