General Information
This opening ID is invoked whenever an object is created in unified typing mode.
The table below provides you with information related to the definition of the Opening ID.
Opening ID: | INFRADeploymentExtensionComputation |
Customization intent: | Computation |
Execution context: |
- On the cloud: Client
- On premises: Client/Server
|
Input Objects
ThisObject
is an empty object of the type of the object that will be created.Parameters
corresponds to the context object.
Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
DeploymentExtensionName | string |
Write | Parameter set by the opening ID and that corresponds to the name of the deployment extension to add.
The goal of the business rule is to fill this parameter with the name of the deployment extension to add. If you do not want to add it, do not modify this parameter. The name must correspond to a valid deployment extension created with Model Customization, associated with the type of the object (or one of its super types). |
Policy | String | Read | Policy name of the object to be created, that has been computed using INFRAAuthorizedPolicies . |
CustomerExtensionsToAdd | List of Strings | | List of strings corresponding to the list of other deployment extensions or customer extensions you want to add to the object. This list can also contain deployment extension names.Notes:
- Once the business rule is stored and associated with the right type/collaborative space, the type you create is automatically extended with the customer extensions.
- You can modify the attributes of the customer extensions using the Initialization opening ID when the Deployment Extension Choice opening ID is triggered before the Initialization opening ID.
|
Sample 1
The following sample shows you how to indicate that the deployment extension to add is equal to "MyCustomerExtension":
/*The following rule is an example of what can be done*/
Parameters->SetAttributeString("DeploymentExtensionName","MyCustomerExtension")
Sample 2
The following sample shows you how to add a customer extension.
let l(List)
/* access the list of extensions in output */
l = Parameters->GetAttributeObject("CustomerExtensionsToAdd")
l.Append("PrefixExtension1") /* You could add more than one extension */
/* don’t forget to update the list */
Parameters->SetAttributeObject("CustomerExtensionsToAdd",l)