Hi John,

I tried to use a more complex dollar notation but I got an exception.
The program and the exception is below.
What is wrong ?
I apply your example to my scenario and I thought that it should work,
but it does'nt.

Best regards,

Andreas



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

require 'openwfe/engine/engine'
require 'openwfe/extras/participants/sqsparticipants'
require 'openwfe/extras/listeners/sqslisteners'
require 'openwfe/expressions/raw_prog'
require 'openwfe/tools/flowtracer'

engine = OpenWFE::Engine.new


engine.register_participant :log do |workitem|
    #engine.ldebug "LOG #{workitem.params.msg}"
    puts workitem.lookup_attribute("params.msg")
end


class TenderProcessDefinition < OpenWFE::ProcessDefinition

    sequence do

        _if do
           equals :field_value => "${f:supplierList.
1.DunsNr}", :other_value => "ZUTE8555"
            #then
            log :msg => "matched"
            #else
            log :msg => "not matched"
        end
    end

    set :field => "supplierList", :value =>
[{"name"=>"companyA","DunsNr" => "JGE4753"},
{"name"=>"companyB","DunsNr" => "ZUTE8555"},
{"name"=>"companyC","DunsNr" => "GTI6775"},
{"name"=>"companyD","DunsNr" => "XUE6755"}]
end

li = OpenWFE::LaunchItem.new(TenderProcessDefinition)

OpenWFE::trace_flow(TenderProcessDefinition)

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

fei = engine.launch(li)

engine.wait_for fei



-----------------------------------------------


exception:



I, [2007-10-30T22:44:28.015620 #1682]  INFO -- : OpenWFE::Engine
'engine' - new() --- engine started --- 15380910
I, [2007-10-30T22:44:28.016978 #1682]  INFO -- : OpenWFE::Engine
'engine' - new() --- engine started --- 15364530
I, [2007-10-30T22:44:28.019412 #1682]  INFO -- : OpenWFE::Engine
'engine' - wait_for() 20071030-mipezaramu
W, [2007-10-30T22:44:28.030572 #1682]  WARN -- :
OpenWFE::ExpressionPool 'expressionPool' - expressionPool
operation :do_apply on (fei 0.9.15 engine/engine field:__definition
TenderProcess 0 20071030-mipezaraji equals 0.0.0.0) failed with
exception : can't convert String into Integer
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
382:in `[]'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
382:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
388:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/workitem.rb:
174:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:141:in `[]'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:88:in `dsub'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:124:in `dosub'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:376:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:629:in `lookup_vf_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:600:in `lookup_value'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:87:in `lookup_values'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:69:in `reply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:64:in `apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
raw.rb:117:in `apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:878:in `do_apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:841:in `send'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:841:in `do_process_workelement'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:66:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:65:in `loop'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:65:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
303:in `call'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
303:in `call_in_thread'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `initialize'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `new'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `call_in_thread'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:64:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:120:in `initialize'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/contextual.rb:
78:in `new'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/contextual.rb:
78:in `init_service'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/engine/
engine.rb:652:in `build_expression_pool'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/engine/
engine.rb:114:in `initialize'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/tools/
flowtracer.rb:53:in `new'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/tools/
flowtracer.rb:53:in `trace_flow'
/Users/abaumann/Documents/KomodoProjects/SQSTestProject/
TenderProcess.rb:40
W, [2007-10-30T22:44:28.031278 #1682]  WARN -- :
OpenWFE::ExpressionPool 'expressionPool' - expressionPool
operation :do_apply on (fei 0.9.15 engine/engine field:__definition
TenderProcess 0 20071030-mipezaramu equals 0.0.0.0) failed with
exception : can't convert String into Integer
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
382:in `[]'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
382:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
388:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/workitem.rb:
174:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:141:in `[]'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:88:in `dsub'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
dollar.rb:124:in `dosub'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:376:in `lookup_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:629:in `lookup_vf_attribute'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
flowexpression.rb:600:in `lookup_value'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:87:in `lookup_values'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:69:in `reply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
fe_equals.rb:64:in `apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expressions/
raw.rb:117:in `apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:878:in `do_apply'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:841:in `send'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:841:in `do_process_workelement'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:66:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:65:in `loop'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:65:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
303:in `call'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
303:in `call_in_thread'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `initialize'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `new'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/utils.rb:
291:in `call_in_thread'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/util/
workqueue.rb:64:in `start_workqueue'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/expool/
expressionpool.rb:120:in `initialize'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/contextual.rb:
78:in `new'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/contextual.rb:
78:in `init_service'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/engine/
engine.rb:652:in `build_expression_pool'
/Library/Ruby/Gems/1.8/gems/openwferu-0.9.15/lib/openwfe/engine/
engine.rb:114:in `initialize'
/Users/abaumann/Documents/KomodoProjects/SQSTestProject/
TenderProcess.rb:13:in `new'
/Users/abaumann/Documents/KomodoProjects/SQSTestProject/
TenderProcess.rb:13






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to