Hi John,

Thanks a lot for the suggestion. Now we have setup everything afresh.
We haven't touched participants.rb mentioned.

For the below mentioned leave request process(leave_request1.rb), I am
facing some issues.

1. We have created users pranav, rekha, soham using admin login. Using
pranav , we are able to launch the process.
But problem which we are facing is that it doesn't proceed further
after emplyoee task ( even after clicking "proceed" button ). It is
showing "Wi" at Emplyoee task.

----------------------------------------------
#
# an example of a Ruby process definition, for a small
# leave request application.
#
class LeaveRequest1 < OpenWFE::ProcessDefinition

  description "requesting some time off"
  set :v => "employee", :value => "${launcher}"
  set :v => "boss", :value => "soham"
  set :v => "assistant", :value => "rekha"

  sequence do

    #
    # the first participant is the employee (the user who
    # launched the process)
    #
    employee

    #
    # now setting some fields that the assistant and perhaps
    # the boss will fill.
    #
    set :f => "granted", :value => "false"
    set :f => "not_enough_info", :value => "true"
    set :f => "boss_should_have_a_look", :value => "false"

    assistant

    #
    # if the assistant set the field 'boss_should_have_a_look',
    # then the process will head to the boss desk
    #
    boss :if => "${f:boss_should_have_a_look}"

    #
    # employee gets the answer to his request
    #
    employee
  end
end

-------------------------------------------
ruote_production.log has the following.

OpenWFE::FsPersistedEngine 's_engine' - new() --- engine started ---
1452
OpenWFE::ExpressionPool 's_expression_pool' - reschedule()
initiating...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() for  (fei
0.9.21 engine ee ee 0 0 environment 0)...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() done. (took
9.99999046325684 ms)
OpenWFE::FsPersistedEngine 's_engine' - build_scheduler() version is
1.0.13
OpenWFE::CacheExpressionStorage 's_expression_storage' - new() size is
5000
OpenWFE::FsPersistedEngine 's_engine' - new() --- engine started ---
1452
OpenWFE::ExpressionPool 's_expression_pool' - reschedule()
initiating...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() for  (fei
0.9.21 engine ee ee 0 0 environment 0)...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() for  (fei
0.9.21 engine C:/Makarand/NetBeansProjects/RailsApplication2/public/
defs/leave_request1.rb LeaveRequest 1 20090605-hikajutoga employee
0.4.0)...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() for  (fei
0.9.21 engine C:/Makarand/NetBeansProjects/RailsApplication2/public/
defs/leave_request1.rb LeaveRequest 1 20090605-hikajutoga environment
0)...
OpenWFE::ExpressionPool 's_expression_pool' - reschedule() done. (took
20.0002193450928 ms)
OpenWFE::ExpressionPool 's_expression_pool' - cancel() cannot cancel
missing  (fei LeaveRequest 1 20090605-hikajutoga 0.3 set)
OpenWFE::ExpressionPool 's_expression_pool' - do_apply_reply() :reply
but cannot find (fei 0.9.21 engine C:/Makarand/NetBeansProjects/
RailsApplication2/public/defs/leave_request1.rb LeaveRequest 1
20090605-hikajutoga employee 0.4.)
OpenWFE::ExpressionPool 's_expression_pool' - do_apply_reply() :reply
but cannot find (fei 0.9.21 engine C:/Makarand/NetBeansProjects/
RailsApplication2/public/defs/leave_request1.rb LeaveRequest 1
20090605-hikonabopa employee 0.4.)

Thanks & Regards,
Pranav


On Jun 5, 3:36 pm, John Mettraux <[email protected]> wrote:
> On Fri, Jun 5, 2009 at 4:06 PM, pranav <[email protected]> wrote:
>
> > Steps that I am following -
>
> > 1. Create users
> > 2. Change values of assistant and boss in the leave_request1.rb file
> > to the newly created user
> > 3. Register participants in config/initializers/participant.rb
> > 4. Launch the process with user corresponding to employee..
>
> Quick note : you don't have to register participants for users.
> Creating a group or a participant immediately allocates a "virtual"
> participant for that person / group of persons.
>
> You shouldn't need touching config/initializers/participants.rb
>
> Best regards.
>
> --
> John Mettraux   -  http://jmettraux.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
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