Dear Hannah
After yesterday's meeting, Nick has suggested that I give you some
help with implementing your workflows in a portal, which I'm happy
to do.
I'm still in the process of learning about how the portal stuff
works, so I thought I'd write to you to at least give you some idea of how we might implement what you've done.
I'm assuming that you'd want to do something similar to your
storyboard (ie a screen with some tab eg "home", "submission", "what
is GAS?" etc). Each of these tabs would then contain one or more
portlets displaying the content for the tab.
As I mentioned yesterday, the easiest way to build portlets is by
using JSP pages or HTML pages, with HTML being used if the content
of your portlet always looks the same, and JSP used eg if you want
to include dynamic content from a database. So for example the "what is GAS?" tab could be implemented as an HTML servlet.
The trickiest bit is going to be to run a workflow from a portlet.
In JSP, extra tags can be added, which can perform certain
operations. This might be a good way of making running workflows
easy. For example, your submission portlet could be an html form
with a button. When the button was clicked, another portlet could be
launched whose JSP looked something like
<HTML>
<BODY>
...section to get values user has entered on previous form
<workflow:run id="new workflow id" input="param from form 1, param
from form 2!/>
</BODY>
</HTML>
The <workflow:run> tag is a new tag that I'll make available to jsp,
and it would trigger some java code to run a workflow.
When the workflow was finished, a user could then be emailed, and we
could probably provide another portlet to be used to show the statusof running / finished workflows.
I don't know if this makes any sense, but I don't yet fully understand JSP or exactly how Chef (or Jetspeed, on which it is
built work) To get to the stage where the stuff above could be
implemented, I need to
1> work out how to make an HTML portlet
2> work out how to make a JSP portlet
3> work out how to add extra tags to JSP, and make them run javacode 4> work out how to run workflows through java, and how best to
collect results etc
So there's quite a lot for me to do, but hopefully it won't take too
long.
Anyway, I'll let you know how I'm getting on.
Stef