You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Denis Weerasiri <dd...@gmail.com> on 2011/10/14 08:12:26 UTC

not works in

Hi folks,
I'm getting the following compilation error for the below code. I checked
the BPEL spec and seems my code is compliant with BPEL 2.0.

Invalid content was found starting with element 'bpel:onAlarm'. One of '{"
http://docs.oasis-open.org/wsbpel/2.0/process/executable":documentation,
WC[##other:"http://docs.oasis-open.org/wsbpel/2.0/process/executable"], "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":targets, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":sources, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":onMessage}' is
expected.

<bpel:pick name="Pick">
     <bpel:onAlarm>
           <bpel:for><![CDATA['PT5M']]></bpel:for>
                <bpel:scope>
                       <bpel:sequence>
                            <bpel:invoke/>
                        </bpel:sequence>
                </bpel:scope>
     </bpel:onAlarm>

      <bpel:onAlarm/>
</bpel:pick name="Pick">

Any help appreciated.
-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
*
*
<http://wso2.com/>**** <http://wso2.com/>*site: **
https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
*blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>
*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>

Re: not works in

Posted by Denis Weerasiri <dd...@gmail.com>.
On Fri, Oct 14, 2011 at 1:22 PM, Waruna Ranasinghe <wa...@gmail.com>wrote:

> In a pick, you should at-least have one "onMessage"
>
Even though I had at-least onMessage it gives me this error. I'll look into
the impl of BpelObjectFactory$BOMSAXErrorHandler further.

error is [2011-10-14 11:13:21,072] ERROR -
BpelObjectFactory$BOMSAXErrorHandler -
null:file:///opt/temp-svn/apache/ode/bpel/WSMonitor-13/WSMonitor.bpel:249:51:cvc-complex-type.2.4.a:
Invalid content was found starting with element 'bpel:onAlarm'. One of '{"
http://docs.oasis-open.org/wsbpel/2.0/process/executable":documentation,
WC[##other:"http://docs.oasis-open.org/wsbpel/2.0/process/executable"], "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":targets, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":sources, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":onMessage}' is
expected.

>
> Thanks,
> Waruna
>
> On 14 October 2011 11:42, Denis Weerasiri <dd...@gmail.com> wrote:
>
> > Hi folks,
> > I'm getting the following compilation error for the below code. I checked
> > the BPEL spec and seems my code is compliant with BPEL 2.0.
> >
> > Invalid content was found starting with element 'bpel:onAlarm'. One of
> '{"
> > http://docs.oasis-open.org/wsbpel/2.0/process/executable":documentation,
> > WC[##other:"http://docs.oasis-open.org/wsbpel/2.0/process/executable"],
> "
> > http://docs.oasis-open.org/wsbpel/2.0/process/executable":targets, "
> > http://docs.oasis-open.org/wsbpel/2.0/process/executable":sources, "
> > http://docs.oasis-open.org/wsbpel/2.0/process/executable":onMessage}' is
> > expected.
> >
> > <bpel:pick name="Pick">
> >     <bpel:onAlarm>
> >           <bpel:for><![CDATA['PT5M']]></bpel:for>
> >                <bpel:scope>
> >                       <bpel:sequence>
> >                            <bpel:invoke/>
> >                        </bpel:sequence>
> >                </bpel:scope>
> >     </bpel:onAlarm>
> >
> >      <bpel:onAlarm/>
> > </bpel:pick name="Pick">
> >
> > Any help appreciated.
> > --
> > Thanks,
> > Denis
> > ----------------------------------------------------------
> > *Denis Weerasiri*
> > *
> > *
> > <http://wso2.com/>**** <http://wso2.com/>*site: **
> > https://sites.google.com/site/ddweerasiri/*<
> > https://sites.google.com/site/ddweerasiri/>
> > *blog: **http://ddweerasiri.blogspot.com* <
> > http://ddweerasiri.blogspot.com/>
> > *
> > twitter: **http://twitter.com/ddweerasiri* <
> http://twitter.com/ddweerasiri
> > >*
> > linked-in: **http://lk.linkedin.com/in/ddweerasiri*<
> > http://lk.linkedin.com/in/ddweerasiri>
> >
>
>
>
> --
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
>
> mob: 0724318285
> blog: http://warunapw.blogspot.com
> twitter: http://twitter.com/warunapww
> http://lk.linkedin.com/in/waruna
> www.facebook.com/waruna.ranasinghe
>



-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
*
*
 <http://wso2.com/>**** <http://wso2.com/>*site: **
https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
*blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>
*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>

Re: not works in

Posted by Waruna Ranasinghe <wa...@gmail.com>.
In a pick, you should at-least have one "onMessage"

Thanks,
Waruna

On 14 October 2011 11:42, Denis Weerasiri <dd...@gmail.com> wrote:

> Hi folks,
> I'm getting the following compilation error for the below code. I checked
> the BPEL spec and seems my code is compliant with BPEL 2.0.
>
> Invalid content was found starting with element 'bpel:onAlarm'. One of '{"
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":documentation,
> WC[##other:"http://docs.oasis-open.org/wsbpel/2.0/process/executable"], "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":targets, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":sources, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":onMessage}' is
> expected.
>
> <bpel:pick name="Pick">
>     <bpel:onAlarm>
>           <bpel:for><![CDATA['PT5M']]></bpel:for>
>                <bpel:scope>
>                       <bpel:sequence>
>                            <bpel:invoke/>
>                        </bpel:sequence>
>                </bpel:scope>
>     </bpel:onAlarm>
>
>      <bpel:onAlarm/>
> </bpel:pick name="Pick">
>
> Any help appreciated.
> --
> Thanks,
> Denis
> ----------------------------------------------------------
> *Denis Weerasiri*
> *
> *
> <http://wso2.com/>**** <http://wso2.com/>*site: **
> https://sites.google.com/site/ddweerasiri/*<
> https://sites.google.com/site/ddweerasiri/>
> *blog: **http://ddweerasiri.blogspot.com* <
> http://ddweerasiri.blogspot.com/>
> *
> twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri
> >*
> linked-in: **http://lk.linkedin.com/in/ddweerasiri*<
> http://lk.linkedin.com/in/ddweerasiri>
>



-- 
-----------------------------------------------------
Regards,
Waruna Ranasinghe

mob: 0724318285
blog: http://warunapw.blogspot.com
twitter: http://twitter.com/warunapww
http://lk.linkedin.com/in/waruna
www.facebook.com/waruna.ranasinghe