[Rock-dev] Roby Bug Hunting Part #2

Chris Mueller christoph.mueller at dfki.de
Thu Nov 8 11:56:00 CET 2012


 >> Event-Emitting.

I found the dummy example in the AVALON sources now and reuse it for my 
case.

Works perfectly now (In my case it integrates now nicely for triggering 
events for a
service composition with a refine_running_state machine).

Here is also the solution for all rock developers, who have not access 
to the dummy example:

method(:dummy) do
     task = self.cmp_service
     task.script do
          # some scripting blah
          # ....
          emit :success
     end
     # needs to return the task
     task
end

 >> Describe-Issue

I'll check the concerning bundles for that and follow your advice 
(isolated bundle, unittest in roby).
If i have some results, i'll let you know.

Chris


More information about the Rock-dev mailing list