I believe Xbaya runs your first component without error, is it not? I
was asking for the output xml of the first service . You may find this
by opening the notifications you received. It should have the array
elements.

On Sun, Jun 30, 2013 at 9:34 PM, Heejoon Chae <[email protected]> wrote:
> Hi, Chathura,
>
> For some reason, previous xwf gives errors, so I am re-attaching the scripts
> and xwf.
> I also attached wsdl from the first component
>
> Thank you!,
> Heejoon.
>
>
>
> On Sun, Jun 30, 2013 at 2:01 PM, Chathura Herath <[email protected]>
> wrote:
>>
>> send me the result xml from your first component as well
>>
>> On Sat, Jun 29, 2013 at 11:26 PM, Heejoon Chae <[email protected]>
>> wrote:
>> > Hi, Chathura,
>> >
>> > I am attaching simplified  xwf and related scripts.
>> >
>> > Basically if user input filename which contains list of file names,
>> > 'string_array_test.sh' script generates input for 'foreach component'.
>> > Then, 'local_echo.sh' will do something on each passed file name.
>> >
>> > Thank you for taking your time.
>> > Heejoon.
>> >
>> >
>> > On Sun, Jun 30, 2013 at 12:24 AM, Chathura Herath
>> > <[email protected]>
>> > wrote:
>> >>
>> >> Two questions.
>> >> 1) your services are they public and can i access them.
>> >> 2) Can you send us your xwf file.
>> >>
>> >> If yes to both of the above we can actually load your workflow and
>> >> debug
>> >> this.
>> >>
>> >> If not;
>> >> I looked at the code, the exception you get is because xbaya couldnt
>> >> find the element array. From what i see in the code you need one more
>> >> wrapper element. This is the wrapper element you get when u define in
>> >> the wsdl an element for max occurs unbounded.
>> >>
>> >> I don't want to disappoint you with many trial and errors. you can try
>> >> this if not give us the services and the xwf so one of us can take a
>> >> look.
>> >>
>> >>
>> >> <ComponentOneOrWhateverOutputParamname>
>> >> <somewrapperelement>
>> >> <val>a</val>
>> >> <val>b</val>
>> >> </somewrapperelement>
>> >> ..
>> >> </ComponentOneOrWhateverOutputParamname>
>> >>
>> >> On Sat, Jun 29, 2013 at 3:38 AM, Heejoon Chae <[email protected]>
>> >> wrote:
>> >> > Hi, Suresh,
>> >> >
>> >> > Any updates on this?
>> >> >
>> >> > By the way, can you also let me know how I cloud run for-each
>> >> > component
>> >> > on
>> >> > files? Actually, what I want to do is to run my script on several
>> >> > input
>> >> > files(let's say 100 inputs), but actual input files' informations are
>> >> > listed
>> >> > on a single file instead of getting all the input one by one.
>> >> >
>> >> > So, the input is single file containing all the input file
>> >> > informations
>> >> > looks like,
>> >> >
>> >> > ...
>> >> > http://xxx,xxx,xxx/input1.txt
>> >> > http://xxx,xxx,xxx/input2.txt
>> >> > http://xxx,xxx,xxx/input3.txt
>> >> > ...
>> >> >
>> >> > Thanks!
>> >> > Heejoon.
>> >> >
>> >> >
>> >> > On Tue, Jun 11, 2013 at 10:26 PM, Suresh Marru <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Hi Heejoon,
>> >> >>
>> >> >> Normally we use for-each on files, so the way to handle that is let
>> >> >> all
>> >> >> the output files go into a outputData directory and iterate over
>> >> >> them.
>> >> >> But I
>> >> >> see what you are doing here. Let me try this and get back to you
>> >> >> within
>> >> >> the
>> >> >> next day.
>> >> >>
>> >> >> Thanks for your patience,
>> >> >> Suresh
>> >> >>
>> >> >> On Jun 10, 2013, at 11:46 PM, Heejoon Chae <[email protected]>
>> >> >> wrote:
>> >> >>
>> >> >> Hi, Airavata users,
>> >> >>
>> >> >> Do you have any advises or experiences for my previous mail about
>> >> >> ForEach
>> >> >> component?
>> >> >> I am still struggling with generating input for ForEach component in
>> >> >> my
>> >> >> script :/
>> >> >> Any comment will be helpful to me to use the component :)
>> >> >>
>> >> >> Thank you!
>> >> >>
>> >> >> ---------- Forwarded message ----------
>> >> >> From: Heejoon Chae <[email protected]>
>> >> >> Date: Fri, Jun 7, 2013 at 5:44 PM
>> >> >> Subject: Re: Question for Airavata For-Each component
>> >> >> To: "[email protected]" <[email protected]>
>> >> >>
>> >> >>
>> >> >> Hi, Lahir,
>> >> >>
>> >> >> I succeeded to use ForEach component with attaching  'Input'
>> >> >> component
>> >> >> in
>> >> >> front of ForEach componet with comma separated value(i.e "a,b,c") as
>> >> >> input
>> >> >> like in attached figure. ForEach component works well with Input
>> >> >> component
>> >> >> with comma separate value.
>> >> >>
>> >> >> Now I want to mimic what Input component does within my script as in
>> >> >> another figure. This is required to run ForEach on generated data
>> >> >> not
>> >> >> on
>> >> >> data inputed from user.
>> >> >>
>> >> >> I tired several ways to generate a input for ForEach component in my
>> >> >> script including what you suggested in previous mail, but I
>> >> >> couldn't.
>> >> >> Please
>> >> >> help me to solve this problem.
>> >> >>
>> >> >> Thank you,
>> >> >> Heejoon.
>> >> >>
>> >> >>
>> >> >> On Wed, Jun 5, 2013 at 11:44 PM, Lahiru Gunathilake
>> >> >> <[email protected]>
>> >> >> wrote:
>> >> >>>
>> >> >>> Following script will be useful for you..
>> >> >>>
>> >> >>> echo $@
>> >> >>> echo $*
>> >> >>> echo $#
>> >> >>> for arg; do
>> >> >>>   printf '%s\n' "$arg"
>> >> >>> done
>> >> >>>
>> >> >>>
>> >> >>> Lahir
>> >> >>>
>> >> >>>
>> >> >>> On Wed, Jun 5, 2013 at 9:53 AM, 채희준 <[email protected]> wrote:
>> >> >>>>
>> >> >>>> Hi Lahiru,
>> >> >>>>
>> >> >>>> Thank you for your answer.
>> >> >>>>
>> >> >>>> By the way, how to create string array in shell script, so that I
>> >> >>>> can
>> >> >>>> pass it to ForEach component?
>> >> >>>>
>> >> >>>> Thank you,
>> >> >>>> Heejoon.
>> >> >>>>
>> >> >>>> 2013. 6. 5. 오후 10:44 Lahiru Gunathilake <[email protected]> 작성:
>> >> >>>>
>> >> >>>> Hi Heejoon,
>> >> >>>>
>> >> >>>> We take string array as input but we invoke the script with each
>> >> >>>> element
>> >> >>>> of the string array multiple times, in Foreach we don't pass whole
>> >> >>>> string
>> >> >>>> array to the application script at once. So you really don't have
>> >> >>>> to
>> >> >>>> handle
>> >> >>>> a string array in your script.
>> >> >>>>
>> >> >>>> Lahiru
>> >> >>>>
>> >> >>>>
>> >> >>>> On Tue, Jun 4, 2013 at 10:06 PM, Heejoon Chae
>> >> >>>> <[email protected]>
>> >> >>>> wrote:
>> >> >>>>>
>> >> >>>>> Hi,
>> >> >>>>>
>> >> >>>>> I have quick question about Airavata For-Each component.
>> >> >>>>>
>> >> >>>>> It seems that ForEach component takes String array as an input
>> >> >>>>> and
>> >> >>>>> pass
>> >> >>>>> them to next component one by one.
>> >> >>>>>
>> >> >>>>> My question is how to create string array in shell script to pass
>> >> >>>>> it
>> >> >>>>> to
>> >> >>>>> ForEach component?
>> >> >>>>>
>> >> >>>>> I normally generate string result like
>> >> >>>>>
>> >> >>>>> echo "output=xxx"
>> >> >>>>>
>> >> >>>>> at the end of script and connect it as an input of next component
>> >> >>>>> in
>> >> >>>>> Airavata workflow to pass the result and let next component know
>> >> >>>>> the
>> >> >>>>> input
>> >> >>>>> is arrived.
>> >> >>>>>
>> >> >>>>> Thanks,
>> >> >>>>> Heejoon.
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>> --
>> >> >>>> System Analyst Programmer
>> >> >>>> PTI Lab
>> >> >>>> Indiana University
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> System Analyst Programmer
>> >> >>> PTI Lab
>> >> >>> Indiana University
>> >> >>
>> >> >>
>> >> >>
>> >> >> <Screen Shot 2013-06-07 at 3.12.05 PM.png><Screen Shot 2013-06-07 at
>> >> >> 3.11.31 PM.png>
>> >> >>
>> >> >>
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Chathura Herath Ph.D
>> >> http://people.apache.org/~chathura/
>> >> http://chathurah.blogspot.com/
>> >
>> >
>>
>>
>>
>> --
>> Chathura Herath Ph.D
>> http://people.apache.org/~chathura/
>> http://chathurah.blogspot.com/
>
>



-- 
Chathura Herath Ph.D
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/

Reply via email to