Environment: On premises only
Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
AttributeName | String |
Read | Contains the name of the transient attribute. |
Policy | String | Write | - |
ComputedValue | ObjectType | Write | Use this parameter to return the value of the transient attribute. |
Sample 1
The following sample shows the implementation of a transient attribute
/* this business rule returns a transient attribute which is the value of another attribute (NumberOfPerson) multiplied by 2 */
Parameters->SetAttributeReal("ComputedValue",ThisObject.NumberOfPerson*2)
Sample 2
The following sample shows the implementation of two transient attributes
/* this business rule returns a transient attribute which is the value of another attribute (NumberOfPerson) multiplied by 2 or 10*/
if (Parameters->GetAttributeString(“AttributeName”)==”Attribute1”)
Parameters-> SetAttributeReal("ComputedValue",ThisObject.NumberOfPerson*2)
else
Parameters-> SetAttributeReal("ComputedValue",ThisObject.NumberOfPerson*10