Hallo,

I tried to use the new release.
To check if all is working fine I run the standard example:


require 'rubygems'
require 'openwfe/def'
require 'openwfe/workitem'
require 'openwfe/engine/engine'

#
# instantiating an engine

engine = OpenWFE::Engine.new

#
# adding some participants

engine.register_participant :alice do |workitem|
    puts "alice got a workitem..."
    workitem.alice_comment = "this thing looks interesting"
end

engine.register_participant :bob do |workitem|
    puts "bob got a workitem..."
    workitem.bob_comment = "not for me, I prefer VB"
    workitem.bob_comment2 = "Bob rules"
end

engine.register_participant :summarize do |workitem|
    puts
    puts "summary of process #{workitem.fei.workflow_instance_id}"
    workitem.attributes.each do |k, v|
        next unless k.match ".*_comment$"
        puts " - #{k} : '#{v}'"
    end
end

#
# a process definition

class TheProcessDefinition0 < OpenWFE::ProcessDefinition
    sequence do
        concurrence do
            participant :alice
            participant :bob
        end
        participant :summarize
    end
end

#
# launching the process

li = OpenWFE::LaunchItem.new(TheProcessDefinition0)

li.initial_comment = "please give your impressions about http://ruby-lang.org";

fei = engine.launch(li)

engine.wait_for fei


This program was running without errors with release 0.9.17 (using
Netbeans 6.0 and Ruby 1.8.6 Runtime)

I got the following exception running the program using Netbeans 6.1,
JRuby 1.1 as runtime and release ruote-0.9.18.

I don't know if this is a problem of the JRuby 1.1 runtime or if I
have to change the program code a little bit.
I would be very happy if some one give me a tip.

Best regards

Andreas


/Applications/NetBeans/NetBeans 6.1.app/Contents/Resources/NetBeans/
ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruote-0.9.18/lib/openwfe/expool/
expressionpool.rb:138:in
`prepare_raw_expression': :definition_in_launchitem_allowed not set to
true, cannot launch (RuntimeError)
        from /Applications/NetBeans/NetBeans 6.1.app/Contents/
Resources/NetBeans/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruote-0.9.18/
lib/openwfe/expool/expressionpool.rb:177:in `launch'
        from /Applications/NetBeans/NetBeans 6.1.app/Contents/
Resources/NetBeans/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruote-0.9.18/
lib/openwfe/engine/engine.rb:225:in `launch'
        from /Users/abaumann/NetBeansProjects/OpenWFEruTests/lib/
main.rb:59
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to