Tuesday, 26 June 2021
One of the great utilities available to Siebel – Web Services, is the use of Virtual Business Component (VBC). This type of Business Component allows us to display information on the screen without storing the data in the database (the data, by its nature, is not subject to saving it in Siebel).
VBCs allow access to data that resides in an external data source, for this you must call a Business Service, which will be the one that will provide the transport mechanism.
Creation of VBC:
1.We unlock the project in which we will include the VBC.
2.In the Object browser, select Business Component.3.Click the right mouse button and create a new record.4.Type the name of the VBC and the project.5. In the “Class” section we select: CSSBCVExtern (this class is the one that provides the functionality of the VBC).
It will also be necessary to associate to VBC a User Property that indicates the Business Service that will be executed
: – User Property: Service Name- Description: Mandatory. The name of the Business Service we are going to use.
The Business Service that is associated with the Business Component, must have implemented the methods: Init and Query.
– Init: used to initialize the variables of the service.- Query: used to access the data from the external source, manipulate the message and send it to the output stream of the applet to be deployed in the application.
How VBCs work:
When a user accesses an application view and it has an applet associated with a VBC, the Init method is automatically executed, and then the Query method of the Business Service (the BS associated with the VBC). In such a way, that only by accessing the corresponding view will the code be executed and will present on the screen the information returned by the Web Service to which we have connected.
