Here is the tree for the expression:

[
  "define",
  {
    "name": "Approved Invoice",
    "version": "1.0",
    "timeout": "30d",
    "on_timeout": "admin"
  },
  [
    [
      "cursor",
      {
      },
      [
        [
          "gate_keeper",
          {
            "task": "Review Invoice"
          },
          [

          ]
        ],
        [
          "participant",
          {
            "ref": "${matter_owner}",
            "task": "Approve Invoice",
            "if": "${_status}!=reject"
          },
          [

          ]
        ],
        [
          "jump",
          {
            "to": "reject_invoice",
            "if": "${_status}==reject"
          },
          [

          ]
        ],
        [
          "update_ledger",
          {
          },
          [

          ]
        ],
        [
          "stop",
          {
          },
          [

          ]
        ],
        [
          "reject_invoice",
          {
          },
          [

          ]
        ]
      ]
    ]
  ]
]


here is the trace:



TypeError - can't dup NilClass:
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/ruote-2.1.11/lib/ruote/
engine/process_status.rb:203:in `dup'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/ruote-2.1.11/lib/ruote/
engine/process_status.rb:203:in `block in position'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/ruote-2.1.11/lib/ruote/
engine/process_status.rb:201:in `collect'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/ruote-2.1.11/lib/ruote/
engine/process_status.rb:201:in `position'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
views/processes.html.haml:37:in `block in
__tilt_ac6edcfbc587b469c190899746d6f0c5'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
views/processes.html.haml:29:in `each'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
views/processes.html.haml:29:in
`__tilt_ac6edcfbc587b469c190899746d6f0c5'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
tilt.rb:195:in `evaluate'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
tilt.rb:449:in `evaluate'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
tilt.rb:131:in `render'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:343:in `render'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-respond_to-0.5.0/
lib/sinatra/respond_to.rb:143:in `render'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:311:in `haml'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
helpers/misc_helpers.rb:12:in `block (2 levels) in respond_with'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-respond_to-0.5.0/
lib/sinatra/respond_to.rb:210:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-respond_to-0.5.0/
lib/sinatra/respond_to.rb:210:in `respond_to'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
helpers/misc_helpers.rb:11:in `respond_with'
 /Users/eric/gitsource/onit/vendor/gems/ruote-kit-2.1.11/lib/ruote-kit/
resources/processes.rb:15:in `block in <class:Application>'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:865:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:865:in `block in route'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:521:in `instance_eval'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:521:in `route_eval'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:500:in `block (2 levels) in route!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:497:in `catch'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:497:in `block in route!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:476:in `each'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:476:in `route!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:601:in `dispatch!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:411:in `block in call!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `instance_eval'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `block in invoke'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `catch'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `invoke'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:411:in `call!'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:399:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
methodoverride.rb:24:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
static.rb:33:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
methodoverride.rb:24:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
commonlogger.rb:20:in `_call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
commonlogger.rb:13:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
head.rb:9:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
methodoverride.rb:24:in `call'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/params_parser.rb:15:in `call'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/session/cookie_store.rb:93:in `call'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/failsafe.rb:26:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
lock.rb:11:in `block in call'
 <internal:prelude>:8:in `synchronize'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
lock.rb:11:in `call'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/dispatcher.rb:114:in `block in call'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/reloader.rb:34:in `run'
 /Users/eric/gitsource/onit/vendor/rails/actionpack/lib/
action_controller/dispatcher.rb:108:in `call'
 /Users/eric/gitsource/onit/vendor/rails/railties/lib/rails/rack/
static.rb:31:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
urlmap.rb:46:in `block in call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
urlmap.rb:40:in `each'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
urlmap.rb:40:in `call'
 /Users/eric/gitsource/onit/vendor/rails/railties/lib/rails/rack/
log_tailer.rb:17:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
content_length.rb:13:in `call'
 /Users/eric/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.0.1/lib/rack/
handler/webrick.rb:50:in `service'
 /Users/eric/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
httpserver.rb:111:in `service'
 /Users/eric/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
httpserver.rb:70:in `run'
 /Users/eric/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
server.rb:183:in `block in start_thread'



On Oct 16, 2:45 am, John Mettraux <[email protected]> wrote:
> On Fri, Oct 15, 2010 at 10:15:31PM +0900, John Mettraux wrote:
>
> > On Fri, Oct 15, 2010 at 06:10:45AM -0700, Eric wrote:
>
> > > to:
>
> > > def position
> > >   workitems.collect { |wi|
> > >     r = [ wi.fei.sid, wi.participant_name ]
> > >     if wi.fields['params']
> > >       params = wi.fields['params'].dup
> > >       params.delete('ref')
> > >       r << params
> > >     else
> > >       r << {:task=>'error'}
> > >     end
> > >     r
> > >   }
> > > end
>
> > Thanks for the patch, I will integrate it during the week-end.
>
> Hello Eric,
>
> I'm sorry, I've tried to reproduce your issue, but workitems with errors 
> don't make it into the storage participant.
>
> If you could give me the stack trace you were experiencing maybe I could 
> understand what you are doing, reproduce the issue and fix it.
>
> I'd be interested to know if the issue is caused by something on your side or 
> if it's a ruote issue that I have to fix.
>
> Thanks in advance,
>
> --
> John Mettraux -http://jmettraux.wordpress.com

-- 
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