-----Original Message-----
From: Vincent Massol [mailto:vincent@massol.net]
Sent: Wednesday, June 13, 2007 4:09 AM
To: xwiki-users(a)objectweb.org
Cc: Kito Mann
Subject: Re: [xwiki-users] Customizing work flow
Hi Kito!,
Nice to see you here :)
You too :-).
On Jun 13, 2007, at 4:03 AM, Kito D. Mann wrote:
Please forgive me if the answer to this question
is posted somewhere
(didn't see anything in the archives). I'd like to use xWiki for
publishing articles. I'll be using it inside eXo portal (I think
xWiki's lightweight approach is more suitable than eXo's CMS for my
needs).
Have you already succeeded in running xwiki inside Exo? The integration
of
XWiki as a portlet in Exo isn't perfect yet and there are a few things to
fix
AFAIR regarding the albatross skin. We can work
together to make that work
if
you really need that integration.
The other possible integration is calling Exo services from within XWiki.
This
works very well and I've demoed that already.
Which means you could do
things
like trigger an exo workflow, call the exo JCR API,
etc.
Well, right now I'm looking to use it in the eXo portal 1.1, not the WebOS.
How well does it work with 1.1?
The only piece
I'm missing is how to go about creating a very simple
workflow. Basically, I'd like something like this:
1. Author or Editor creates an article
You can do this by creating groups
and allowing edition of docs by
Authors/Editors.
2. Author writes the article
Same as
above. If the author has the edit permission he'll be able to
write
the content.
3. Editor edits the article
Here
what you could do easily is create a Status "class" within xwiki and
you'd create a template for articles and a Status object would be attached
by
default to the newly created Article document.
When you create the Status class you can have a single field named
"status"
which is a list of values representing the status of
the
document: created, written, edited, reviewed, published.
Then it'll be up to the various individuals to edit the objects on the
article
page and set the status to the valid one. Of course
you could very easily
develop a little UI for it too (really simple). For example you could
write a
Panel that contains a combo box with the statuses
inside and when clicked
it'll change the article's Status object accordingly.
Let me know if you need more directions for doing this. You should read
the FAQ
application tutorial on
xwiki.org in the dev guide to
understand what
Objects,
Classes and Templates mean. Then feel free to ask more
specific questions
here
and I'll help you.
Okay. Makes perfect sense. Thanks.
4.
Author reviews the article
5. Steps 3 and 4 can repeat
6. Editor publishes the article
Where Author and Editor are roles that can be fulfilled by one or more
users, but Authors can only view their articles.
Above you said that authors were
writing the document but now you say they
can
only view them. Do you mean that the author rights has
to vary during the
workflow?
Hmmm.. I think what I was trying to say is that Authors can only manipulate
their own articles. So, for example, if you and I are both Authors and I
write an article, you wouldn't be able to view or edit my article, but an
Editor would. However, you (and everybody else) would be able to view the
article once it's published.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
* Sign up for the JSF Central newsletter!
http://oi.vresp.com/?fid=ac048d0e17 *