Professional Documents
Culture Documents
Ci
Ci
Component Interfaces are PeopleSoft's way of exposing the business logic developed into
Components for consumption by other areas of the system. Component interaces are part
of PeopleSoft's Integration Broker technology and an attempt to introduce SOA into the
product. They tend to work quite well but can be slow for large amounts of data
processing.
Please also refer to the component interface development FAQ for development help with
component interfaces.
This creates (adds) a new set of keys to the component - essentially the same as pressing
add and entering the relevant keys through the component. The created keys are
associated with the component interface object. At this point the CI is instantiated with
the created data. Returns True if data is successfully created, otherwise returns False.
Find
Find allows for a partical key (wildcard) search for data in the underlying component.
Get
Gets the data from the underlying component interface matching on the get keys
specified. The component interface is object is instatiated with the resulting data from the
component. Returns True if data is successfully retrieved, otherwise returns False.
Save
Saves changes made to the component data through the component interface object. The
save method triggers standard PeopleCode Processing. All errors are logged to the
PSMessages collection. Use this collection to troubleshoot errors. Returns True if data is
successfully saved, otherwise returns False.
See PeopleCode Session Class for a better understanding of how to handle errors.
You can override these methods and also write your own. These are stored as methods in
component interface PeopleCode.
Component Interface Tester
PeopleSoft provide a nifty component interface tester with Application Designer. To use
it, open the component interface and select Tools -> Test Component Interface from the
menu. Remember to select the right-hand side (the component interface) of the display,
not the left hand side (component) display.
The first page that pops up in the component interface tester is more or less the
search/add page of the underlying component. I say more or less because component
interface may not necessarily use the same search keys as the component's search record.
Once you enter the search (get) key (or add a new value - create key), you are presented
with the data in the underlying component or the opportunity to enter new data into the
component. Note the checkboxes and what they mean according to PeopleBooks:
Interactive Mode. This access the component in interactive as opposed to [[[deferred
processing]] mode. Typically you would use the mode that suits the way you will be
interacting with the component, but will probably want to avoid interactive mode as it
will additional processing overhead.
Get History Items. This is the equivalent of update/display or correction mode where