lib/runtime/engine.rb in factor-0.1.03 vs lib/runtime/engine.rb in factor-0.1.04

- old
+ new

@@ -50,19 +50,19 @@ code.call message end end end - def launch workflow, params + def launch workflow, params, keep_open=false instance_id=SecureRandom.hex @message_bus.start do message = Message.new message.position << "start" message.workflow=workflow message.add_values params message.workflow_instance_id= instance_id - @message_bus.send_and_close message + @message_bus.send message, !keep_open end instance_id end # start your engines. vroom vrooooom! \ No newline at end of file