Hi John,

I was basically trying to get it running.. Now, I know what should go
inside the process definition.
So, I have created a user pranav and a process definition -
OpenWFE.process_definition :name => 'sample' do
  sequence do
    pranav
  end
end
Once I launch this process definition and login as pranav, I see it
in /workitems but I don't get a proceed button..
Im missing something conceptually fundamental.. Please help..

Pranav

On May 21, 4:04 pm, John Mettraux <[email protected]> wrote:
> On Thu, May 21, 2009 at 7:50 PM, pranav <[email protected]> wrote:
>
> > Now that I was able to launch a process definition -
> >http://groups.google.com/group/openwferu-users/browse_thread/thread/4...
> > I have one more doubt..
> > How do I "proceed" to the next participant once my process definition
> > is launched? It sits in the first participant after the launch. The
> > workitems page does not show any activity associated or any other
> > mechanism to move ahead.
>
> > My process definition is -
>
> > class ProcDef < OpenWFE::ProcessDefinition
>
> >  description "WELCOME TO THE DESERT OF REAL"
>
> >  sequence do
> >     participant :first_participant
> >     participant :second_participant
> >  end
>
> >  engine = OpenWFE::Engine.new(:remote_definitions_allowed => true)
> >  engine.register_participant 'first_participant' do |workitem|
> >    puts 'first participant'
> >    workitem.fields['message'] = 'hello from first participant !'
> >  end
> >  engine.register_participant 'second_participant' do |workitem|
> >    puts 'second participant'
> >    puts "the message says '#{workitem.fields['message']}'"
> >  end
>
> > end
>
> Hi Pranav,
>
> why are you embedding an engine instantantiation + participant
> registration inside of a process definition ? There are no such
> examples in the documentation... Ruote is an interpreter for process
> definition, it's not the task of the process definition to instantiate
> the engine.
>
> Since you are using ruote-web2, ruote-web2 does the job of running the
> ruote engine for you.
>
> If you need to register participants, you can do it under
> config/initializers/participants.rb but that will require a restart of
> ruote-web2.
>
> > I am new to this so please tell me if I am missing anything
> > fundamental. Also, I am trying to understand how the overall scheme of
> > ruote-web2 + process definition + users + groups is working..
>
> In ruote-web2, participants names are automatically mapped to user or
> group names. If for example of have a user "alice" and a group
> "authors", this process definition :
>
> ---8<---
> OpenWFE.process_definition :name => 'sample' do
>   sequence do
>     alice
>     authors
>   end
> end
> --->8---
>
> Will deliver a workitem to Alice and then to the authors group. You
> won't need to register any participant as long as the the user and the
> group exist.
>
> Not that for proceeding a workitem in ruote-web2, you simply locate
> the workitem under /workitems, click on it, then hit the "proceed"
> button.
>
> 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