Hi Marco,

Regarding _if, the second expression is the "implied else". So if you do:

_if "2 == 1" do
  exp1
  exp2
end

exp2 will be executed. The way I think about it is that "sequence do...
end" takes the place of the braces { } in C-family languages. What can trip
you is if you're accustomed to Ruby's use of if where no braces are
necessary.


*Mario Camou* | *Co-Founder*
[email protected]
http://abstra.cc

Tanto este mensaje como todos los posibles documentos adjuntos al mismo,
son confidenciales y están dirigidos exclusivamente a los destinatarios de
los mismos. Por favor, si Usted no es uno de dichos destinatarios,
notifíquenos este hecho y elimine el mensaje de su sistema. Queda prohibida
la copia, difusión o revelación de su contenido a terceros sin el previo
consentimiento por escrito de “ABSTRA CC FACTORIA SOFTWARE, S.A.”. En caso
contrario, vulnerará la legislación vigente. Sus datos figuran en un
fichero propiedad de "ABSTRA CC FACTORIA SOFTWARE, S.A.". Si desea acceder
a sus datos, rectificarlos, cancelarlos u oponerse a su tratamiento,
diríjase por escrito a "ABSTRA CC FACTORIA SOFTWARE, S.A.", C/ Boix y
Morer, 6, 7 planta de Madrid, CP-28003.

Both this message and all possible documents attached to it, are
confidential and are intended exclusively to recipients of them. Please, if
you are not one of those recipients, notify us of this fact and delete the
message from your system. Copying, dissemination or disclosure of their
contents to third parties without the prior written consent of "ABSTRA CC
FACTORIA SOFTWARE, S.A." is prohibited. Otherwise, you violate the
legislation in force. Your data are contained in a file property of "ABSTRA
CC FACTORIA SOFTWARE, S.A.". If you want to access your data, rectify them,
cancel them or oppose its processing, submit in writing to "ABSTRA CC
FACTORIA SOFTWARE, S.A.", C/ Boix y Morer, 6, 7 floor Madrid, CP-28003.



On Mon, Jun 18, 2012 at 11:19 AM, Marco Sehrer [ninjaconcept.com] <
[email protected]> wrote:

> Hi John,
>
> after working for some time with ruote, I found some things, I think,
> might not be that consistent as they could be.
> Maybe I missed a concept, I'm sure you will have answers :-)
>
> 1)
> Queries on a specific participant are not scoped to that participant
>
> For example
>
> *RuoteKit.engine.participant('picklist_processor').all.map {|wi|
> wi.participant_name}*
> -> returns all workitems/partipant_names ..
>
> the same as doing
>
> *RuoteKit.engines.storage_participant.all.map {|wi| wi.participant_name}*
>
> Intuitively I would expect that calling a query on a participant, will
> scope/prefilter that query ..
>
> 2)
>
> An *_if* block is not implicit sequential ?
> It makes a difference, at least for my test-suite if I do
>
> *_if ".." do*
> *    exp1*
> *    exp2*
> *    exp3*
> *end*
>
> or
>
> *_if ".." do*
> *  sequence do*
> *    exp1*
> *    exp2*
> *    exp3*
> *  end*
> *end*
>
> I ended to prevent to use *_if* at all and use a *cursor :if=>".." *
> expression* *instead
>
> *cursor :if => ".." do*
> *    part1*
> *    part2*
> *    part3*
> *end*
> *
> *
>
> Thank you,
> Marco
>
> --
> 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

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