Difference between revisions of "Subagent:DB2"

2 bytes removed ,  17:16, 19 December 2013
no edit summary
Line 98: Line 98:
Each database declaration must be placed in the ''db2sub'' tag and enclosed in the ''db2'' tag. The ''db2'' tag must have a numerical id which has to be a positive integer greater than 0.
Each database declaration must be placed in the ''db2sub'' tag and enclosed in the ''db2'' tag. The ''db2'' tag must have a numerical id which has to be a positive integer greater than 0.


==Provided parameters==
=Provided parameters=


To get a DCI from the subagent, you need to specify the id from the ''db2'' entry in the XML configuration file (in case of INI configuration, the id will be '''''1'''''). To specify the id, you need to add it enclosed in brackets to the name of the parameter that is being requested (e.g., ''db2.parameter.to.request('''1''')''). In the example, the parameter ''db2.parameter.to.request'' from the database with the id '''''1''''' will be returned.
To get a DCI from the subagent, you need to specify the id from the ''db2'' entry in the XML configuration file (in case of INI configuration, the id will be '''''1'''''). To specify the id, you need to add it enclosed in brackets to the name of the parameter that is being requested (e.g., ''db2.parameter.to.request('''1''')''). In the example, the parameter ''db2.parameter.to.request'' from the database with the id '''''1''''' will be returned.
5

edits