Hi all,
Two days ago I set up ruote-rest to use DmPersistedEngine. I added the
following lines to 'conf/engine.rb'
require 'dm-core'
DataMapper.setup(:default, {
:adapter => "postgres",
:database => "ruoterest_development",
:username => "postgres",
:password => "postgres",
:host => "localhost"
})
require 'openwfe/extras/engine/dm_engine'
engine_class = OpenWFE::Extras::DmPersistedEngine
Then I started the engine and everything worked pretty fine. But today
I found an issue. Here is how I got it:
1. Start the engine.
2. Launch some processes (I tested this with default process in /
processes form)
3. Stop and start the engine again.
4. Request any of the processes previously launched and try to delete
it.
Then the issue shows up with the following output:
uninitialized constant OpenWFE::Definition
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/
dependencies.rb:440:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/
dependencies.rb:80:in `const_missing'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/extras/
expool/dm_expstorage.rb:213:in `fetch_root'
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core.rb:181:in
`repository'
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core/repository.rb:
44:in `scope'
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core.rb:181:in
`repository'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/extras/
expool/dm_expstorage.rb:209:in `fetch_root'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/expool/
expstorage.rb:268:in `fetch_root'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/expool/
expressionpool.rb:454:in `fetch_root'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/expool/
expressionpool.rb:306:in `cancel_process'
/Users/gonzalo/Stuff/Ruby/ruote-rest/vendor/ruote/lib/openwfe/engine/
expool_methods.rb:45:in `cancel_process'
/Users/gonzalo/Stuff/Ruby/ruote-rest/lib/res/processes.rb:133:in
`call'
[...]
It seems that ruote isn't able to deal properly with "old" processes
persisted with DmPersistedEngine. Nevertheless, creating and deleting
processes without stopping the engine at any moment works well.
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
-~----------~----~----~----~------~----~------~--~---