OnAlarm and BPEL validation problem

22 messages Options
Embed this post
Permalink
1 2
Marco Piraccini

OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi guys,
We are trying to add a process timeout using onalarm handler on a
process scope. We want to set a timeout and then reply a fault when the
alarm is triggered. Of course, if the timeout does not trigger, we reply
on the same partner link the correct answer.
If we design that using the BPEL editor, the process is marked as not
valid and the message is:
"Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of any
decision gate and have the same partner link".
We have the same behavior also using onMessage-Reply instead of
Receive-Reply.

We are using GF2.1

Is this correct, or are we making some mistake?

Marco.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Vladimir Yaroslavskiy

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi Marco,

To find out the issue, can you, please, send your project?

Thanks,
Vladimir

Marco Piraccini wrote:

> Hi guys,
> We are trying to add a process timeout using onalarm handler on a
> process scope. We want to set a timeout and then reply a fault when the
> alarm is triggered. Of course, if the timeout does not trigger, we reply
> on the same partner link the correct answer.
> If we design that using the BPEL editor, the process is marked as not
> valid and the message is:
> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of any
> decision gate and have the same partner link".
> We have the same behavior also using onMessage-Reply instead of
> Receive-Reply.
>
> We are using GF2.1
>
> Is this correct, or are we making some mistake?
>
> Marco.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Marco Piraccini

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi Vladimir,
I attached the project (a simplified one) with the issue.

Thanks,

Marco.

On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:

> Hi Marco,
>
> To find out the issue, can you, please, send your project?
>
> Thanks,
> Vladimir
>
> Marco Piraccini wrote:
> > Hi guys,
> > We are trying to add a process timeout using onalarm handler on a
> > process scope. We want to set a timeout and then reply a fault when the
> > alarm is triggered. Of course, if the timeout does not trigger, we reply
> > on the same partner link the correct answer.
> > If we design that using the BPEL editor, the process is marked as not
> > valid and the message is:
> > "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of any
> > decision gate and have the same partner link".
> > We have the same behavior also using onMessage-Reply instead of
> > Receive-Reply.
> >
> > We are using GF2.1
> >
> > Is this correct, or are we making some mistake?
> >
> > Marco.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

TestOnAlarm.zip (10K) Download Attachment
Vladimir Yaroslavskiy

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi Marco,

Certainly it is a bug, I'll fix it.

Thank you,
Vladimir

Marco Piraccini wrote:

> Hi Vladimir,
> I attached the project (a simplified one) with the issue.
>
> Thanks,
>
> Marco.
>
> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>> Hi Marco,
>>
>> To find out the issue, can you, please, send your project?
>>
>> Thanks,
>> Vladimir
>>
>> Marco Piraccini wrote:
>>> Hi guys,
>>> We are trying to add a process timeout using onalarm handler on a
>>> process scope. We want to set a timeout and then reply a fault when the
>>> alarm is triggered. Of course, if the timeout does not trigger, we reply
>>> on the same partner link the correct answer.
>>> If we design that using the BPEL editor, the process is marked as not
>>> valid and the message is:
>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of any
>>> decision gate and have the same partner link".
>>> We have the same behavior also using onMessage-Reply instead of
>>> Receive-Reply.
>>>
>>> We are using GF2.1
>>>
>>> Is this correct, or are we making some mistake?
>>>
>>> Marco.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Marco Piraccini

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi Vladimir,
Thank you very much for the quick response.
When do you plan to release the fix? Since we have to use this feature  
on our project, we have to know the status of the issue. I have to add  
an issue on the bugtracking system?

One more point: do you know any workaround for that?

Thanks,
Marco

Quoting Vladimir Yaroslavskiy <[hidden email]>:

> Hi Marco,
>
> Certainly it is a bug, I'll fix it.
>
> Thank you,
> Vladimir
>
> Marco Piraccini wrote:
>> Hi Vladimir, I attached the project (a simplified one) with the issue.
>>
>> Thanks, Marco.
>>
>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>>> Hi Marco,
>>>
>>> To find out the issue, can you, please, send your project?
>>>
>>> Thanks,
>>> Vladimir
>>>
>>> Marco Piraccini wrote:
>>>> Hi guys, We are trying to add a process timeout using onalarm handler on a
>>>> process scope. We want to set a timeout and then reply a fault when the
>>>> alarm is triggered. Of course, if the timeout does not trigger, we reply
>>>> on the same partner link the correct answer. If we design that  
>>>> using the BPEL editor, the process is marked as not
>>>> valid and the message is:
>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of any
>>>> decision gate and have the same partner link".
>>>> We have the same behavior also using onMessage-Reply instead of
>>>> Receive-Reply.
>>>>
>>>> We are using GF2.1
>>>>
>>>> Is this correct, or are we making some mistake?
>>>>
>>>> Marco.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Vladimir Yaroslavskiy

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi,

I've already filed an issue:
http://www.netbeans.org/issues/show_bug.cgi?id=173962

This fix will be in GF ESB v.2.2.

Workaround: you can allow to build with validation errors:
in project properties (invoke popup menu on the project node
and call "Properties") in "General" section check option
"Allow build and deploy with errors".

Let me know if you have questions/problems.

Thanks,
Vladimir

[hidden email] wrote:

> Hi Vladimir,
> Thank you very much for the quick response.
> When do you plan to release the fix? Since we have to use this feature
> on our project, we have to know the status of the issue. I have to add
> an issue on the bugtracking system?
>
> One more point: do you know any workaround for that?
>
> Thanks,
> Marco
>
> Quoting Vladimir Yaroslavskiy <[hidden email]>:
>
>> Hi Marco,
>>
>> Certainly it is a bug, I'll fix it.
>>
>> Thank you,
>> Vladimir
>>
>> Marco Piraccini wrote:
>>> Hi Vladimir, I attached the project (a simplified one) with the issue.
>>>
>>> Thanks, Marco.
>>>
>>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>>>> Hi Marco,
>>>>
>>>> To find out the issue, can you, please, send your project?
>>>>
>>>> Thanks,
>>>> Vladimir
>>>>
>>>> Marco Piraccini wrote:
>>>>> Hi guys, We are trying to add a process timeout using onalarm
>>>>> handler on a
>>>>> process scope. We want to set a timeout and then reply a fault when
>>>>> the
>>>>> alarm is triggered. Of course, if the timeout does not trigger, we
>>>>> reply
>>>>> on the same partner link the correct answer. If we design that  
>>>>> using the BPEL editor, the process is marked as not
>>>>> valid and the message is:
>>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part of
>>>>> any
>>>>> decision gate and have the same partner link".
>>>>> We have the same behavior also using onMessage-Reply instead of
>>>>> Receive-Reply.
>>>>>
>>>>> We are using GF2.1
>>>>>
>>>>> Is this correct, or are we making some mistake?
>>>>>
>>>>> Marco.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Vladimir Yaroslavskiy

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
you can also switch off background validation:
on the same place uncheck "Allow background validation"

Note that you can run validation at any time,
just press "Validate XML" button (Alt+Shift+F9)
on the editor toolbar.

Vladimir Yaroslavskiy wrote:

> Hi,
>
> I've already filed an issue:
> http://www.netbeans.org/issues/show_bug.cgi?id=173962
>
> This fix will be in GF ESB v.2.2.
>
> Workaround: you can allow to build with validation errors:
> in project properties (invoke popup menu on the project node
> and call "Properties") in "General" section check option
> "Allow build and deploy with errors".
>
> Let me know if you have questions/problems.
>
> Thanks,
> Vladimir
>
> [hidden email] wrote:
>> Hi Vladimir,
>> Thank you very much for the quick response.
>> When do you plan to release the fix? Since we have to use this feature
>> on our project, we have to know the status of the issue. I have to add
>> an issue on the bugtracking system?
>>
>> One more point: do you know any workaround for that?
>>
>> Thanks,
>> Marco
>>
>> Quoting Vladimir Yaroslavskiy <[hidden email]>:
>>
>>> Hi Marco,
>>>
>>> Certainly it is a bug, I'll fix it.
>>>
>>> Thank you,
>>> Vladimir
>>>
>>> Marco Piraccini wrote:
>>>> Hi Vladimir, I attached the project (a simplified one) with the issue.
>>>>
>>>> Thanks, Marco.
>>>>
>>>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>>>>> Hi Marco,
>>>>>
>>>>> To find out the issue, can you, please, send your project?
>>>>>
>>>>> Thanks,
>>>>> Vladimir
>>>>>
>>>>> Marco Piraccini wrote:
>>>>>> Hi guys, We are trying to add a process timeout using onalarm
>>>>>> handler on a
>>>>>> process scope. We want to set a timeout and then reply a fault
>>>>>> when the
>>>>>> alarm is triggered. Of course, if the timeout does not trigger, we
>>>>>> reply
>>>>>> on the same partner link the correct answer. If we design that  
>>>>>> using the BPEL editor, the process is marked as not
>>>>>> valid and the message is:
>>>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part
>>>>>> of any
>>>>>> decision gate and have the same partner link".
>>>>>> We have the same behavior also using onMessage-Reply instead of
>>>>>> Receive-Reply.
>>>>>>
>>>>>> We are using GF2.1
>>>>>>
>>>>>> Is this correct, or are we making some mistake?
>>>>>>
>>>>>> Marco.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

SOLDEVILA Fabien

BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
In reply to this post by Vladimir Yaroslavskiy
Hello,

I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.

Has everyone have a solution for me ?

Regards

Fabien

***************************
Fabien Soldevila

Expert technique
Département Edition / Intégration - Pôle Intégration Agence de Mutualisation des Universités et Etablissements (Amue)
 
E-mail : [hidden email]
Web : http://www.amue.fr
Tel : 04 99 77 30 56
***************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

SOLDEVILA Fabien

RE: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
No solution for me .... Help ... :)

Regards

Fabien
 

-----Original Message-----
From: SOLDEVILA Fabien [mailto:[hidden email]]
Sent: Wednesday, October 07, 2009 5:56 PM
To: [hidden email]
Subject: BPEL - Mapper - Create Multi values node

Hello,

I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.

Has everyone have a solution for me ?

Regards

Fabien

***************************
Fabien Soldevila

Expert technique
Département Edition / Intégration - Pôle Intégration Agence de Mutualisation des Universités et Etablissements (Amue)
 
E-mail : [hidden email]
Web : http://www.amue.fr
Tel : 04 99 77 30 56
***************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Vitaly Bychkov

Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
Hi Fabien ,

What do you mean by "but it don't run"?
Do you have a problem on design side - e.g. you can't create nodes
OUT[0] OUT[1] ... by using mapper?
Or you have a problem on runtime  - your project can't be deployed
runned or provides unexpected result?

Please provide more details on your problem.
Also what GlassFish ESB version did you use?
Is there any errors in log files?


If you simply can't create additional nodes at design side then below is
the recept:

- You can directly specify arr[0].. arr[2]: right click props node in
mapper - choose "Add Predicate..."
The predicate editor appears - put numeric literal into central part and
join with the predicate node in the right tree...

Thank you,
Vitaly.


SOLDEVILA Fabien wrote:

> No solution for me .... Help ... :)
>
> Regards
>
> Fabien
>  
>
> -----Original Message-----
> From: SOLDEVILA Fabien [mailto:[hidden email]]
> Sent: Wednesday, October 07, 2009 5:56 PM
> To: [hidden email]
> Subject: BPEL - Mapper - Create Multi values node
>
> Hello,
>
> I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
> On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.
>
> Has everyone have a solution for me ?
>
> Regards
>
> Fabien
>
> ***************************
> Fabien Soldevila
>
> Expert technique
> Département Edition / Intégration - Pôle Intégration Agence de Mutualisation des Universités et Etablissements (Amue)
>  
> E-mail : [hidden email]
> Web : http://www.amue.fr
> Tel : 04 99 77 30 56
> ***************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Sergey Lunegov

Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
In reply to this post by SOLDEVILA Fabien
Please attach your project.
We'll take a look

Thanks,
Sergey


SOLDEVILA Fabien wrote:

> No solution for me .... Help ... :)
>
> Regards
>
> Fabien
>  
>
> -----Original Message-----
> From: SOLDEVILA Fabien [mailto:[hidden email]]
> Sent: Wednesday, October 07, 2009 5:56 PM
> To: [hidden email]
> Subject: BPEL - Mapper - Create Multi values node
>
> Hello,
>
> I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
> On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.
>
> Has everyone have a solution for me ?
>
> Regards
>
> Fabien
>
> ***************************
> Fabien Soldevila
>
> Expert technique
> Département Edition / Intégration - Pôle Intégration Agence de Mutualisation des Universités et Etablissements (Amue)
>  
> E-mail : [hidden email]
> Web : http://www.amue.fr
> Tel : 04 99 77 30 56
> ***************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Marco Piraccini

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Vladimir Yaroslavskiy
Hi Vladimir,
It worked (build and deploy). The problem is that the onAlarm handler
seems not to work at all at runtime. For example, in my sample process,
I have an onalarm declared on the scope:
                <onAlarm>
                    <for>'P0Y0M0DT0H0M20.0S'</for>

                (...)

This should trigger after 20 sec, but it never wake up...I can send you
my test to reproduce the issue.

Marco.

On Wed, 2009-10-07 at 16:51 +0400, Vladimir Yaroslavskiy wrote:

> you can also switch off background validation:
> on the same place uncheck "Allow background validation"
>
> Note that you can run validation at any time,
> just press "Validate XML" button (Alt+Shift+F9)
> on the editor toolbar.
>
> Vladimir Yaroslavskiy wrote:
> > Hi,
> >
> > I've already filed an issue:
> > http://www.netbeans.org/issues/show_bug.cgi?id=173962
> >
> > This fix will be in GF ESB v.2.2.
> >
> > Workaround: you can allow to build with validation errors:
> > in project properties (invoke popup menu on the project node
> > and call "Properties") in "General" section check option
> > "Allow build and deploy with errors".
> >
> > Let me know if you have questions/problems.
> >
> > Thanks,
> > Vladimir
> >
> > [hidden email] wrote:
> >> Hi Vladimir,
> >> Thank you very much for the quick response.
> >> When do you plan to release the fix? Since we have to use this feature
> >> on our project, we have to know the status of the issue. I have to add
> >> an issue on the bugtracking system?
> >>
> >> One more point: do you know any workaround for that?
> >>
> >> Thanks,
> >> Marco
> >>
> >> Quoting Vladimir Yaroslavskiy <[hidden email]>:
> >>
> >>> Hi Marco,
> >>>
> >>> Certainly it is a bug, I'll fix it.
> >>>
> >>> Thank you,
> >>> Vladimir
> >>>
> >>> Marco Piraccini wrote:
> >>>> Hi Vladimir, I attached the project (a simplified one) with the issue.
> >>>>
> >>>> Thanks, Marco.
> >>>>
> >>>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
> >>>>> Hi Marco,
> >>>>>
> >>>>> To find out the issue, can you, please, send your project?
> >>>>>
> >>>>> Thanks,
> >>>>> Vladimir
> >>>>>
> >>>>> Marco Piraccini wrote:
> >>>>>> Hi guys, We are trying to add a process timeout using onalarm
> >>>>>> handler on a
> >>>>>> process scope. We want to set a timeout and then reply a fault
> >>>>>> when the
> >>>>>> alarm is triggered. Of course, if the timeout does not trigger, we
> >>>>>> reply
> >>>>>> on the same partner link the correct answer. If we design that  
> >>>>>> using the BPEL editor, the process is marked as not
> >>>>>> valid and the message is:
> >>>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part
> >>>>>> of any
> >>>>>> decision gate and have the same partner link".
> >>>>>> We have the same behavior also using onMessage-Reply instead of
> >>>>>> Receive-Reply.
> >>>>>>
> >>>>>> We are using GF2.1
> >>>>>>
> >>>>>> Is this correct, or are we making some mistake?
> >>>>>>
> >>>>>> Marco.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Vladimir Yaroslavskiy

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Runtime team,
Can anybody look at runtime issue with onalarm?

Marco Piraccini wrote:

> Hi Vladimir,
> It worked (build and deploy). The problem is that the onAlarm handler
> seems not to work at all at runtime. For example, in my sample process,
> I have an onalarm declared on the scope:
>                 <onAlarm>
>                     <for>'P0Y0M0DT0H0M20.0S'</for>
>
> (...)
>
> This should trigger after 20 sec, but it never wake up...I can send you
> my test to reproduce the issue.
>
> Marco.
>
> On Wed, 2009-10-07 at 16:51 +0400, Vladimir Yaroslavskiy wrote:
>> you can also switch off background validation:
>> on the same place uncheck "Allow background validation"
>>
>> Note that you can run validation at any time,
>> just press "Validate XML" button (Alt+Shift+F9)
>> on the editor toolbar.
>>
>> Vladimir Yaroslavskiy wrote:
>>> Hi,
>>>
>>> I've already filed an issue:
>>> http://www.netbeans.org/issues/show_bug.cgi?id=173962
>>>
>>> This fix will be in GF ESB v.2.2.
>>>
>>> Workaround: you can allow to build with validation errors:
>>> in project properties (invoke popup menu on the project node
>>> and call "Properties") in "General" section check option
>>> "Allow build and deploy with errors".
>>>
>>> Let me know if you have questions/problems.
>>>
>>> Thanks,
>>> Vladimir
>>>
>>> [hidden email] wrote:
>>>> Hi Vladimir,
>>>> Thank you very much for the quick response.
>>>> When do you plan to release the fix? Since we have to use this feature
>>>> on our project, we have to know the status of the issue. I have to add
>>>> an issue on the bugtracking system?
>>>>
>>>> One more point: do you know any workaround for that?
>>>>
>>>> Thanks,
>>>> Marco
>>>>
>>>> Quoting Vladimir Yaroslavskiy <[hidden email]>:
>>>>
>>>>> Hi Marco,
>>>>>
>>>>> Certainly it is a bug, I'll fix it.
>>>>>
>>>>> Thank you,
>>>>> Vladimir
>>>>>
>>>>> Marco Piraccini wrote:
>>>>>> Hi Vladimir, I attached the project (a simplified one) with the issue.
>>>>>>
>>>>>> Thanks, Marco.
>>>>>>
>>>>>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>>>>>>> Hi Marco,
>>>>>>>
>>>>>>> To find out the issue, can you, please, send your project?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Vladimir
>>>>>>>
>>>>>>> Marco Piraccini wrote:
>>>>>>>> Hi guys, We are trying to add a process timeout using onalarm
>>>>>>>> handler on a
>>>>>>>> process scope. We want to set a timeout and then reply a fault
>>>>>>>> when the
>>>>>>>> alarm is triggered. Of course, if the timeout does not trigger, we
>>>>>>>> reply
>>>>>>>> on the same partner link the correct answer. If we design that  
>>>>>>>> using the BPEL editor, the process is marked as not
>>>>>>>> valid and the message is:
>>>>>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part
>>>>>>>> of any
>>>>>>>> decision gate and have the same partner link".
>>>>>>>> We have the same behavior also using onMessage-Reply instead of
>>>>>>>> Receive-Reply.
>>>>>>>>
>>>>>>>> We are using GF2.1
>>>>>>>>
>>>>>>>> Is this correct, or are we making some mistake?
>>>>>>>>
>>>>>>>> Marco.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

SOLDEVILA Fabien

RE: Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
In reply to this post by Sergey Lunegov
Hello Sergey, Vitaly,

Thanks for your answers.
On attachement, a simple BPEL project to explain my needs.

This projet read a file corresponding to XML schema schema_IN.xsd. The element element1_3 is a sequence. There is an exemple for this file on the project (schema_IN.xml).
I want to write a file (schema_OUT.xml) corresponding to XML schema schema_OUT.xsd. On this schema, the element elt1_3 is a sequence. I want to do a for each to assign each node of the sequence. I've try to use predicate on source panel of the mapper and on target panel of the mapper.

When I test the project I have this error :
....
Caused by: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath $Write_File_IN.part1/ns1:elt1_3[position() = $ForEach1Counter]/ns1:elt1_3_1
; JXPath can only create a path if it uses exclusively the child:: and attribute:: axes and has no context-dependent predicates
....

Plus, on the design BPEL mode, I have a warning : WARNING: Currently the Sun BPEL SE does not support the operation "position()".
My BPEL engine version is 2.7.0 - Build number 090919. Net Beans IDE 6.5.1.

I think that i can't create a new child of the sequence with a predicate.

Thanks in advance for your answers

Regards

Fabien



-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: Thursday, October 08, 2009 4:46 PM
To: [hidden email]
Subject: Re: BPEL - Mapper - Create Multi values node

Please attach your project.
We'll take a look

Thanks,
Sergey


SOLDEVILA Fabien wrote:

> No solution for me .... Help ... :)
>
> Regards
>
> Fabien
>  
>
> -----Original Message-----
> From: SOLDEVILA Fabien [mailto:[hidden email]]
> Sent: Wednesday, October 07, 2009 5:56 PM
> To: [hidden email]
> Subject: BPEL - Mapper - Create Multi values node
>
> Hello,
>
> I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
> On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.
>
> Has everyone have a solution for me ?
>
> Regards
>
> Fabien
>
> ***************************
> Fabien Soldevila
>
> Expert technique
> Département Edition / Intégration - Pôle Intégration Agence de
> Mutualisation des Universités et Etablissements (Amue)
>  
> E-mail : [hidden email]
> Web : http://www.amue.fr
> Tel : 04 99 77 30 56
> ***************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Test_Assign_Sequence_BP.zip (38K) Download Attachment
SOLDEVILA Fabien

RE: RE: Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
Hello again,

I've just read again the mail of Vitaly :
-------------
If you simply can't create additional nodes at design side then below is the recept:

- You can directly specify arr[0].. arr[2]: right click props node in mapper - choose "Add Predicate..."
The predicate editor appears - put numeric literal into central part and join with the predicate node in the right tree...
-------------

And, I've realise that on my target predicate I have used the method : position()==foreachcounter --> predicate.
If I use foreachcounter --> predicate it's ok, the childs nodes are create on my out file.

Thanks a lot for your help

Best regards

Fabien
--------
Happy




-----Original Message-----
From: SOLDEVILA Fabien [mailto:[hidden email]]
Sent: Friday, October 09, 2009 10:34 AM
To: [hidden email]
Subject: RE: Re: BPEL - Mapper - Create Multi values node

Hello Sergey, Vitaly,

Thanks for your answers.
On attachement, a simple BPEL project to explain my needs.

This projet read a file corresponding to XML schema schema_IN.xsd. The element element1_3 is a sequence. There is an exemple for this file on the project (schema_IN.xml).
I want to write a file (schema_OUT.xml) corresponding to XML schema schema_OUT.xsd. On this schema, the element elt1_3 is a sequence. I want to do a for each to assign each node of the sequence. I've try to use predicate on source panel of the mapper and on target panel of the mapper.

When I test the project I have this error :
....
Caused by: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath $Write_File_IN.part1/ns1:elt1_3[position() = $ForEach1Counter]/ns1:elt1_3_1 ; JXPath can only create a path if it uses exclusively the child:: and attribute:: axes and has no context-dependent predicates ....

Plus, on the design BPEL mode, I have a warning : WARNING: Currently the Sun BPEL SE does not support the operation "position()".
My BPEL engine version is 2.7.0 - Build number 090919. Net Beans IDE 6.5.1.

I think that i can't create a new child of the sequence with a predicate.

Thanks in advance for your answers

Regards

Fabien



-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: Thursday, October 08, 2009 4:46 PM
To: [hidden email]
Subject: Re: BPEL - Mapper - Create Multi values node

Please attach your project.
We'll take a look

Thanks,
Sergey


SOLDEVILA Fabien wrote:

> No solution for me .... Help ... :)
>
> Regards
>
> Fabien
>  
>
> -----Original Message-----
> From: SOLDEVILA Fabien [mailto:[hidden email]]
> Sent: Wednesday, October 07, 2009 5:56 PM
> To: [hidden email]
> Subject: BPEL - Mapper - Create Multi values node
>
> Hello,
>
> I've got a problem, I have a structured variable (IN) witch have a node containing multiple value. For exemple 5 values. With a for each activity, I can access on each value. No problem.
> On the destination panel of the mapper I have an other variable (OUT) with a node witch can containing multiple value. I want to create 5 child for this node on my For Each. I have try using a predicate on this destination panel but it don't run.
>
> Has everyone have a solution for me ?
>
> Regards
>
> Fabien
>
> ***************************
> Fabien Soldevila
>
> Expert technique
> Département Edition / Intégration - Pôle Intégration Agence de
> Mutualisation des Universités et Etablissements (Amue)
>  
> E-mail : [hidden email]
> Web : http://www.amue.fr
> Tel : 04 99 77 30 56
> ***************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kevan Moran

RE: RE: Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
Does the attached example do what you want.
I have simply created a predicate based on the loop counter on both the input and outputs and mapped them

ArrayCopy.rar
Fred van Engen

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Marco Piraccini
Hi Marco,

Marco Piraccini wrote:

> Hi Vladimir,
> It worked (build and deploy). The problem is that the onAlarm handler
> seems not to work at all at runtime. For example, in my sample process,
> I have an onalarm declared on the scope:
>                 <onAlarm>
>                     <for>'P0Y0M0DT0H0M20.0S'</for>
>
> (...)
>
> This should trigger after 20 sec, but it never wake up...I can send you
> my test to reproduce the issue

Do you have any suspended instances of the same BPEL process? Will the
OnAlarm handler be called after you send any unrelated message into BPELSE?

The reason I'm asking is because I have a similar problem and wonder if
your case has the same symptoms:

See
http://n2.nabble.com/OnAlarm-on-Pick-activity-stops-working-td3828149.html#a3840881


Regards,

Fred.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

srferron

RE: RE: Re: BPEL - Mapper - Create Multi values node

Reply Threaded More More options
Print post
Permalink
In reply to this post by Kevan Moran
Hi, Im having the same problem, i execute the example and it works, but i need to do it with an array of strings instead of the list of strings that is used on the example.

Please, Could you tell me how i can do it?




Kevan Moran wrote:
Does the attached example do what you want.
I have simply created a predicate based on the loop counter on both the input and outputs and mapped them

ArrayCopy.rar
Murali Pottlapelli

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Marco Piraccini
Some javascript/style in this post has been disabled (why?)
Hi Marco,
"OnAlarm" works with no issue, I have tested it using the project attached.

Does it work for you? Is it environment issue? or user error?

If you still have problem, please file a bug with test case and steps to reproduce. I will investigate the issue.

Regards
Murali



Marco Piraccini wrote:
Hi Vladimir,
It worked (build and deploy). The problem is that the onAlarm handler
seems not to work at all at runtime. For example, in my sample process,
I have an onalarm declared on the scope:
                <onAlarm>
                    <for>'P0Y0M0DT0H0M20.0S'</for>

		(...)

This should trigger after 20 sec, but it never wake up...I can send you
my test to reproduce the issue.

Marco.

On Wed, 2009-10-07 at 16:51 +0400, Vladimir Yaroslavskiy wrote:
  
you can also switch off background validation:
on the same place uncheck "Allow background validation"

Note that you can run validation at any time,
just press "Validate XML" button (Alt+Shift+F9)
on the editor toolbar.

Vladimir Yaroslavskiy wrote:
    
Hi,

I've already filed an issue:
http://www.netbeans.org/issues/show_bug.cgi?id=173962

This fix will be in GF ESB v.2.2.

Workaround: you can allow to build with validation errors:
in project properties (invoke popup menu on the project node
and call "Properties") in "General" section check option
"Allow build and deploy with errors".

Let me know if you have questions/problems.

Thanks,
Vladimir

[hidden email] wrote:
      
Hi Vladimir,
Thank you very much for the quick response.
When do you plan to release the fix? Since we have to use this feature 
on our project, we have to know the status of the issue. I have to add 
an issue on the bugtracking system?

One more point: do you know any workaround for that?

Thanks,
Marco

Quoting Vladimir Yaroslavskiy [hidden email]:

        
Hi Marco,

Certainly it is a bug, I'll fix it.

Thank you,
Vladimir

Marco Piraccini wrote:
          
Hi Vladimir, I attached the project (a simplified one) with the issue.

Thanks, Marco.

On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
            
Hi Marco,

To find out the issue, can you, please, send your project?

Thanks,
Vladimir

Marco Piraccini wrote:
              
Hi guys, We are trying to add a process timeout using onalarm 
handler on a
process scope. We want to set a timeout and then reply a fault 
when the
alarm is triggered. Of course, if the timeout does not trigger, we 
reply
on the same partner link the correct answer. If we design that  
using the BPEL editor, the process is marked as not
valid and the message is:
"Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a part 
of any
decision gate and have the same partner link".
We have the same behavior also using onMessage-Reply instead of
Receive-Reply.

We are using GF2.1

Is this correct, or are we making some mistake?

Marco.
                
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


    


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

TestOnAlarm.zip (42K) Download Attachment
Marco Piraccini

Re: OnAlarm and BPEL validation problem

Reply Threaded More More options
Print post
Permalink
Hi Murali,

In attachment a project that reproduces the issue.
The goal is to reply if the process doesn't answer in 5 seconds (the  
process is blocked in a while(true) loop), but it seems that the  
onAlarm event is never fired.
I'll check also your test case to see if it works for me.

Marco.

Quoting Murali Pottlapelli <[hidden email]>:

> Hi Marco,
> "OnAlarm" works with no issue, I have tested it using the project attached.
>
> Does it work for you? Is it environment issue? or user error?
>
> If you still have problem, please file a bug with test case and steps
> to reproduce. I will investigate the issue.
>
> Regards
> Murali
>
>
>
> Marco Piraccini wrote:
>> Hi Vladimir,
>> It worked (build and deploy). The problem is that the onAlarm handler
>> seems not to work at all at runtime. For example, in my sample process,
>> I have an onalarm declared on the scope:
>>                <onAlarm>
>>                    <for>'P0Y0M0DT0H0M20.0S'</for>
>>
>> (...)
>>
>> This should trigger after 20 sec, but it never wake up...I can send you
>> my test to reproduce the issue.
>>
>> Marco.
>>
>> On Wed, 2009-10-07 at 16:51 +0400, Vladimir Yaroslavskiy wrote:
>>
>>> you can also switch off background validation:
>>> on the same place uncheck "Allow background validation"
>>>
>>> Note that you can run validation at any time,
>>> just press "Validate XML" button (Alt+Shift+F9)
>>> on the editor toolbar.
>>>
>>> Vladimir Yaroslavskiy wrote:
>>>
>>>> Hi,
>>>>
>>>> I've already filed an issue:
>>>> http://www.netbeans.org/issues/show_bug.cgi?id=173962
>>>>
>>>> This fix will be in GF ESB v.2.2.
>>>>
>>>> Workaround: you can allow to build with validation errors:
>>>> in project properties (invoke popup menu on the project node
>>>> and call "Properties") in "General" section check option
>>>> "Allow build and deploy with errors".
>>>>
>>>> Let me know if you have questions/problems.
>>>>
>>>> Thanks,
>>>> Vladimir
>>>>
>>>> [hidden email] wrote:
>>>>
>>>>> Hi Vladimir,
>>>>> Thank you very much for the quick response.
>>>>> When do you plan to release the fix? Since we have to use this  
>>>>> feature on our project, we have to know the status of the issue.  
>>>>>  I have to add an issue on the bugtracking system?
>>>>>
>>>>> One more point: do you know any workaround for that?
>>>>>
>>>>> Thanks,
>>>>> Marco
>>>>>
>>>>> Quoting Vladimir Yaroslavskiy <[hidden email]>:
>>>>>
>>>>>
>>>>>> Hi Marco,
>>>>>>
>>>>>> Certainly it is a bug, I'll fix it.
>>>>>>
>>>>>> Thank you,
>>>>>> Vladimir
>>>>>>
>>>>>> Marco Piraccini wrote:
>>>>>>
>>>>>>> Hi Vladimir, I attached the project (a simplified one) with the issue.
>>>>>>>
>>>>>>> Thanks, Marco.
>>>>>>>
>>>>>>> On Wed, 2009-10-07 at 14:21 +0400, Vladimir Yaroslavskiy wrote:
>>>>>>>
>>>>>>>> Hi Marco,
>>>>>>>>
>>>>>>>> To find out the issue, can you, please, send your project?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Vladimir
>>>>>>>>
>>>>>>>> Marco Piraccini wrote:
>>>>>>>>
>>>>>>>>> Hi guys, We are trying to add a process timeout using  
>>>>>>>>> onalarm handler on a
>>>>>>>>> process scope. We want to set a timeout and then reply a  
>>>>>>>>> fault when the
>>>>>>>>> alarm is triggered. Of course, if the timeout does not  
>>>>>>>>> trigger, we reply
>>>>>>>>> on the same partner link the correct answer. If we design  
>>>>>>>>> that  using the BPEL editor, the process is marked as not
>>>>>>>>> valid and the message is:
>>>>>>>>> "Two reply activites "ReplyOnAlarm" and "ReplyOk" are not a  
>>>>>>>>> part of any
>>>>>>>>> decision gate and have the same partner link".
>>>>>>>>> We have the same behavior also using onMessage-Reply instead of
>>>>>>>>> Receive-Reply.
>>>>>>>>>
>>>>>>>>> We are using GF2.1
>>>>>>>>>
>>>>>>>>> Is this correct, or are we making some mistake?
>>>>>>>>>
>>>>>>>>> Marco.
>>>>>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

TestOnAlarm.zip (28K) Download Attachment
1 2