Environment: On premises only
Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
AttributeName | String |
Read | Contains the name of the transient attribute. |
InputValue | ObjectType | Read | Provides 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