Hi everyone,

So I'm brand new to ruote.  I've built ad-hoc workflow-lite systems for my 
projects in the past (essentially state machines, implicit workflow spread 
across multiple models, and background workers pushing state).  Obviously 
this is sub-optimal, and declarative workflow seems much nicer.

So I've been trying to get my head around ruote.  However, I can't seem to 
get the most basic example involving anything dynamic to work.  As an 
example, I'm just trying to do a really basic if statement and I cannot get 
it to work to save my life.

Ruote.process_definition :name => 'if_example', :revision => '0.1' do
  sequence do
    requestor :task => 'request_business_trip_application_form'
    participant 'hr'
    participant 'ceo', :if => '${f:amount} > 25000'
  end
end

I'm using ruote-on-rails to play around with the pdefs, and so I plug that 
sucker in and add a form for the task that has an 'amount' field.  I fill 
it in with 30000.  When the 'hr' participant picks it up, the workitem 
looks like this:

{"fields":{"amount":"30000"},"params":{"hr":null},"dispatched_at":"2012-05-29 
12:36:52.202034 UTC"}

However, when I advance the workflow it's just done - the CEO doesn't get 
handed the workitem.  I've done about five different variants of this, and 
I'm sure it's something dumb I'm doing, but I can't seem to get past the 
most basic example here.

I've also tried modifying the workitem to make the amount be an integer 
rather than a string, and that failed as well.

Any help is appreciated.  Thanks tons,

-Josh Adams

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