project BLF > class RPCRequestService
technical class
inherited from Technical Component
Description
This component is the way how CB components can be called from outside using the Service Interface standard. The QRA code will use the "program/rpcrequestservice.p" as the procedure to send the requests to.
Things to understand about the implementation:
* The code looks for the context property "componentName" to identify the component that needs to be used to execute the requested code. If the "componentName" property is not filled in, the code looks for the "programName" property.
* The code looks for the context property "methodName" to identify the method that needs to be executed. Currently the system is not using this property, and is assuming "MaintainByDataset" is the method that needs to be executed.
* The code looks for the context property "sessionId" to identify the global session id that needs to be used when executing code on the business layer.
* Other properties that are picked up by this generic component are:
> entity: the entity code that needs to be used for the session that is used to do the method call. If the sessionId was passed, this property is not necessary, and will be overruled.
> domain : the domain code that needs to be used, normally this is implicit with the entity code, so this is not mandatory.
> username: the User Login that needs to be used to start a session in which the requeste method will be executed. This is only required if the session Id was not supplied as input.
> passwordIsEncoded: "true" or "false" The default is "false". This information is only used when also the password property is passed.
> password: The password for the User Login that was specified in the "username" property. This is can be under encoded format dependent on the "passwordIsEncoded" property.
> datasetInName: The name of the dataset that is passed as input to the SI backend.
> datasetInOutName: The name of the dataset that is passed as input-output to the SI backend.
> datasetOutName: : The name of the dataset that is returned as output from the SI backend.
> action: The action that is requested. This property only is used when no method is used, or the method is "MaintainByDataset". It can have the following values: "save", "savedraft", "validate" or "draft".
> activity: This property is only used when no method is used, or the method is "MaintainByDataset". It refers to the internal activity that is requested to be executed. This can be "Create", "Modify" or "Delete".
methods