Hi Nicolas,

On 6/16/06, Nicolas Modrzyk <[email protected]> wrote:


In the MgnlParticipant class (that extends the
AbstractEmbeddedParticipant) the consume method does:
First, get the participant name.
Them,
    -> in case of a command:
     * get the command
     * create a workitem context from the current context (but I
think that part of the code is wrong. It calls MgnlContext.getInstance
() but nothing is set since we are in a flow)
     * execute the command
     * reply to the engine
     -> in other cases
     * store the item (no reply?)

Sounds good (reads fine).

The reply is for later (in case of a non-command (inbox maybe)), the
workitem is stored for later manipulation. When it's ok, the
[modified] workitem should be fed back to the engine
(engine.reply(wi)).


Best regards,

--
John Mettraux   -///-   http://jmettraux.openwfe.org

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to