ruote tmp/log_2012-05-29.html

2012-05-29 02:13:29 utc jadams hello everyone
2012-05-29 04:53:10 utc jmettraux jadams: hello Josh
2012-05-29 21:41:33 utc jadams jmettraux: hello
2012-05-29 21:41:39 utc jmettraux jadams: hello
2012-05-29 21:42:50 utc jadams so thanks for the reply on the ML. I'm actually on the git master of ruote (2.3.0) so I don't think the problem you thought I was running into was my actual problem, but I think that modeling stuff in ruote-on-rails / ruote-kit is perhaps not the best starting point for ruote (though it's the nicest looking way to start to wrap my head around it all)
2012-05-29 21:43:41 utc jadams I'm going to play with it using just code and see where I can get. Also, the flickr example on the ruote master examples/ doesn't work at present because backticks aren't allowed...I modified it to get it to work just to try to get familiar with ruote a bit more - pull request welcome?
2012-05-29 21:43:59 utc jmettraux yes, it's welcome :-)
2012-05-29 21:45:01 utc jadams cool :)
2012-05-29 21:45:15 utc jmettraux not sure what it could be in ruote-rails + ruote 2.3.0
2012-05-29 21:45:40 utc jadams I was hoping something jumped out at you re: "you dolt, that's not how you use :if!"
2012-05-29 21:46:00 utc jadams jmettraux: oh god, nevermind
2012-05-29 21:46:06 utc jadams th eflickr example totally works
2012-05-29 21:46:06 utc jmettraux lol, sorry you use it right
2012-05-29 21:46:11 utc jadams I must've been on an old version or something
2012-05-29 21:46:26 utc jadams I rewrote the ResultGenerator class
2012-05-29 21:46:37 utc jadams because it was in a block back in the day
2012-05-29 21:46:46 utc jmettraux one thing you could do with your ruote-rails is "bundle open ruote" and then look for lib/ruote/exp/condition.rb
2012-05-29 21:47:58 utc jmettraux then add a "p conditional" in the self.true? method to see what ends up being passed to the conditional checker
2012-05-29 21:48:05 utc jadams doing
2012-05-29 21:50:13 utc jadams " > 25000"
2012-05-29 21:50:16 utc jadams that's pretty telling :)
2012-05-29 21:50:42 utc jadams when looking at the workitem, I have
2012-05-29 21:50:45 utc jadams {"fields":{"amount":"30000"},"params":{"hr":null},"dispatched_at":"2012-05-29 21:45:04.832924 UTC"}
2012-05-29 21:51:09 utc jadams is that where the amount should be to be able to refer to it with `participant "ceo", :if => "${f:amount} > 25000"`
2012-05-29 21:51:19 utc jadams or would that be something like ${f:fields.amount} ?
2012-05-29 21:51:30 utc jmettraux weird, it should just work, unless the amount is cleared before reaching "ceo"
2012-05-29 21:51:34 utc jadams I'm assuming that would be....correct
2012-05-29 21:51:39 utc jadams I don't see why it would be
2012-05-29 21:51:46 utc jmettraux ${f:amount} and ${amount} should work
2012-05-29 21:51:48 utc jadams if I get rid of the hr participant I still don't see the task for the ceo
2012-05-29 21:51:52 utc jadams I'll verify that
2012-05-29 21:52:14 utc jadams yeah
2012-05-29 21:52:30 utc jadams CEO doesn't get it, so I can't see how it would be being cleared since I'd have seen it if the participant getting the workitem was hr
2012-05-29 21:53:45 utc jmettraux that's crazy, if hr gets the right amount, it means it got carried through alright, why should it vanish before reaching the ceo?
2012-05-29 21:54:01 utc jadams where else might I put some debuggery code to figure it out?
2012-05-29 21:54:22 utc jadams I'm super glad this confused you too :) I was feeling extremely dumb
2012-05-29 21:54:46 utc jmettraux :-)
2012-05-29 21:54:54 utc jmettraux in lib/ruote/worker.rb
2012-05-29 21:55:03 utc jmettraux at the top of the process(msg) method
2012-05-29 21:55:34 utc jmettraux something like p msg['workitem'] if msg['action'] == 'apply'
2012-05-29 21:55:35 utc jadams ok, inspecting msg
2012-05-29 21:55:48 utc jadams perhaps that's better :)
2012-05-29 21:56:30 utc jadams {"fields"=>{"fields"=>{"amount"=>"30000"}}, "wf_name"=>"if_example", "wf_revision"=>"0.1", "fei"=>{"engine_id"=>"engine", "wfid"=>"20120529-2150-retzupusu-mugikadi", "subid"=>"79fb9a89ff95c3caec8e8d08a7660a61", "expid"=>"0_0_0"}, "participant_name"=>"requestor", "re_dispatch_count"=>0, "type"=>"workitems", "_id"=>"wi!0_0_0!79fb9a89ff95c3caec8e8d08a7660a61!20120529-2150-retzupusu-mugikadi", "wfid"=>"20120529-2150-retzupusu-mugikadi", "put_at"
2012-05-29 21:56:36 utc jadams wut
2012-05-29 21:56:36 utc jadams fields fields
2012-05-29 21:56:43 utc jadams think that's the problem, eh? :)
2012-05-29 21:57:24 utc jadams alright, so I didn't understand how this form builder output was working it seems
2012-05-29 21:57:34 utc jadams I forget the name of it, but it's really cool btw :)
2012-05-29 21:57:42 utc jmettraux yes, it looks like it
2012-05-29 21:57:49 utc jadams alright, so that was helpful
2012-05-29 21:57:57 utc jadams thanks for walking me through it
2012-05-29 21:58:02 utc jmettraux woah, it was scary
2012-05-29 21:58:11 utc jmettraux you're welcome
2012-05-29 21:59:12 utc jadams ok, ceo got his stuff
2012-05-29 21:59:25 utc jadams when I changed the name to app.amount (and the form, because fields.fields
2012-05-29 22:00:03 utc jadams like I say, prolly too many moving parts for me to be using ruote-on-rails as a starting point for learning ruote
2012-05-29 22:00:40 utc jadams I'm CTO of Isotope11 (a software dev shop, 12 employees presently, been around 7 years) and I'm trying to get us into doing some light (at first) process automation for local industrial companies
2012-05-29 22:01:07 utc jadams just because 3 of them have approached us recently and I think it's a market with very little competition and non-trivial amounts of money to be spent and saved
2012-05-29 22:01:45 utc jadams hence my fascination with ruote. I've actually looked at it at least twice before, but since I didn't have a real use for it at the time I didn't dig in to really get it
2012-05-29 22:06:14 utc jmettraux :-)
2012-05-29 22:06:41 utc jmettraux I really like the description you used about state machines and workflows you used in your email
2012-05-29 22:07:08 utc jmettraux I hope ruote can help you
2012-05-29 22:07:25 utc jmettraux even if you don't use it in the end ;-)
2012-05-29 23:15:52 utc jadams jmettraux: so I really think there's almost zero doubt that I'll use ruote
2012-05-29 23:16:28 utc jadams I see it as being a huge benefit, and I'm very intrigued at the intersection of Business Process Management and the Actor Model (seen celluloid, etc?)?
2012-05-29 23:21:42 utc jmettraux yes, I've seen celluloid, it's very nice
2012-05-29 23:22:26 utc jmettraux looking forward to see your developments on this intersection