Hello,

I was looking at processes method in engine.rb (ruote 2.1.11) and I
see that list of processes returned by that method can be different
when passing in an options hash. If there are options passed in (for
example :skip=>0) then we will get only processes that have
expressions associated because of expression_wfids method in base.rb.

I ran into a problem when I called Engine.processes and tried to read
definition_name for each process. I got a method missing error on
'attribute' for nilclass.

I would recommend changing Engine#processes to:

      if opts.size > 0
        wfids = @context.storage.expression_wfids(opts)
        return wfids.size if opts[:count]
      else
        wfids = @context.storage.expression_wfids
      end
      list_processes(wfids, opts)

let me know what you think...

Thanks,
Ocha

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