You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2008/11/11 01:24:45 UTC

svn commit: r712885 - /ode/trunk/extensions/e4x/README

Author: vanto
Date: Mon Nov 10 16:24:44 2008
New Revision: 712885

URL: http://svn.apache.org/viewvc?rev=712885&view=rev
Log:
typo fixed.

Modified:
    ode/trunk/extensions/e4x/README

Modified: ode/trunk/extensions/e4x/README
URL: http://svn.apache.org/viewvc/ode/trunk/extensions/e4x/README?rev=712885&r1=712884&r2=712885&view=diff
==============================================================================
--- ode/trunk/extensions/e4x/README (original)
+++ ode/trunk/extensions/e4x/README Mon Nov 10 16:24:44 2008
@@ -1 +1 @@
-=================================
  Apache ODE - JS/E4X Extension
=================================

This extension provides support for JavaScript/E4X expressions in BPEL
extension activities and/or BPEL extensible assign operations.

How to install
==============
    1.) Copy ode-extensions-e4x-*.jar and lib/* in ODE's class path and
    register the extension bundle by adding the following line to
    ODE's configuration file. See README.extensions for details.
    
    For ODE/Axis2: ode-axis2.properties
    ode-axis2.extension.bundles.runtime = org.apache.ode.extension.e4x.JSExtensionBundle
    
    For ODE/JBI: ode-jbi.properties
    ode-jbi.extension.bundles.runtime = org.apache.ode.extension.e4x.JSExtensionBundle
    
    2.) Start/restart ODE.

How to use
============
    1.) Declare the extension namespace in BPEL by adding the following snippet
    before the first activity.
    
    <bpel:extensions>
        <bpel:extension namespace="http://ode.apache.org/extens
 ions/js" 
                mustUnderstand="yes"/>
    </bpel:extensions>
    
    2a.) Use JS/E4X in <assign> activities:
    
    <assign name="e4x-assign">
        <extensionAssignOperation>
            <js:snippet>
                myVar.TestPart += ' World';
            </js:snippet>
        </extensionAssignOperation>
    </assign>
    
    2a.) Use JS/E4X in <extensionActivity> activities:
    
    <extensionActivity name="calculateDiscount">
        <js:snippet>
            if (goldRatio > 1.0 || silverRatio > 1.0) {
                throwFault('urn:myprocess', 'IllegalArgumentFault',   
                        'discount ratios must be <= 1.0');
            }
            if (customer.type == 'gold') {
                po.items.item.price *= goldRatio;
            } else if (customer.type = 'silver') {
                po.items.item.price *= silverRatio;
            } else if (customer.type = 'besteffort') {
                po.shippingMode = 'snailmail'
            }
      
   </js:snippet>
    </extensionActivity>
\ No newline at end of file
+=================================
  Apache ODE - JS/E4X Extension
=================================

This extension provides support for JavaScript/E4X expressions in BPEL
extension activities and/or BPEL extensible assign operations.

How to install
==============
    1.) Copy ode-extensions-e4x-*.jar and lib/* in ODE's class path and
    register the extension bundle by adding the following line to
    ODE's configuration file. See README.extensions for details.
    
    For ODE/Axis2: ode-axis2.properties
    ode-axis2.extension.bundles.runtime = org.apache.ode.extension.e4x.JSExtensionBundle
    
    For ODE/JBI: ode-jbi.properties
    ode-jbi.extension.bundles.runtime = org.apache.ode.extension.e4x.JSExtensionBundle
    
    2.) Start/restart ODE.

How to use
============
    1.) Declare the extension namespace in BPEL by adding the following snippet
    before the first activity.
    
    <bpel:extensions>
        <bpel:extension namespace="http://ode.apache.org/extens
 ions/js" 
                mustUnderstand="yes"/>
    </bpel:extensions>
    
    2a.) Use JS/E4X in <assign> activities:
    
    <assign name="e4x-assign">
        <extensionAssignOperation>
            <js:snippet>
                myVar.TestPart += ' World';
            </js:snippet>
        </extensionAssignOperation>
    </assign>
    
    2b.) Use JS/E4X in <extensionActivity> activities:
    
    <extensionActivity name="calculateDiscount">
        <js:snippet>
            if (goldRatio > 1.0 || silverRatio > 1.0) {
                throwFault('urn:myprocess', 'IllegalArgumentFault',   
                        'discount ratios must be <= 1.0');
            }
            if (customer.type == 'gold') {
                po.items.item.price *= goldRatio;
            } else if (customer.type = 'silver') {
                po.items.item.price *= silverRatio;
            } else if (customer.type = 'besteffort') {
                po.shippingMode = 'snailmail'
            }
      
   </js:snippet>
    </extensionActivity>
\ No newline at end of file