Author: vanto
Date: Mon Dec 31 10:27:49 2012
New Revision: 1427070
URL: http://svn.apache.org/viewvc?rev=1427070&view=rev
Log:
fix formatting.
Modified:
ode/site/trunk/content/extensions/external-variables.mdtext
Modified: ode/site/trunk/content/extensions/external-variables.mdtext
URL:
http://svn.apache.org/viewvc/ode/site/trunk/content/extensions/external-variables.mdtext?rev=1427070&r1=1427069&r2=1427070&view=diff
==============================================================================
--- ode/site/trunk/content/extensions/external-variables.mdtext (original)
+++ ode/site/trunk/content/extensions/external-variables.mdtext Mon Dec 31
10:27:49 2012
@@ -1,11 +1,13 @@
Title: External Variables
+Category: documentation
+
<a name="ExternalVariables-ExternalVariables"></a>
## External Variables
-
- * [Declaring External Variables in the Process
Definition](#ExternalVariables-DeclaringExternalVariablesintheProcessDefinition)
- * [Incomplete Keys](#ExternalVariables-IncompleteKeys)
- * [JDBC Mapping](#ExternalVariables-JDBCMapping)
- * [REST Mapping](#ExternalVariables-RESTMapping)
+
+* [Declaring External Variables in the Process
Definition](#ExternalVariables-DeclaringExternalVariablesintheProcessDefinition)
+* [Incomplete Keys](#ExternalVariables-IncompleteKeys)
+* [JDBC Mapping](#ExternalVariables-JDBCMapping)
+* [REST Mapping](#ExternalVariables-RESTMapping)
<a
name="ExternalVariables-DeclaringExternalVariablesintheProcessDefinition"></a>
### Declaring External Variables in the Process Definition
@@ -35,23 +37,20 @@ Finally, any external variables must be
Consider the following example:
-<DIV class="code panel" style="border-style: solid;border-width: 1px;"><DIV
class="codeHeader panelHeader" style="border-bottom-width:
1px;border-bottom-style: solid;"><B>process.bpel</B></DIV><DIV
class="codeContent panelContent">
- .
- .
- .
+<div class="caption">process.bpel</div>
+
+ :::xml
+ ...
<scope>
- <variables>
- <variable name="customer" element="myns:CustomerElement"
xvar:id="customer1" >
- <xvar:key-map key="customer-id">
- <expression>$order/customerid</expression>
- </xvar:key-map>
- </variables>
+ <variables>
+ <variable name="customer" element="myns:CustomerElement"
xvar:id="customer1" >
+ <xvar:key-map key="customer-id">
+ <expression>$order/customerid</expression>
+ </xvar:key-map>
+ </variable>
+ </variables>
</scope>
- .
- .
- .
-
-
+ ...
In the above, the "customer" variable is an external variable. The key for the
external variable is derived from the value of the `customerid` element in the
"order" variable. Note that the "order" variable must be declared in a scope
above the scope declaring the "customer" external variable, otherwise it would
not be possible to resolve the identify of the "customer" variable. In this
scenario, the external variable can be "read" even if it was never assigned to
in the process.