Re: adding functionality to get a list of workflow definitions
Hani Suleiman <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
Yep, good idea. Just added this to CVS, along with a method in
AbstractWorkflow to get at the workflow names (since AbstractWorkflow
is the entry point to all workflows, and end clients shouldn't be
calling configloader). check it out and let me know if there are any
issues with it!
Thanks for the suggestion/code!
On Friday, April 25, 2003, at 11:25 AM, Philipp Hug wrote:
> what do you think about adding a function getWorkflowNames() to
> AbstractWorkflowFactory which returns
> a list of workflows that can be created by the factory?
>
> this would allow to show a list of workflow definition in your
> application.
>
> my implementation:
> add to the AbstractWorkflowFactory interface
> public abstract String[] getWorkflowNames();
>
> add to XMLWorkflowFactory
> public String[] getWorkflowNames() {
> int i = 0;
> String[] res = new String[workflows.keySet().size()];
> Iterator it = workflows.keySet().iterator();
> while (it.hasNext()) {
> res[i++] = (String) it.next();
> }
> return res;
> }
>
> add to URLWorkflowFactory (not supported here, return URL cache???)
> public String[] getWorkflowNames() {
> return null;
> }
>
> add to ConfigLoader (to make it available from the outside)
> public static String[] getWorkflowNames() {
> return factory.getWorkflowNames();
> }
>
> philipp
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf