| 2011-07-06 04:59:00 utc | kamalfariz | jmettraux: hi! i guess i got my terms wrong. the process definition DSL makes a particular workflow |
| 2011-07-06 04:59:04 utc | kamalfariz | compile |
| 2011-07-06 04:59:06 utc | kamalfariz | compiled |
| 2011-07-06 04:59:16 utc | kamalfariz | or rather, makes it look compiled |
| 2011-07-06 04:59:17 utc | jmettraux | kamalfariz: hello ! welcome to #ruote |
| 2011-07-06 04:59:52 utc | kamalfariz | so alice cleans the car, then bob sells the car. what if i had a new process that needs to be in between the two tasks? |
| 2011-07-06 05:00:01 utc | jmettraux | you can say things like "participant :ref => "${participant_name_resolved_at_runtime}"" |
| 2011-07-06 05:00:10 utc | jmettraux | ah |
| 2011-07-06 05:00:12 utc | kamalfariz | while the engine is already running |
| 2011-07-06 05:00:53 utc | jmettraux | the simplest way to do that "in flight", is to replace bob by a sequence { charly; bob } |
| 2011-07-06 05:01:17 utc | jmettraux | let me cook a gist |
| 2011-07-06 05:09:29 utc | jmettraux | kamalfariz: sorry, it took a bit longer than I thought, https://gist.github.com/1066604 |
| 2011-07-06 05:09:45 utc | kamalfariz | jmettraux: thanks! checking it out |
| 2011-07-06 05:09:59 utc | jmettraux | you have to modify the expression just upstream of the place where you want the change |
| 2011-07-06 05:10:22 utc | kamalfariz | ah so the update_tree is the magic sauce |
| 2011-07-06 05:10:57 utc | jmettraux | unfortunately, it's dangerous magic |
| 2011-07-06 05:11:46 utc | jmettraux | well it works, but there are two or three basic "in-flight modification" patterns, and this update_tree() doesn't hold for all of them |
| 2011-07-06 05:11:54 utc | kamalfariz | jmettraux: i'm trying to translate my manual processes at my office here into ruote, so i'm building it as i go |
| 2011-07-06 05:12:02 utc | kamalfariz | i'm sure i'll miss some things |
| 2011-07-06 05:12:27 utc | kamalfariz | so that gist will be helpful |
| 2011-07-06 05:12:51 utc | jmettraux | maybe this will help you as well : http://jmettraux.wordpress.com/2010/01/29/barley/ |
| 2011-07-06 05:13:10 utc | kamalfariz | using ruote-kit, can i pause a running engine, modify the process definition and resume? i'm guessing no |
| 2011-07-06 05:13:24 utc | jmettraux | it's just a loop, with a different participant each time |
| 2011-07-06 05:13:46 utc | jmettraux | ruote-kit : you can do such update_tree() manipulations without pausing/stopping the engine |
| 2011-07-06 05:14:09 utc | jmettraux | by modify the process definition, do you mean using update_tree() ? |
| 2011-07-06 05:15:22 utc | kamalfariz | i was thinking by modifying the pdef itself via the DSL like at http://localhost:3000/_ruote/processes/new |
| 2011-07-06 05:15:34 utc | kamalfariz | maybe a /processes/:id/edit |
| 2011-07-06 05:16:32 utc | jmettraux | in fact, if you navigate to an expression in ruote-kit, you can re-apply it |
| 2011-07-06 05:16:47 utc | jmettraux | it means you can force its branch to get cancelled |
| 2011-07-06 05:17:15 utc | jmettraux | when you re-apply you're also given the opportunity to change the tree |
| 2011-07-06 05:17:27 utc | jmettraux | change the JSON generated by the dsl at launch time |
| 2011-07-06 05:17:50 utc | jmettraux | you can even include the editor if you click on the "dot" button |
| 2011-07-06 05:18:01 utc | jmettraux | same thing as in the "launch" screen |
| 2011-07-06 05:18:07 utc | kamalfariz | ah cool |
| 2011-07-06 05:18:30 utc | jmettraux | you should have a tmp ruote-kit to play with those mechanisms |
| 2011-07-06 05:18:37 utc | jmettraux | to get a feel for them |
| 2011-07-06 05:19:22 utc | jmettraux | feedback, critiques, patches, suggestions are welcome, as always |
| 2011-07-06 05:19:52 utc | kamalfariz | thanks |
| 2011-07-06 05:21:26 utc | jmettraux | how are you doing by the way ? |
| 2011-07-06 05:22:13 utc | kamalfariz | i'm doing great! the coworking space has been in operation for 1+ month, so now i'm automating most of the things |
| 2011-07-06 05:22:36 utc | kamalfariz | i just discovered the "dot" editor, looks really interesting! |
| 2011-07-06 05:23:17 utc | jmettraux | it's Ramadan right now ? |
| 2011-07-06 05:23:39 utc | kamalfariz | not yet, in august |
| 2011-07-06 05:24:02 utc | jmettraux | aah |
| 2011-07-06 05:24:54 utc | kamalfariz | nice talking to you. have fun in rubykaigi. off to lunch! |
| 2011-07-06 05:25:07 utc | jmettraux | ciao ! |