09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General Features of <strong>Advanced</strong> <strong>Queuing</strong><br />

END;<br />

subscriber => subscriber,<br />

rule => 'tab.user_data.orderregion = ''INTERNATIONAL'''<br />

transformation => 'OS.OE2XML');<br />

Create a separate expression specified for each attribute of the target type. This<br />

<br />

representation simplifies transformation mapping creation and management for<br />

individual attributes of the destination type. It is useful when the destination<br />

type has many attributes.<br />

/* first create the transformation without any transformation expression*/<br />

execute dbms_transform.create_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

from_schema => 'OE', from_type => 'order_typ',<br />

to_schema => 'WS', to_type => 'order_typ_sh');<br />

/* specify each attribute of the target type as a function of the source<br />

type*/<br />

execute dbms_transform.modify_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

attribute_number => 1,<br />

transformation => 'source.user_data.orderno');<br />

execute dbms_transform.modify_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

attribute_number => 1,<br />

transformation => 'source.user_data.status');<br />

execute dbms_transform.modify_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

attribute_number => 1,<br />

transformation => 'source.user_data.ordertype');<br />

execute dbms_transform.modify_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

attribute_number => 1,<br />

transformation => 'source.user_data.orderregion');<br />

execute dbms_transform.modify_transformation(<br />

schema => 'OE', name => 'OE2WS',<br />

attribute_number => 1,<br />

transformation =><br />

'WS.get_customer_info(source.user_data.custno)');<br />

execute dbms_transform.modify_transformation(<br />

8-10 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!