2010-04-12 10:24:10 utc |
irfn |
Hi all |
2010-04-12 10:24:32 utc |
irfn |
jmettraux thanks for the ruote-dm mysql fix |
2010-04-12 10:27:38 utc |
jmettraux |
irfn: hi ! You're welcome |
2010-04-12 10:29:25 utc |
irfn |
@jmettraux i had a question related to register_participant |
2010-04-12 10:29:33 utc |
jmettraux |
please |
2010-04-12 10:29:45 utc |
irfn |
i noticed e.register_participant :jig, Ruote::Jig::JigParticipant |
2010-04-12 10:29:54 utc |
irfn |
in ruote_jig |
2010-04-12 10:30:25 utc |
irfn |
does that mean i can register classes as participants instead of blocks of code |
2010-04-12 10:30:33 utc |
jmettraux |
of course |
2010-04-12 10:30:43 utc |
jmettraux |
blocks of code are "exceptional" |
2010-04-12 10:30:59 utc |
irfn |
so i include LocalParticipant |
2010-04-12 10:31:32 utc |
irfn |
and define a method consume that takes a work_item as arg |
2010-04-12 10:31:35 utc |
jmettraux |
yes, LocalParticipant is a set of helper methods for participants that must "reply" to the engine |
2010-04-12 10:31:35 utc |
jmettraux |
yes |
2010-04-12 10:31:46 utc |
irfn |
hmm |
2010-04-12 10:32:00 utc |
jmettraux |
for ruote 2.1 "stateless" participants are preferred to block participants |
2010-04-12 10:32:10 utc |
jmettraux |
so that they can be instantianted by any worker |
2010-04-12 10:32:17 utc |
irfn |
ok |
2010-04-12 10:32:56 utc |
jmettraux |
block participants are cool for "demo" / "quickstart" purposes |
2010-04-12 10:33:11 utc |
irfn |
makes sense |
2010-04-12 10:33:23 utc |
jmettraux |
the preferred way is e.register_participant "name", Toto::MyParticipant |
2010-04-12 10:33:30 utc |
irfn |
ok i did that |
2010-04-12 10:33:42 utc |
irfn |
i encouter an error |
2010-04-12 10:33:44 utc |
irfn |
undefined method `prepare_msg_doc' for #
|
2010-04-12 10:33:46 utc |
jmettraux |
or e.register_participant "name", Toto::MyParticipant, :opt1 => :a, :opt2 => :b |
2010-04-12 10:33:53 utc |
irfn |
oh |
2010-04-12 10:34:33 utc |
jmettraux |
I should release 2.1.10, this error indicates you're using the latest ruote-dm with ruote 2.1.9 |
2010-04-12 10:34:36 utc |
irfn |
so getting that error and was wondering if it had to do with me incorrectly using ruote |
2010-04-12 10:34:44 utc |
irfn |
ah |
2010-04-12 10:34:50 utc |
irfn |
that explains it |
2010-04-12 10:35:05 utc |
irfn |
so using ruote master should do it |
2010-04-12 10:35:07 utc |
irfn |
rt ? |
2010-04-12 10:35:12 utc |
jmettraux |
yes |
2010-04-12 10:35:20 utc |
irfn |
awesome |
2010-04-12 10:35:27 utc |
jmettraux |
:) |
2010-04-12 10:35:39 utc |
jmettraux |
well, the tests are green for me |
2010-04-12 10:35:48 utc |
irfn |
:) |
2010-04-12 10:35:50 utc |
jmettraux |
if you encounter any issue, feedback is welcome |
2010-04-12 10:36:04 utc |
irfn |
yeah thanks for all the help |
2010-04-12 10:36:16 utc |
jmettraux |
thanks for the feedback ! |
2010-04-12 10:36:37 utc |
irfn |
:) |