On Wednesday 14 June 2006 15:24, Duzenbury, Rich wrote: > > > > > > In our case, we will want to populate some dropdown list boxes from > our > > > database, such that when a workflow begins, the initiator can select > > > some choices from the dropdown. > > > > > > > Hi, if I understand you correctly you want to add an enumeration > Databit > > to > > the workflow with values from an external database which is then used > in > > a dataedit-action so that the user chooses one option. > > For such special tasks you could use a "custom-action" which is an > > action that just > > specifies a class name in the workflow definition that gets executet > at > > that point. > > In that class you could do the database connection and adding the new > > databit. > > The example workflow contains an example for such an action. > > See also > > http://swamp.sourceforge.net/index.php?seite=doc2html&docpage=html- > > adminguide/x96.html#AEN206 > > > > > I see there is a script action for a velocity script, but I am > unclear > > > as to how powerful the velocity scripts are. > > > > The velocity script actions can only interact with the workflow itself > > and cannot > > connect to external systems. > > > > Excuse me, but it seems that you are suggesting that I write the > extensions in Java. As I mentioned, I am not a java person. I have no > alternatives than to use Java? > Well, you are asking for a very sophisticated functionality and I doubt that there are systems that connect to your custom database layout and retrieve the values you want to fill them into comboboxes from out of the box. However SWAMP gives you the opportunity to achieve that very easily, by using the custom actions, which are real elegant to use. But, yes, you have to use Java up to now.
But I am sure Tom can give you a code example of how to write that custom code and I am sure that gives you an idea of how to do that - even in Java ;-) Klaas -- Klaas Freitag Novell - SUSE R&D - Internal Tools _______________________________________________ swamp-devel mailing list swamp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swamp-devel http://swamp.sf.net