Method to Valuate a Transient Attribute (INFRAComputedAttributeWrite)

The Method to Valuate a Transient Attribute opening ID helps you define a method for writing a transient attribute of a given type object (or a given extension).

A transient attribute can be defined on a customized data model using Specialize Data Model and Model Customization. It is not persistent and can be manipulated in EKL as any other attributes and it can be included in edit properties masks. To know more about transient attributes, see Model Specialization Management: Creating Specialization Types: Creating and Editing an Attribute.

This page discusses:

Environment: On premises only

General Information

This opening ID is used to modify some characteristics of the object depending on the InputValue.

The table below provides you with information related to the definition of the Opening ID.

Opening ID: INFRAComputedAttributeWrite
Customization intent: Execution
Execution context:Client\Server

Input Objects

  • ThisObject corresponds to the object that holds the transient attribute. You can access the other attributes of the object to valuate them depending on the value provided to the transient attribute.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
AttributeNameString ReadContains the name of the transient attribute.
InputValueObjectTypeReadProvides the value set to the transient attribute.

Sample 1

This sample show how to implement a business rule computing one transient attribute.

/* this business rule divides by two the value passed in input and put it in another attribute */
ThisObject.NumberOfPerson =(Parameters->GetAttributeReal("InputValue"))/2

Sample 2

This sample show how to implement a business rule computing two transient attributes.

/* this business rule divides by two the value passed in input and put it in another attribute */
if (Parameters->GetAttributeString(“AttributeName”)==”Attribute1”)
ThisObject.NumberOfPerson = (Parameters->GetAttributeReal("InputValue"))/2
else
ThisObject.NumberOfPerson = (Parameters->GetAttributeReal("InputValue"))/10