Hello John,

thank you for your answer, executing the participants into sequence
seems to be the best way.

An Other question: (Maybe a beginners question, but i have to start
through with ruote into the next weeks)...

The configuration:
If i have one ruby file, containing one Processdefinition

8<-----------------
pdef = Ruote.process_definition :name => 'test' do...
8<-----------------

and one launcher:

8<-----------------
...
wfid = engine.launch(pdef)
engine.wait_for(:informTimeout)
...
8<-----------------

As a single instance, everything works fine.

If i start this file in 2 different terminals, i get 2 different
wfid's:

the 1st terminal's output:
8<-----------------
fei       : 0_0_0!0a07ade70aa2f61d64eb2369fa5b13d1!20120420-sazadage
wfid      : 20120420-sazadage
expid     : 0_0_2
subid     : 006d2501d04df7dc1709be397bf611fe
engine_id : engine
...
8<-----------------

and the 2nd terminal's output:
8<-----------------
fei       : 0_0_0!b9af9b46ec94e36019285685bc247737!20120420-powowope
wfid      : 20120420-powowope
expid     : 0_0_2
subid     : 7f2e1c1f459b2e4bbb164c9fe3c4f3b5
engine_id : engine
...
8<-----------------

But the processdefinition drives crazy asyncronously: output from the
first instance comes in the 2nd terminal and so on.

My Questions:

1. What have i to do in order to execute multi process-instances at
the same time? My goal is later to built a web-application for multi-
authors in order to generate knowledge-Objects which are thebase fpr
new knowledge-modells (its part of my master thesis). Is it possible
to configure one processinstance with a web-session-id?

2. Is there a way to interact with instance variables between
different Process-Instances e.g. for looking some ressources ect. Or
whats it the mainly used technology in order to synchronize some
instances?

3. Is "ruote-fluo" still the state of the art in ruote-process-
visualization?

Thank you for answering some beginners-questions,
Greetings,
Klaus



On 20 Apr., 00:57, John Mettraux <[email protected]> wrote:
> On Thu, Apr 19, 2012 at 03:10:23PM -0700, Klaus Schmidtmamn wrote:
>
> > i experimented a little with ruote and found the following miss-
> > understanding:
> > When i ask for a budget value within one "cursor" into one
> > "concurrence", so i can't access to this variable within an other
> > curson in the same concurrence.
>
> > sequence do
> >   concurrence do
> >     cursor do # c1
> >       participant 'askForBudget'
> >       echo 'budget: ${f:budget}'
> >       participant 'sayMyBudget'
> >     end
> >     cursor do # c2
> >       participant 'sayMyBudget'
> >       rewind :unless => '3 < 1'
> >     end
> >   end
> > end
>
> > engine.register_participant :sayMyBudget do |workitem|
> >     puts "globale Budget-Variable: #{workitem.fields['budget']}"
> > end
>
> > "sayMyBudget" only works into curso #c1. why?
>
> Hello Klaus,
>
> welcome to the ruote mailing list.
>
> Process variables are not the same thing as workitem fields [1]
>
> You cursor 1 and your cursor 2 work on a different copy of the original
> workitem. When the concurrence ends, the workitems get merged [2].
>
> There are various ways to do the thing you seem to be doing, the most obvious
> one is:
>
> ---8<---
> sequence do
>   participant 'askForBudget'
>   participant 'sayMyBudget'
> end
> --->8---
>
> I.e. keep the "budget" as a workitem field and never call "sayMyBudget"
> before "askForBudget".
>
> Best regards,
>
> --
> John Mettraux -http://lambda.io/processi
>
> [1]http://ruote.rubyforge.org/vars_and_fields.html
> [2]http://ruote.rubyforge.org/exp/concurrence.html

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