A Function is used to automatically derive and/or validate the Attribute. There can be multiple Functions. Each Functions will be processed in the order in which they are defined in the config file. The Function will be activated under one or both of these two conditions:- The Consumer Tier applications adds the Attribute to the Input object.
- The Attribute has the argument required set to true.
Syntax<Function id="InConcat" useexisting="true" classname="org.openptk.provision.definition.functions.ConcatStrings"> <Arguments>
<Argument name="arg1" type="attribute" value="firstname"/>
<Argument name="arg2" type="literal" value=" "/>
<Argument name="arg3" type="attribute" value="lastname"/>
</Arguments>
<Operations>
<Operation type="create"/>
<Operation type="update"/>
</Operations>
</Function> ArgumentsName | Required | Description | Example |
---|
id | Yes | I unique identifier for a given Function. | id="emailaddress" | classname | Yes | A fully qualified Java classname that implements the Function Interface | classname="org.openptk.provision.transform.ConcatStrings" | useexisting | No | This is a flag to the Framework. The default setting is false. Valid settings are true and false. If the setting is true then the Function will look to see if the Attribute already has a value. If it has a value then the Function will NOT be used and the provided "existing" value will be used. | useexisting="true" |
Properties |