On 8/30/07, Matt Zukowski <[EMAIL PROTECTED]> wrote:
>
> I have a few BlockParticipants that make use of workitem.params. When
> I try to call cancel_process on a process that uses these
> participants, I get: "RuntimeError: Missing attribute 'params' in
> workitem"
>
> Am I doing something wrong? Is there something special I have to do
> before calling cancel_process?

Ah,

I've re-read your post, now it's clearer.

Your block participant is not receiving a workitem but a cancelitem.
Those items lack the "params" attribute/field, the block participant
receives it  as a "hey you participant, that process instance x you
are now taking part in is being cancelled, stop working at it".

BlockParticipant workitem handling time is generally very short, if
you have something that takes a lot of time (and is thus more prone to
get cancelled), I'd suggest using a custom participant implementation,
with a dedicated cancel(ci) method.

For now, I will simply discard cancelitems for BlockParticipant to
avoid any such trouble. OK for you ?
http://rubyforge.org/tracker/index.php?func=detail&aid=13507&group_id=2609&atid=10195
Maybe we should keep track of blocks and cancel them altogether...


Thanks a lot, cheers,

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to