| 2011-06-16 08:23:08 utc | kennethkalmer | ohai ! |
| 2011-06-16 08:23:30 utc | jmettraux | kennethkalmer: hello ! |
| 2011-06-16 08:23:39 utc | kennethkalmer | doing well today ? |
| 2011-06-16 08:24:09 utc | tosch_le | hi! |
| 2011-06-16 08:24:37 utc | jmettraux | doing fine |
| 2011-06-16 08:24:39 utc | kennethkalmer | hi tosch_le |
| 2011-06-16 08:24:42 utc | jmettraux | coffee ? |
| 2011-06-16 08:24:51 utc | kennethkalmer | oh yes please ! |
| 2011-06-16 08:25:00 utc | jmettraux | tosch_le: coffee ? |
| 2011-06-16 08:25:53 utc | kennethkalmer | while you brew ;) ... |
| 2011-06-16 08:26:23 utc | kennethkalmer | i have an interesting challenge and am looking for some suggestions |
| 2011-06-16 08:26:46 utc | jmettraux | ACTION emits espresso |
| 2011-06-16 08:26:47 utc | kennethkalmer | (and have to leave shortly, so I'll just dump here and catch you guys a bit later again) |
| 2011-06-16 08:26:52 utc | jmettraux | ok |
| 2011-06-16 08:26:55 utc | kennethkalmer | ACTION consumes happily |
| 2011-06-16 08:27:20 utc | kennethkalmer | i have to track process instances associated with a specific rails model |
| 2011-06-16 08:27:30 utc | tosch_le | ACTION consumes |
| 2011-06-16 08:27:45 utc | kennethkalmer | so, my thinking initially was to just add extra fields |
| 2011-06-16 08:28:04 utc | kennethkalmer | this just works when the process is at the storage participant, at least in my tests last night |
| 2011-06-16 08:28:09 utc | kennethkalmer | my other thinking is a bit more elaborate |
| 2011-06-16 08:29:40 utc | kennethkalmer | tracking models and process instances in redis, and cleaning up the tracking data with on_terminate |
| 2011-06-16 08:29:41 utc | kennethkalmer | ideally i would like to query the engine for running processes with certain "attributes", irregardless of which participant is currently involved |
| 2011-06-16 08:29:43 utc | jmettraux | some people add a wfid or wfids column to their model, but it's not very loose |
| 2011-06-16 08:29:50 utc | jmettraux | ah ok |
| 2011-06-16 08:30:08 utc | jmettraux | it's a bit expansive to query the engine, but it's doable |
| 2011-06-16 08:30:48 utc | jmettraux | engine.processes.find { |ps| ps.variables['active_record_id'] == 'x' } |
| 2011-06-16 08:31:00 utc | kennethkalmer | ah, variables and not fields |
| 2011-06-16 08:31:16 utc | jmettraux | with fields : |
| 2011-06-16 08:31:42 utc | jmettraux | engine.process.find { |ps| ps.root_expression.applied_workitem['fields']['x'] == 'y' } |
| 2011-06-16 08:32:02 utc | jmettraux | if you did set the field x at launch time |
| 2011-06-16 08:32:21 utc | kennethkalmer | which I do |
| 2011-06-16 08:32:21 utc | kennethkalmer | i set an 'itag' |
| 2011-06-16 08:32:29 utc | kennethkalmer | ie class_name_ID |
| 2011-06-16 08:32:38 utc | kennethkalmer | domain_1, or similar |
| 2011-06-16 08:32:42 utc | kennethkalmer | awesome |
| 2011-06-16 08:32:58 utc | jmettraux | ps.root_expressions[0] |
| 2011-06-16 08:32:58 utc | kennethkalmer | thank you so much :) |
| 2011-06-16 08:33:05 utc | jmettraux | you're welcome |
| 2011-06-16 08:33:22 utc | kennethkalmer | i'll test the other route as well, keeping wfids associated with a model in redis and share just for learning and showing off :) |
| 2011-06-16 08:33:38 utc | kennethkalmer | right now I have to run to the market with Michelle (who sends her regards) |
| 2011-06-16 08:33:41 utc | jmettraux | :-) custom indexes |
| 2011-06-16 08:33:47 utc | kennethkalmer | ttyl ! |
| 2011-06-16 08:33:49 utc | jmettraux | ciao ! say hello ! |
| 2011-06-16 08:33:53 utc | kennethkalmer | will do |
| 2011-06-16 08:33:58 utc | kennethkalmer | ciao ! |