On Fri, Apr 18, 2008 at 9:29 AM, Nick Petrella <[EMAIL PROTECTED]> wrote:
>
> So the test_item attribute is still there, but the value of the
> 'raise' parameter was changed back. I am guessing the params are
> handled specially somehow? If there is no way around this I can
> probably work around it by using a custom field to store my params
> instead of the params attribute?
>
> If any of that doesn't make sense let me know. Sorry for verbosity.
Hi Nick, don't worry, makes lots of sense.
I'm sorry : your message only appeared in my mailbox at 1950 Tokyo
time (and it still didn't appear in the google group web interface)
that's weird, but it explains my late reply.
Indeed during the replay_at_error(), the participant expression gets
re-applied and it overrides the params of the workitem.
What you can do from the irb/engine console :
---8<---
# getting the expression itself out of the engine's expression pool
exp = self.get_expression_pool.fetch_expression(error.fei)
# changing the attributes of the participant expression
exp.attributes = { :raise => "something else" }
# putting back the updated expression in the pool
self.get_expression_pool.update(exp)
# then replay at error
--->8---
This should do the trick.
Sorry again, cheers,
--
John Mettraux -///- http://jmettraux.openwfe.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---