|
Mike When I wrote "Partner" the way I did it was to store the function name and the corresponding routine name in a DB file. Then I would chain out the the file to the function record, and in turn call the corresponding routine. Today, if I had to do it over again, i would create user index or if performance of just the look up wasn't an issue, I'd still use a DBF. Then I would store the procedure name (and service program name) in the datbas file. At runtime chain out to the file and load & run the corresponding procedure. > -------- Original Message -------- > Subject: Looking for Documentation: Plugin Architecture > From: Mike Wills <koldark@xxxxxxxxx> > Date: Mon, September 12, 2005 2:25 pm > To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> > > I will be starting a new project here soon and want to start learning what I > need to this project. I want to create a more plug-in based architecture for > this program where a main "processing program" calls the correct plug-in to > do the actual processing. Then when complete return to the processing > program to do some other processing in another plug-in, then some final > processing in the main program. The reason for this architecture is that I > want everything to filter through this one program, but in each case there > could be one of an number of pre-defined functions. Also, I would like to > design it this way so that it is easier for another developer to come in and > create a program without having to fully know how this whole process works. > > While I am not sure of the proper way to do this, I am thinking of having a > file with the condition and the subprocedure to call. When the condition is > hit, the subprocedure it is associated with is called. I would prefer to use > a subprocedure for this. Would call-backs work with something like this? How > do you do call-backs? > > In reality, all I have right now is this idea in my head and no real idea on > how to implement this. I am planning on mapping this process out in Viso. > Here is roughly what I am trying to do. > > user calls ------> | Main | ------- calls plugin ------> | my plugin | > | Processing | <-- calls another plugin --- | | > | Module | > | | -- calls sending plugin ---> | sending | > | | <------ Returns status ----- | plugin | > > Does this make sense? Where can I read up on thoeries on this? > > -- > Mike Wills > koldark@xxxxxxxxx > http://mikewills.name > Want Gmail? Email koldark+gmail@xxxxxxxxx to get on my waiting list. > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.