Hi John,

I found one reason of the problem.
Below    :on_value => "${f:comp}"  does'nt work as exspected because
I make a false assumption.
I thought that the field comp is part of the current workitem.
The participant "call" companyDefiner implicite 'consume' the field
comp.
If I comment the line with "companyDefiner" out then :on_value => "$
{f:comp}" is working properly
Is it normal that workitem fields are lost leaving a participant ?
What is the scope and the lifetime of workitem fields ?
Are there different scopes or lifetimes of workitem fields ?

This is potentially also related to my previous question:

Are  somewhere some examples using complex dollor notations to access
a value in a complex workitem attribute ( a array of hash maps )
within the process definition ( usefull in "if", "case", ...
expressions ) ?

Best regards

Andreas

...
sequence do

        companyDefiner

        iterator :on_value => "${f:comp}", :to_variable
=>"next_participant" do


            _if  do
                equals :field_value => "$
{next_participant}", :other_value => "bob"

                # then
               companyDefiner
                # else
               supplier :supplierName => "${next_participant}"
            end
        end
.....






On 30 Okt., 14:28, "John Mettraux" <[EMAIL PROTECTED]> wrote:
> On 10/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I have also some other problems with the iterator expression.
> > The version which is used in the example is OK, it works as expected.
> > But if i use a more dynamic version which is discussed in the
> > documentation
>
> > iterator :on_value => "${f:participant_list}", :to_variable => "p" do
> >         participant "${p}"
> > end
>
> > nothing will happend (no iteration will take place)  --> I think
> > somethink is wrong with the
> > :on_value => "${f:participant_list}" construct.
>
> > In my example if I use the dynamic dollor construct  "${f:comp}" it
> > should work:
>
> > iterator :on_value => "${f:comp}", :to_variable =>"next_participant"
> > do
>
> >             _if  do
> >                 equals :field_value => "$
> > {next_participant}", :other_value => "bob"
> >                 # then
> >                companyDefiner
> >                 # else
> >                supplier :supplierName => "${next_participant}"
> >             end
> >         end
>
> > But no iteration will take place. What is wrong with that ?
>
> Hi,
>
> I have tried to reproduce your issue in OpenWFEru trunk but without success :
>
> http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/ft_15b_ite...
>
> This test just works fine for me. I added it anyway to the test suite.
>
> I guess you're using OpenWFEru 0.9.15. Is there something in the logs
> about your problem ?
>
> --
> John Mettraux   -///-  http://jmettraux.openwfe.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to