This isn't possible in BPEL 2.0 without using a separate process to hold the common code, which is probably too heavy-weight.
A lightweight approach might be to create C-like macros and use a preprocessor to transform your BPEL prior to deployment. XSLT comes to mind for the implementation. alex On Tue, May 6, 2008 at 8:21 AM, Nowakowski, Mateusz < [EMAIL PROTECTED]> wrote: > Is this possible to group activities and use such instruction groups > several times? I think about something similar to procedure of function > in any programming language. > > I have a piece of BPEL script and I need to insert it in to all my > global <faultHandlers> catch elements. > I'd like to reuse my own code. > > I cannot solve it by rethrowing faults, because I'm on the top of fault > handlers. > > -- > Regards > Mateusz Nowakowski >
