Thanks for the
I did not have issues that jon ( compe...@gmail.com ) had, but had
some other stuff.
Somehow yamlextras.rb did not get installed during gem install.
Also Line 111 in openwferu_engine.rb in the config directory needed to
be changed from
OpenWFE::Extras::ActiveStoreParticipant.new(store.name))
to
OpenWFE::Extras::ActiveStoreParticipant.new())
in order to get the script\server running.
I can see http://localhost.../launch page being displayed properly.
But none of the links that get displayed work. I get
RuntimeError in LaunchController#launch
launchitem.workflow_definition_url not set, cannot launch
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
F:/ruby/lib/ruby/gems/1.8/gems/openwferu-0.9.13/lib/openwfe/expool/
expressionpool.rb:158:in `prepare_raw_expression'
F:/ruby/lib/ruby/gems/1.8/gems/openwferu-0.9.13/lib/openwfe/expool/
expressionpool.rb:191:in `launch'
F:/ruby/lib/ruby/gems/1.8/gems/openwferu-0.9.13/lib/openwfe/engine/
engine.rb:201:in `launch'
#{RAILS_ROOT}/app/controllers/launch_controller.rb:76:in `launch'
and the url is
http://localhost:3000/launch/launch?defurl=%2Fprocess_definitions%2Fsched0.rb
John, before I go and try fixing / modifying stuff, I would like to
know which controllers are working for you? For e.g. the stores page
is not working for me
The error is
NoMethodError in StoresController#index
undefined method `find_in_stores' for OpenWFE::Extras::Workitem:Class
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:1235:in `method_missing'
#{RAILS_ROOT}/app/controllers/stores_controller.rb:53:in `index'
Should I be using the trunk version of openwfe?
Info on which pages are working now, or will work soon with the next
release, will help me focus on stuff that you are not working on such
as acts_as_authenticated etc.
Again thanks John for all your effort on the "densha" ( nice name BTW
once you know the meaning)
Kumar
yes, you should be using the trunk of OpenWFEru, it should solve all the issues.
I will update the dependency message issued in
config/openwferu_engine.rb to reflect that fact, the current message
is meant for after OpenWFEru 0.9.14 and Densha (OpenWFEru on Rails)
are realized, sorry.
Thanks for the feedback, well observed, I think it will solve Jon's
issue as well,
--
John Mettraux -///- http://jmettraux.openwfe.org
svn checkout http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby
in the same dir containing densha/
Best regards,
On Aug 30, 5:00 pm, "John Mettraux" <jmettr...@openwfe.org> wrote:
> On 8/31/07, John Mettraux <jmettr...@openwfe.org> wrote:
>
> > Hi Kumar,
>
> > yes, you should be using the trunk of OpenWFEru, it should solve all the issues.
>
> svn checkouthttp://openwferu.rubyforge.org/svn/trunk/openwfe-ruby
>
> in the same dir containing densha/
Did that and uninstalled openwfe..0.9.13.* gems for good measure.
launch page is working now.
stores _not_ :-(
The same error:
NoMethodError in StoresController#index
undefined method `find_all_by_store_name' for
OpenWFE::Extras::Workitem:Class
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:1196:in `method_missing'
../openwfe-ruby/lib/openwfe/extras/participants/activeparticipants.rb:
269:in `find_in_stores'
#{RAILS_ROOT}/app/controllers/stores_controller.rb:53:in `index'
Again I am sure it will be fixed soon, as far now if I get the launch
page working with acts_as_authenticated that should be good enough for
now.
If you can send me the pages that work for you, it might be helpful to
others.
Thanks
Kumar
On 8/31/07, OpenWFEFan <g_sk...@yahoo.com> wrote:
>
> The same error:
>
> NoMethodError in StoresController#index
>
> undefined method `find_all_by_store_name' for
> OpenWFE::Extras::Workitem:Class
>
> RAILS_ROOT: ./script/../config/..
> Application Trace | Framework Trace | Full Trace
>
> F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
> base.rb:1196:in `method_missing'
> ../openwfe-ruby/lib/openwfe/extras/participants/activeparticipants.rb:
> 269:in `find_in_stores'
> #{RAILS_ROOT}/app/controllers/stores_controller.rb:53:in `index'
Check your database, if your workitems table still has a "store"
column instead of a "store_name" one, you should update your schema.
You can do that easily by running the command "./clean.sh" located at
the root of densha/ (while densha is not running of course).
I think it will fix your issue.
> Again I am sure it will be fixed soon, as far now if I get the launch
> page working with acts_as_authenticated that should be good enough for
> now.
>
> If you can send me the pages that work for you, it might be helpful to
> others.
The pages that work for me ? Well they all work for me... What do you mean ?
Keep me informed, thanks for the feedback,
On Aug 30, 5:55 pm, "John Mettraux" <jmettr...@openwfe.org> wrote:
> Hi Kumar,
>
> On 8/31/07, OpenWFEFan <g_sku...@yahoo.com> wrote:
>
>
>
> > The same error:
>
> > NoMethodError in StoresController#index
>
> > undefined method `find_all_by_store_name' for
> > OpenWFE::Extras::Workitem:Class
>
> > RAILS_ROOT: ./script/../config/..
> > Application Trace | Framework Trace | Full Trace
>
> > F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
> > base.rb:1196:in `method_missing'
> > ../openwfe-ruby/lib/openwfe/extras/participants/activeparticipants.rb:
> > 269:in `find_in_stores'
> > #{RAILS_ROOT}/app/controllers/stores_controller.rb:53:in `index'
>
> Check your database, if your workitems table still has a "store"
> column instead of a "store_name" one, you should update your schema.
>
> You can do that easily by running the command "./clean.sh" located at
> the root of densha/ (while densha is not running of course).
>
> I think it will fix your issue.
Yep! That was it. Thanks for the quick response.
<snip>
>
> The pages that work for me ? Well they all work for me...
For me too :-)
Again i have not looked into the controller code in detail. But
eadmin page and couple of other pages end up in the stores page
Also within a page, authentication is remembered but when I change the
url to a different controller, it wants to be authenticated again. But
I will look into that.
Thanks
Kumar
>> ../openwfe-ruby/lib/openwfe/storage/yamlextras.rb:76: undefined method `yaml_as'
>> for OpenWFE::FlowExpressionId:Class (NoMethodError)
At least something changed.
/jon
Hi Jon,
seems like the "require 'yaml'" statement was not executed, for instance :
---8<---
sonanda:~ mettraux$ irb
irb(main):001:0> class A
irb(main):002:1> yaml_as ""
irb(main):003:1> end
NoMethodError: undefined method `yaml_as' for A:Class
from (irb):2
--->8---
Though there is a "require 'yaml'" at the top of the class that complains.
when does the error get produced, at startup or during an operation ?
which version of Ruby are you using ?
which version of Ruby on Rails are you using ?
did you uninstall the "openwferu" and the "openwferu-extras" gems to
make sure they were not interfering with the trunk ?
Best regards,
I had the same issue with ../openwfe-ruby/lib/openwfe/storage/
yamlextras.rb, where the storage/yamlextras.rb was missing from the
gem's contents, so I decided to have a further look...
Here is what i did to pinpoint the issue:
* I checked out trunk (http://openwferu.rubyforge.org/svn/trunk/
openwfe-ruby), the file storage/yamlextras.rb was there.
* I built the gem (rake gem)
* I installed the newly built gem (sudo gem install
openwferu-0.9.15.gem)
At this point I still had the issue so I opened the file "Rakefile".
I found that the issue was related to line 52 (see below) which
excludes files/directories containing "extras" in the name.
50 files = FileList[ "{bin,docs,lib,test,examples}/**/*" ]
51 files.exclude "rdoc"
52 files.exclude "extras"
53 s.files = files.to_a
When I commented out line 52, built the gem and installed it, the
issue was resolved, that is, the gem now had the file storage/
yamlextras.rb.
I hope this helps.
Thanks,
Leo
On Sep 1, 12:36 pm, "John Mettraux" <jmettr...@openwfe.org> wrote:
Yes, this helps a lot !
http://rubyforge.org/tracker/index.php?func=detail&aid=14167&group_id=2609&atid=10195
That calls for a 0.9.15 release.
Next time I'll go an test gem installs on a clean system.
Thanks again, I owe you at least a beer, cheers,