Hi John,

I launched this workflow definition within a clean install of ruote-
rest:

class Test0 < OpenWFE::ProcessDefinition
  sequence :on_cancel => "exit" do
    participant :ref => "alpha"
    participant :ref => "bravo"
  end
  process_definition :name => "exit" do
    participant :ref => "charly"
    participant :ref => "zulu"
  end
end

At alpha or bravo stage I just cancel the workflow. Then, a new
subprocess called 'exit' is started
and workitem is delivered to participant charly. As far as I see, the
new subprocess is given a new
id which is the old one (main process) plus ".0" so it looks similar
to: 20091019-godepoyoyu.0

Then I GET /processes and see that there is still a process with id
'20091019-godepoyoyu', but the name
has changed to 'exit'. I expected to see the new id '20091019-
godepoyoyu.0'. Then I do a GET on that
process (GET processes/20091019-godepoyoyu) and shows up the following
error:

undefined method `each' for nil:NilClass
(erb):27:in `get_binding'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:212:in
`get_binding'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:225:in
`erb'
/home/gonzalo/ruote-rest/lib/helpers/application.rb:42:in `_erb'
/home/gonzalo/ruote-rest/lib/rep/processes.rb:61:in
`render_process_html'
/home/gonzalo/ruote-rest/lib/inout.rb:75:in `send'
/home/gonzalo/ruote-rest/lib/inout.rb:75:in `rrender'
/home/gonzalo/ruote-rest/lib/res/processes.rb:108:in `call'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:267:in
`service'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:265:in
`catch'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:265:in
`service'
/home/gonzalo/ruote-rest/vendor/rufus-sixjo/lib/rufus/sixjo.rb:125:in
`call'
/home/gonzalo/ruote-rest/lib/auth.rb:48:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/showexceptions.rb:24:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/commonlogger.rb:20:in
`_call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/commonlogger.rb:13:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:60:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in `call'
[...]

It seems that the workflow representation hasn't been created
correctly or the reference to it is wrong.
It's something a bit weird because workitem 'charly' is correctly
created, and I'm able to
do GET /expressions/20091019-godepoyoyu and see that there are
environment (context for 'exit',
process definition (definition for 'exit') and participant ('charly')
expressions.

Thanks for your help and tips.
Best regards.

Gonzalo.


--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to