You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Michele <ia...@gmail.com> on 2010/01/19 16:46:01 UTC
How to access to "Variable to Variable" copy..
Hello, I have to analize the <bpel:assign> in a BPEL process. In particular
I have to distinguish the three kind of <copy> "Fixed value to variable",
"Expression to variable", "Variable to Variable". I need to select the third
one and in specific to access to CDATA value.
This is the code:
AssignActivity assign = ((AssignActivity) act);
java.util.List<Copy> copies= assign.getCopies();
Iterator<Copy> itr = copies.iterator();
while(itr.hasNext()) {
Copy cp = (Copy) itr.next();
//I don't know how to process
}
thanks.
Re: How to access to "Variable to Variable" copy..
Posted by Tammo van Lessen <tv...@gmail.com>.
_context is the CompilerContext, i.e. the compiler itself.
On 19.01.2010 21:48, Michele wrote:
> ok I'm analyzing the AssignGenerator.java..
> What is "_context"? that is used for example in
> _context.resolveVariable(vv.getVariable())
> Thanks
>
> 2010/1/19 Tammo van Lessen <tv...@gmail.com>
>
>> Hi,
>>
>> please check the code of the clases From, To, ToFrom, and the methods
>> AssignGenerator.compileTo(...) and AssignGenerator.assignFrom(...) as
>> reference.
>>
>> HTH,
>> Tammo
>>
>> On 19.01.2010 17:21, Michele wrote:
>>> Hello, I have to analize the <bpel:assign> in a BPEL process. In
>> particular
>>> I have to distinguish the three kind of <copy> "Fixed value to
>> variable",
>>> "Expression to variable", "Variable to Variable". I need to select the
>> third
>>> one and in specific to access to CDATA value.
>>> This is the code:
>>>
>>> AssignActivity assign = ((AssignActivity) act);
>>> java.util.List<Copy> copies= assign.getCopies();
>>> Iterator<Copy> itr = copies.iterator();
>>> while(itr.hasNext()) {
>>> Copy cp = (Copy) itr.next();
>>> //I don't know how to go on
>>> }
>>>
>>> thanks.
>>>
>>
>>
>> --
>> Tammo van Lessen - http://www.taval.de
>>
>
--
Tammo van Lessen - http://www.taval.de
Re: How to access to "Variable to Variable" copy..
Posted by Michele <ia...@gmail.com>.
ok I'm analyzing the AssignGenerator.java..
What is "_context"? that is used for example in
_context.resolveVariable(vv.getVariable())
Thanks
2010/1/19 Tammo van Lessen <tv...@gmail.com>
> Hi,
>
> please check the code of the clases From, To, ToFrom, and the methods
> AssignGenerator.compileTo(...) and AssignGenerator.assignFrom(...) as
> reference.
>
> HTH,
> Tammo
>
> On 19.01.2010 17:21, Michele wrote:
> > Hello, I have to analize the <bpel:assign> in a BPEL process. In
> particular
> > I have to distinguish the three kind of <copy> "Fixed value to
> variable",
> > "Expression to variable", "Variable to Variable". I need to select the
> third
> > one and in specific to access to CDATA value.
> > This is the code:
> >
> > AssignActivity assign = ((AssignActivity) act);
> > java.util.List<Copy> copies= assign.getCopies();
> > Iterator<Copy> itr = copies.iterator();
> > while(itr.hasNext()) {
> > Copy cp = (Copy) itr.next();
> > //I don't know how to go on
> > }
> >
> > thanks.
> >
>
>
> --
> Tammo van Lessen - http://www.taval.de
>
Re: How to access to "Variable to Variable" copy..
Posted by Tammo van Lessen <tv...@gmail.com>.
Hi,
please check the code of the clases From, To, ToFrom, and the methods
AssignGenerator.compileTo(...) and AssignGenerator.assignFrom(...) as
reference.
HTH,
Tammo
On 19.01.2010 17:21, Michele wrote:
> Hello, I have to analize the <bpel:assign> in a BPEL process. In particular
> I have to distinguish the three kind of <copy> "Fixed value to variable",
> "Expression to variable", "Variable to Variable". I need to select the third
> one and in specific to access to CDATA value.
> This is the code:
>
> AssignActivity assign = ((AssignActivity) act);
> java.util.List<Copy> copies= assign.getCopies();
> Iterator<Copy> itr = copies.iterator();
> while(itr.hasNext()) {
> Copy cp = (Copy) itr.next();
> //I don't know how to go on
> }
>
> thanks.
>
--
Tammo van Lessen - http://www.taval.de
How to access to "Variable to Variable" copy..
Posted by Michele <ia...@gmail.com>.
Hello, I have to analize the <bpel:assign> in a BPEL process. In particular
I have to distinguish the three kind of <copy> "Fixed value to variable",
"Expression to variable", "Variable to Variable". I need to select the third
one and in specific to access to CDATA value.
This is the code:
AssignActivity assign = ((AssignActivity) act);
java.util.List<Copy> copies= assign.getCopies();
Iterator<Copy> itr = copies.iterator();
while(itr.hasNext()) {
Copy cp = (Copy) itr.next();
//I don't know how to go on
}
thanks.