blob: e958f9d1163eb6769db0c77b556a7053eb235b3a [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>SMILA/Documentation/BPEL Workflow Processor - Eclipsepedia</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="generator" content="MediaWiki 1.23.2" />
<link rel="shortcut icon" href="http://wiki.eclipse.org/eclipse.org-common/themes/solstice/public/images/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="http://wiki.eclipse.org/opensearch_desc.php" title="Eclipsepedia (en)" />
<link rel="EditURI" type="application/rsd+xml" href="http://wiki.eclipse.org/api.php?action=rsd" />
<link rel="alternate" type="application/atom+xml" title="Eclipsepedia Atom feed" href="http://wiki.eclipse.org/index.php?title=Special:RecentChanges&amp;feed=atom" />
<link rel="stylesheet" href="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.ui.button&amp;only=styles&amp;skin=solstice&amp;*" />
<link rel="stylesheet" href="http://wiki.eclipse.org/skins/solstice/public/stylesheets/styles.min.css?303" media="screen, print" /><meta name="ResourceLoaderDynamicStyles" content="" />
<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: my_wiki:resourceloader:filter:minify-css:7:14ece53a42aa314864e5fd8c57f0d98f */</style>
<script src="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=solstice&amp;*"></script>
<script>if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"SMILA/Documentation/BPEL_Workflow_Processor","wgTitle":"SMILA/Documentation/BPEL Workflow Processor","wgCurRevisionId":366138,"wgRevisionId":366138,"wgArticleId":15165,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["SMILA"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"SMILA/Documentation/BPEL_Workflow_Processor","wgIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgWikiEditorEnabledModules":{"toolbar":false,"dialogs":false,"hidesig":true,"preview":false,"previewDialog":false,"publish":false},"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}"});
}</script><script>if(window.mw){
mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"editfont":"default","editondblclick":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":1,"extendwatchlist":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nickname":"","norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"rcdays":7,"rclimit":50,"rows":25,"showhiddencats":0,"shownumberswatching":1,"showtoolbar":1,"skin":"solstice","stubthreshold":0,"thumbsize":2,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":1,"watchdeletion":0,"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,
"useeditwarning":1,"prefershttps":1,"language":"en","variant-gan":"gan","variant-iu":"iu","variant-kk":"kk","variant-ku":"ku","variant-shi":"shi","variant-sr":"sr","variant-tg":"tg","variant-uz":"uz","variant-zh":"zh","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"variant":"en"});},{},{});mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"+\\","patrolToken":false,"watchToken":false});},{},{});
/* cache key: my_wiki:resourceloader:filter:minify-js:7:70d74423d3fc1e1c18fa9a1ff645a84a */
}</script>
<script>if(window.mw){
mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax"]);
}</script>
<style type="text/css">/*<![CDATA[*/
.source-xml {line-height: normal;}
.source-xml li, .source-xml pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for xml
* CSS class: source-xml, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.xml.source-xml .de1, .xml.source-xml .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.xml.source-xml {font-family:monospace;}
.xml.source-xml .imp {font-weight: bold; color: red;}
.xml.source-xml li, .xml.source-xml .li1 {font-weight: normal; vertical-align:top;}
.xml.source-xml .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.xml.source-xml .li2 {font-weight: bold; vertical-align:top;}
.xml.source-xml .es0 {color: #000099; font-weight: bold;}
.xml.source-xml .br0 {color: #66cc66;}
.xml.source-xml .sy0 {color: #66cc66;}
.xml.source-xml .st0 {color: #ff0000;}
.xml.source-xml .nu0 {color: #cc66cc;}
.xml.source-xml .sc-1 {color: #808080; font-style: italic;}
.xml.source-xml .sc0 {color: #00bbdd;}
.xml.source-xml .sc1 {color: #ddbb00;}
.xml.source-xml .sc2 {color: #339933;}
.xml.source-xml .sc3 {color: #009900;}
.xml.source-xml .re0 {color: #000066;}
.xml.source-xml .re1 {color: #000000; font-weight: bold;}
.xml.source-xml .re2 {color: #000000; font-weight: bold;}
.xml.source-xml .ln-xtra, .xml.source-xml li.ln-xtra, .xml.source-xml div.ln-xtra {background-color: #ffc;}
.xml.source-xml span.xtra { display:block; }
/*]]>*/
</style><style type="text/css">/*<![CDATA[*/
.source-javascript {line-height: normal;}
.source-javascript li, .source-javascript pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for javascript
* CSS class: source-javascript, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.javascript.source-javascript .de1, .javascript.source-javascript .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.javascript.source-javascript {font-family:monospace;}
.javascript.source-javascript .imp {font-weight: bold; color: red;}
.javascript.source-javascript li, .javascript.source-javascript .li1 {font-weight: normal; vertical-align:top;}
.javascript.source-javascript .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.javascript.source-javascript .li2 {font-weight: bold; vertical-align:top;}
.javascript.source-javascript .kw1 {color: #000066; font-weight: bold;}
.javascript.source-javascript .kw2 {color: #003366; font-weight: bold;}
.javascript.source-javascript .kw3 {color: #000066;}
.javascript.source-javascript .kw5 {color: #FF0000;}
.javascript.source-javascript .co1 {color: #006600; font-style: italic;}
.javascript.source-javascript .co2 {color: #009966; font-style: italic;}
.javascript.source-javascript .coMULTI {color: #006600; font-style: italic;}
.javascript.source-javascript .es0 {color: #000099; font-weight: bold;}
.javascript.source-javascript .br0 {color: #009900;}
.javascript.source-javascript .sy0 {color: #339933;}
.javascript.source-javascript .st0 {color: #3366CC;}
.javascript.source-javascript .nu0 {color: #CC0000;}
.javascript.source-javascript .me1 {color: #660066;}
.javascript.source-javascript .ln-xtra, .javascript.source-javascript li.ln-xtra, .javascript.source-javascript div.ln-xtra {background-color: #ffc;}
.javascript.source-javascript span.xtra { display:block; }
/*]]>*/
</style><meta name="viewport" content="width=device-width, initial-scale=1.0"></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-SMILA_Documentation_BPEL_Workflow_Processor skin-solstice action-view" id="solstice">
<a class="sr-only" href="BPEL_Workflow_Processor.html#content">Skip to main content</a>
<div class="thin-header">
<header role="banner" class="hidden-print noprint">
<div class="container-fluid">
<div id="row-logo-search">
<div id="header-left">
<div class="row">
<div class="hidden-xs col-sm-6 logo-container">
<a href="https://www.eclipse.org/" ><img class="logo-eclipse-default" src="http://wiki.eclipse.org/skins/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipsepedia"></a>
</div>
<div class="navbar col-sm-18 yamm" id="main-menu">
<div class="navbar-collapse collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a target="_self" href="https://eclipse.org/downloads/">Download</a></li>
<li><a target="_self" href="https://eclipse.org/users/">Getting Started </a></li>
<li><a target="_self" href="https://eclipse.org/membership/">Members</a></li>
<li><a target="_self" href="https://eclipse.org/projects/">Projects</a></li>
<li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="BPEL_Workflow_Processor.html#">Community <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="http://marketplace.eclipse.org">Marketplace</a></li><li><a href="http://events.eclipse.org">Events</a></li><li><a href="http://www.planeteclipse.org/">Planet Eclipse</a></li><li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li><li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li></ul></li><li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="BPEL_Workflow_Processor.html#">Participate <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li><li><a href="https://eclipse.org/forums/">Forums</a></li><li><a href="https://eclipse.org/mail/">Mailing Lists</a></li><li><a href="https://wiki.eclipse.org/">Wiki</a></li><li><a href="https://wiki.eclipse.org/IRC">IRC</a></li><li><a href="https://eclipse.org/contribute/">How to Contribute</a></li></ul></li><li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="BPEL_Workflow_Processor.html#">Working Groups <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="http://wiki.eclipse.org/Auto_IWG">Automotive</a></li><li><a href="http://iot.eclipse.org">Internet of Things</a></li><li><a href="http://locationtech.org">LocationTech</a></li><li><a href="http://lts.eclipse.org">Long-Term Support</a></li><li><a href="http://polarsys.org">PolarSys</a></li><li><a href="http://science.eclipse.org">Science</a></li><li><a href="http://openmdm.org">OpenMDM</a></li></ul></li><!-- More -->
<li class="dropdown hidden-xs"><a class="dropdown-toggle" data-toggle="dropdown">More<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<!-- Content container to add padding -->
<div class="yamm-content">
<div class="row">
<ul class="col-sm-8 list-unstyled"><li><p><strong>Community</strong></p></li><li><a href="http://marketplace.eclipse.org">Marketplace</a></li><li><a href="http://events.eclipse.org">Events</a></li><li><a href="http://www.planeteclipse.org/">Planet Eclipse</a></li><li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li><li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li></ul><ul class="col-sm-8 list-unstyled"><li><p><strong>Participate</strong></p></li><li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li><li><a href="https://eclipse.org/forums/">Forums</a></li><li><a href="https://eclipse.org/mail/">Mailing Lists</a></li><li><a href="https://wiki.eclipse.org/">Wiki</a></li><li><a href="https://wiki.eclipse.org/IRC">IRC</a></li><li><a href="https://eclipse.org/contribute/">How to Contribute</a></li></ul><ul class="col-sm-8 list-unstyled"><li><p><strong>Working Groups</strong></p></li><li><a href="http://wiki.eclipse.org/Auto_IWG">Automotive</a></li><li><a href="http://iot.eclipse.org">Internet of Things</a></li><li><a href="http://locationtech.org">LocationTech</a></li><li><a href="http://lts.eclipse.org">Long-Term Support</a></li><li><a href="http://polarsys.org">PolarSys</a></li><li><a href="http://science.eclipse.org">Science</a></li><li><a href="http://openmdm.org">OpenMDM</a></li></ul> </div>
</div>
</li>
</ul>
</li>
</ul>
</div>
<div class="navbar-header">
<button data-target="#navbar-collapse-1" data-toggle="collapse" class="navbar-toggle" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://www.eclipse.org/" class="visible-xs navbar-brand"><img class="logo-eclipse-default" src="http://wiki.eclipse.org/skins/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipsepedia" width="174"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<section class="defaut-breadcrumbs hidden-print noprint hidden-print clearfix" id="breadcrumb">
<div>
<ol class="breadcrumb">
<li><a href="https://www.eclipse.org/">Home</a></li>
<li><a href="http://wiki.eclipse.org/Main_Page">Eclipse Wiki</a></li>
<li class="active">SMILA/Documentation/BPEL Workflow Processor</li></ol>
</div>
</section>
</div>
<div class="toolbar-menu breadcrumbs-offset noprint hidden-print margin-bottom-0 clearfix">
<div class="col-md-24">
<ol class="breadcrumb" role="navigation">
<li id="pt-login">
<a href="http://wiki.eclipse.org/index.php?title=Special:UserLogin&amp;returnto=SMILA%2FDocumentation%2FBPEL+Workflow+Processor">
<i class="fa fa-sign-in fa-fw orange"></i> Log in </a>
</li>
</ul>
</div>
</div>
<main role="main" class="background-grey">
<div class="container-full padding-top-25">
<!-- content -->
<section id="content" class="mw-body container-full clearfix 0">
<div id="mw-js-message" style="display:none;"></div>
<!-- bodyContent -->
<div id="bodyContent">
<!-- jumpto -->
<div id="jump-to-nav" class="mw-jump">
Jump to: <a href="BPEL_Workflow_Processor.html#mw-head">navigation</a>,
<a href="BPEL_Workflow_Processor.html#p-search">search</a>
</div>
<!-- /jumpto -->
<!-- leftcol -->
<aside class="col-md-4 noprint hidden-print" id="leftcol">
<form class="input-group" role="form" id="form-eclipse-search" action="http://wiki.eclipse.org/index.php" id="searchform">
<input id="searchInput" class="search-query form-control" type="search" accesskey="f" title="Special:Search" placeholder="Search" name="search" value="">
<span class="input-group-btn">
<button value="search" id="mw-searchButton" type="submit" class="btn btn-default" title="Search the pages for this text" name="fulltext">
<i class="fa fa-search"></i>
</button>
</span>
</form>
<select class="form-control margin-top-10 margin-bottom-10 visible-xs visible-sm" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"><option class="fw-700 "><span class="fw-700">---Navigation---</span></option><option value="/Main_Page">Main Page</option><option value="/Eclipsepedia:Community_portal">Community portal</option><option value="/Eclipsepedia:Current_events">Current events</option><option value="/Special:RecentChanges">Recent changes</option><option value="/Special:Random">Random page</option><option value="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">Help</option></select><ul class="ul-left-nav fa-ul hidden-print leftnav hidden-xs hidden-sm"><li class="separator"><span class="separator">Navigation</span></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Main_Page" id="n-mainpage" title="Visit the main page [z]" accesskey="z">Main Page</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Eclipsepedia:Community_portal" id="n-portal" title="About the project, what you can do, where to find things">Community portal</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Eclipsepedia:Current_events" id="n-currentevents" title="Find background information on current events">Current events</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:RecentChanges" id="n-recentchanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:Random" id="n-randompage" title="Load a random page [x]" accesskey="x">Random page</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" id="n-help" title="The place to find out">Help</a></li></ul> <select class="form-control margin-top-10 margin-bottom-10 visible-xs visible-sm" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"><option class="fw-700 "><span class="fw-700">---Toolbox---</span></option><option value="/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;action=info">Page information</option><option value="/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;oldid=366138">Permanent link</option><option value="/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;printable=yes">Printable version</option><option value="/Special:SpecialPages">Special pages</option><option value="/Special:RecentChangesLinked/SMILA/Documentation/BPEL_Workflow_Processor">Related changes</option><option value="/Special:WhatLinksHere/SMILA/Documentation/BPEL_Workflow_Processor">What links here</option></select><ul class="ul-left-nav fa-ul hidden-print leftnav hidden-xs hidden-sm"><li class="separator"><span class="separator">Toolbox</span></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;action=info" id="t-info">Page information</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;oldid=366138" id="t-permalink" title="Permanent link to this revision of the page">Permanent link</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;printable=yes" id="t-print" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:SpecialPages" id="t-specialpages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:RecentChangesLinked/SMILA/Documentation/BPEL_Workflow_Processor" id="t-recentchangeslinked" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:WhatLinksHere/SMILA/Documentation/BPEL_Workflow_Processor" id="t-whatlinkshere" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li></ul> </aside>
<!-- /leftcol -->
<!-- mainContent -->
<div id="mainContent" class="col-md-20">
<ul class="nav nav-tabs noprint hidden-print" role="tablist">
<li id="ca-nstab-main" class="active"><a href="BPEL_Workflow_Processor.html" title="View the content page [c]" accesskey="c" tabindex="-1">Page</a></li>
<li id="ca-talk"><a href="http://wiki.eclipse.org/Talk:SMILA/Documentation/BPEL_Workflow_Processor" title="Discussion about the content page [t]" accesskey="t" tabindex="-1">Discussion</a></li>
<li id="ca-viewsource"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e" tabindex="-1">View source</a></li>
<li id="ca-history" class="collapsible"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;action=history" title="Past revisions of this page [h]" accesskey="h" tabindex="-1">History</a></li>
</ul> <div class="tab-content background-white">
<div id="tab-pane-main-page-content" class="tab-pane active">
<h1 id="firstHeading" class="firstHeading page-header">
<span dir="auto">SMILA/Documentation/BPEL Workflow Processor</span>
</h1>
<div id="main-page-content">
<!-- subtitle -->
<div id="contentSub" class="alert alert-small alert-warning"><span class="subpages">&lt; <a href="../../SMILA.html" title="SMILA">SMILA</a>&lrm; | <a href="../Documentation.1.html" title="SMILA/Documentation">Documentation</a></span></div>
<!-- /subtitle -->
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p>This page describes how to configure the SMILA BPEL workflow processor and how to call SMILA pipelets from BPEL processes. We do not assume any BPEL knowledge here, i.e. this page should contain everything to enable you to create at least simple BPEL processes for being used in SMILA.
</p>
<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="BPEL_Workflow_Processor.html#Basic_configuration"><span class="tocnumber">1</span> <span class="toctext">Basic configuration</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="BPEL_Workflow_Processor.html#Pipeline_definition_using_BPEL"><span class="tocnumber">2</span> <span class="toctext">Pipeline definition using BPEL</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="BPEL_Workflow_Processor.html#Pipelet_invocations"><span class="tocnumber">2.1</span> <span class="toctext">Pipelet invocations</span></a>
<ul>
<li class="toclevel-3 tocsection-4"><a href="BPEL_Workflow_Processor.html#Pipelet_invocations_in_BPEL_loops_.28forEach.29"><span class="tocnumber">2.1.1</span> <span class="toctext">Pipelet invocations in BPEL loops (forEach)</span></a></li>
<li class="toclevel-3 tocsection-5"><a href="BPEL_Workflow_Processor.html#Changing_the_number_of_records_in_a_pipeline"><span class="tocnumber">2.1.2</span> <span class="toctext">Changing the number of records in a pipeline</span></a></li>
</ul>
</li>
<li class="toclevel-2 tocsection-6"><a href="BPEL_Workflow_Processor.html#Pipeline_invocations"><span class="tocnumber">2.2</span> <span class="toctext">Pipeline invocations</span></a></li>
<li class="toclevel-2 tocsection-7"><a href="BPEL_Workflow_Processor.html#Advanced_process_definition"><span class="tocnumber">2.3</span> <span class="toctext">Advanced process definition</span></a></li>
</ul>
</li>
</ul>
</div>
<h2><span class="mw-headline" id="Basic_configuration">Basic configuration</span></h2>
<p>The BPEL WorkflowProcessor expects its configuration in <tt>configuration/org.eclipse.smila.processing.bpel</tt>. In this directory it expects a file named <tt>processor.properties</tt> that describes the main configuration. This file can contain the following SMILA specific properties:
</p>
<ul>
<li> <i>pipeline.dir</i> (default="pipelines"): The name of a folder below <tt>configuration/org.eclipse.smila.processing.bpel</tt> which contains the BPEL process files (together with all needed XSD and WSDL files) and the ODE specific <tt>deploy.xml</tt> file. See below for details.
</li>
<li> <i>pipeline.timeout</i> (default="300"): Maximum time in seconds allowed for processing a pipeline. If a pipeline invocation takes longer, it is aborted with an error. You may want to increase this value in case you expect longer processing times in your application (e.g. when analyzing very large documents).
</li>
<li> <i>record.filter</i> (default = none): A record filter defining the attributes and annotations that should be contained in BPEL workflow objects. If none is set, the workflow objects will contain only the record IDs to be processed. Add only those attributes and annotations to the filter that are actually used in any pipeline, because adding too many (and too huge) elements to the workflow object may decrease performance and use more memory. As the WorkflowProcessor uses the Blackboard to filter objects, you must define the filters in <tt>org.eclipse.smila.blackboard/RecordFilters.xml</tt>.
</li>
</ul>
<p>As the BPEL WorkflowProcessor is based on the <a rel="nofollow" class="external text" href="http://ode.apache.org">Apache ODE BPEL engine</a>, you can also add all ODE specific configuration properties to this file, just use the prefix <tt>ode.</tt> See ODE documentation for details. You have to add at least the configuration for a database connection which ODE needs for internal purposes (e.g. storing process definitions). For SMILA purposes usually an in-memory <a rel="nofollow" class="external text" href="http://derby.apache.org">Apache Derby</a> instance is completely sufficient, the required Derby library is includedn in SMILA. To use it, set the following properties:
</p>
<pre>
ode.db.mode=internal
ode.db.int.driver=org.apache.derby.jdbc.EmbeddedDriver
ode.db.int.jdbcurl=jdbc:derby:memory:odedb;create=true
ode.db.int.username=sa
ode.db.int.password=
</pre>
<p>If you want to use a "real" database you will have to make the JDBC driver available to bundle "org.apache.ode", and check the ODE documentation on how to prepare the database schema for ODE.
</p><p>Additional to the initial setup you may update existing pipelines if they are not predefined (system pipelines). You can do that with the <a rel="nofollow" class="external text" href="Processing/JSON_REST_API.html">REST API</a> or internally with the <a rel="nofollow" class="external text" href="http://build.eclipse.org/rt/smila/javadoc/current/org/eclipse/smila/processing/WorkflowProcessor.html">WorkflowProcessor</a>. Such pipelines are stored in the <a href="ObjectStore/Bundle_org.eclipse.smila.objectstore.html" title="SMILA/Documentation/ObjectStore/Bundle org.eclipse.smila.objectstore">ObjectStore service</a> in store <tt>bpel</tt>.
</p>
<h2><span class="mw-headline" id="Pipeline_definition_using_BPEL">Pipeline definition using BPEL</span></h2>
<p>The minimal BPEL process for SMILA pipelines looks like this:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">&quot;1.0&quot;</span> <span class="re0">encoding</span>=<span class="st0">&quot;utf-8&quot;</span> <span class="re2">?&gt;</span></span>
<span class="sc3"><span class="re1">&lt;process</span> <span class="re0">name</span>=<span class="st0">&quot;$PIPELINENAME&quot;</span> <span class="re0">targetNamespace</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span> </span>
<span class="sc3"> <span class="re0">xmlns</span>=<span class="st0">&quot;http://docs.oasis-open.org/wsbpel/2.0/process/executable&quot;</span></span>
<span class="sc3"> <span class="re0">xmlns:bpel</span>=<span class="st0">&quot;http://docs.oasis-open.org/wsbpel/2.0/process/executable&quot;</span></span>
<span class="sc3"> <span class="re0">xmlns:xsd</span>=<span class="st0">&quot;http://www.w3.org/2001/XMLSchema&quot;</span> </span>
<span class="sc3"> <span class="re0">xmlns:proc</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span> </span>
<span class="sc3"> <span class="re0">xmlns:rec</span>=<span class="st0">&quot;http://www.eclipse.org/smila/record&quot;</span><span class="re2">&gt;</span></span>
&#160;
<span class="sc3"><span class="re1">&lt;import</span> <span class="re0">location</span>=<span class="st0">&quot;processor.wsdl&quot;</span> <span class="re0">namespace</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span></span>
<span class="sc3"> <span class="re0">importType</span>=<span class="st0">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</span> <span class="re2">/&gt;</span></span>
&#160;
<span class="sc3"><span class="re1">&lt;partnerLinks<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;partnerLink</span> <span class="re0">name</span>=<span class="st0">&quot;Pipeline&quot;</span> <span class="re0">partnerLinkType</span>=<span class="st0">&quot;proc:ProcessorPartnerLinkType&quot;</span> </span>
<span class="sc3"> <span class="re0">myRole</span>=<span class="st0">&quot;service&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/partnerLinks<span class="re2">&gt;</span></span></span>
&#160;
<span class="sc3"><span class="re1">&lt;extensions<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;extension</span> <span class="re0">namespace</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span> <span class="re0">mustUnderstand</span>=<span class="st0">&quot;no&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/extensions<span class="re2">&gt;</span></span></span>
&#160;
<span class="sc3"><span class="re1">&lt;variables<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;variable</span> <span class="re0">name</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">messageType</span>=<span class="st0">&quot;proc:ProcessorMessage&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/variables<span class="re2">&gt;</span></span></span>
&#160;
<span class="sc3"><span class="re1">&lt;sequence<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;receive</span> <span class="re0">name</span>=<span class="st0">&quot;start&quot;</span> <span class="re0">partnerLink</span>=<span class="st0">&quot;Pipeline&quot;</span> <span class="re0">portType</span>=<span class="st0">&quot;proc:ProcessorPortType&quot;</span> </span>
<span class="sc3"> <span class="re0">operation</span>=<span class="st0">&quot;process&quot;</span> <span class="re0">variable</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">createInstance</span>=<span class="st0">&quot;yes&quot;</span> <span class="re2">/&gt;</span></span>
&#160;
<span class="sc-1">&lt;!-- pipelet invocations will be added here --&gt;</span>
&#160;
<span class="sc3"><span class="re1">&lt;reply</span> <span class="re0">name</span>=<span class="st0">&quot;end&quot;</span> <span class="re0">partnerLink</span>=<span class="st0">&quot;Pipeline&quot;</span> <span class="re0">portType</span>=<span class="st0">&quot;proc:ProcessorPortType&quot;</span> </span>
<span class="sc3"> <span class="re0">operation</span>=<span class="st0">&quot;process&quot;</span> <span class="re0">variable</span>=<span class="st0">&quot;request&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/sequence<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/process<span class="re2">&gt;</span></span></span></pre></div></div>
<p>To create a new pipeline:
</p>
<ol>
<li> Copy the above snippet to a new file with the suffix <tt>.bpel</tt> and saved it to the folder <tt>configuration/org.eclipse.smila.processing.bpel/<i>$pipeline.dir</i></tt>.
</li>
<li> Then replace <i>$PIPELINENAME</i> by the desired name of your pipeline.
<ol>
<li> Please note that the pipeline name must only contain characters from the following range: "a-zA-Z._-". If the pipeline does not conform to this naming restrictions, it will not be accessible and SMILA will print a warning in the log file that the pipeline name is invalid.
</li>
</ol>
</li>
<li> Next, copy the files <tt>record.xsd</tt>, and <tt>processor.wsdl</tt> from the <tt>xml</tt> directory in bundle <tt>org.eclipse.smila.processing.bpel</tt> to the same folder next to your .bpel file (if not already there).
</li>
<li> Then, still in the same folder, create or edit a file named <tt>deploy.xml</tt> containing the following content but replace <i>$PIPELINENAME</i> by the name of the new pipeline:
</li>
</ol>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;deploy</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://www.apache.org/ode/schemas/dd/2007/03&quot;</span> <span class="re0">xmlns:proc</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span><span class="re2">&gt;</span></span>
&#160;
<span class="sc-1">&lt;!-- other pipelines --&gt;</span>
&#160;
<span class="sc3"><span class="re1">&lt;process</span> <span class="re0">name</span>=<span class="st0">&quot;proc:$PIPELINENAME&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;in-memory<span class="re2">&gt;</span></span></span>true<span class="sc3"><span class="re1">&lt;/in-memory<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;provide</span> <span class="re0">partnerLink</span>=<span class="st0">&quot;Pipeline&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;service</span> <span class="re0">name</span>=<span class="st0">&quot;proc:$PIPELINENAME&quot;</span> <span class="re0">port</span>=<span class="st0">&quot;ProcessorPort&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/provide<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/process<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/deploy<span class="re2">&gt;</span></span></span></pre></div></div>
<p>You can now add pipelet invocations to your pipeline BPEL. To add another pipelet you have to add only another BPEL file and copy the <tt>&lt;process&gt;</tt> element in <tt>deploy.xml</tt> for the new pipeline.
</p>
<h3><span class="mw-headline" id="Pipelet_invocations">Pipelet invocations</span></h3>
<p>Pipelets are classes that implement interface <tt>org.eclipse.smila.processing.Pipelet</tt> (in bundle <tt>org.eclipse.smila.processing</tt>) and have a corresponding definition file (the name must end in ".json") in the <i>SMILA-INF</i> directory of the bundles that provides them. They are configured by the WorkflowProcessor on pipeline initialization. One instance is created for each time they occur in any pipeline, instances are not shared between multiple pipelines.
</p><p>The json file must at least contain the class name of the class that implements the Pipelet interface. E.g.
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="javascript source-javascript"><pre class="de1"><span class="br0">&#123;</span>
<span class="st0">&quot;class&quot;</span> <span class="sy0">:</span> <span class="st0">&quot;org.eclipse.smila.processing.pipelets.AddValuesPipelet&quot;</span>
<span class="br0">&#125;</span></pre></div></div>
<p>You can add more stuff to this file, e.g. a description of the configuration parameter the pipelet expects and supports. Examples that come with the base SMILA distribution are
</p>
<ul>
<li> in bundle <a href="Bundle_org.eclipse.smila.processing.pipelets.html" title="SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets"><tt>org.eclipse.smila.processing.pipelets</tt></a>:
<ul>
<li> <tt>org.eclipse.smila.processing.pipelets.AddValuesPipelet</tt>: add some attribute values to each record.
</li>
<li> <tt>org.eclipse.smila.processing.pipelets.HtmlToTextPipelet</tt>: Extract plain text and metadata from an HTML document in an attribute or attachment of each record and writes it to configurable attributes or attachments.
</li>
</ul>
</li>
<li> in bundle <a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html" title="SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing"><tt>org.eclipse.smila.processing.pipelets.xmlprocessing</tt></a>:
<ul>
<li> A collection of pipelets for XML processing (XSLT, XPath selection, ...) of documents.
</li>
</ul>
</li>
<li> in bundle <a href="Solr.html" title="SMILA/Documentation/Solr"><tt>org.eclipse.smila.solr</tt></a>:
<ul>
<li> Pipelets for adding records to an Solr index and searching it.
</li>
</ul>
</li>
</ul>
<p>To use such a pipelet in your pipeline, use the SMILA specific BPEL extension activity <tt>&lt;invokePipelet&gt;</tt> somewhere between <tt>&lt;receive&gt;</tt> and <tt>&lt;reply&gt;</tt> in your BPEL process:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;extensionActivity<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;proc:invokePipelet</span> <span class="re0">name</span>=<span class="st0">&quot;invokeSomePipelet&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:pipelet</span> <span class="re0">class</span>=<span class="st0">&quot;org.eclipse.smila.pipelet.SomePipelet&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:variables</span> <span class="re0">input</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">output</span>=<span class="st0">&quot;request&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;single-parameter&quot;</span><span class="re2">&gt;</span></span>value<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Seq</span> <span class="re0">key</span>=<span class="st0">&quot;multi-parameter&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>value1<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>value2<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Seq<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Map</span> <span class="re0">key</span>=<span class="st0">&quot;complex-parameter&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;sub-parameter1&quot;</span><span class="re2">&gt;</span></span>sub-value1<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;sub-parameter2&quot;</span><span class="re2">&gt;</span></span>sub-value2<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/rec:Map<span class="re2">&gt;</span></span></span>
<span class="sc-1">&lt;!-- more configuration parameters --&gt;</span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:invokePipelet<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/extensionActivity<span class="re2">&gt;</span></span></span></pre></div></div>
<p>Replace the class name with the class name of the pipelet to use and add configuration parameters as needed - this should be documented by the pipelet provider. The configuration is a generic AnyMap object like the one used as record metadata, see <a href="Data_Model_and_Serialization_Formats.html" title="SMILA/Documentation/Data Model and Serialization Formats">SMILA/Documentation/Data Model and Serialization Formats</a> for details. If the output variable is the same as the input variable (which is usually sufficient), you can omit the <i>output</i> attribute.
</p>
<h4><span class="mw-headline" id="Pipelet_invocations_in_BPEL_loops_.28forEach.29">Pipelet invocations in BPEL loops (forEach)</span></h4>
<p>In versions later than 0.9 the invokePipelet activity supports to give an additional "index" variable. This is to support advanced pipelines that can be invoked with multiple records at once (usually used in the PipelineProcessingWorker to reduce BPEL overhead) and still can use conditions to invoke pipelets based on attribute values. You can then do forEach loops on the record list and evaluate conditions on each record. For example the following loop would invoke the HtmlToTextPipelet only for records that have the mime type "text/html":
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;forEach</span> <span class="re0">counterName</span>=<span class="st0">&quot;index&quot;</span> <span class="re0">parallel</span>=<span class="st0">&quot;yes&quot;</span> <span class="re0">name</span>=<span class="st0">&quot;iterateRecords&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;startCounterValue<span class="re2">&gt;</span></span></span>1<span class="sc3"><span class="re1">&lt;/startCounterValue<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;finalCounterValue<span class="re2">&gt;</span></span></span>count($request.records/rec:Record)<span class="sc3"><span class="re1">&lt;/finalCounterValue<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;scope<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;if</span> <span class="re0">name</span>=<span class="st0">&quot;is HTML document&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;condition<span class="re2">&gt;</span></span></span>$request.records/rec:Record[position()=$index]/rec:Val[@key=&quot;MimeType&quot;]=&quot;text/html&quot;<span class="sc3"><span class="re1">&lt;/condition<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;extensionActivity<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;proc:invokePipelet</span> <span class="re0">name</span>=<span class="st0">&quot;extract text from HTML&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:pipelet</span> <span class="re0">class</span>=<span class="st0">&quot;org.eclipse.smila.processing.bpel.pipelets.HtmlToTextPipelet&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:variables</span> <span class="re0">input</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">index</span>=<span class="st0">&quot;index&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:invokePipelet<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/extensionActivity<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/if<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/scope<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/forEach<span class="re2">&gt;</span></span></span></pre></div></div>
<p>The invokePipelet activity assumes that the index variables takes the values 1 to (number of records). Note that the pipelet is invoked in parallel for each record in this example.
</p><p>If an output variable would be specified it would be assigned a list with only the one processed record in it. This can be useful if more than one pipelets would be invoked. If no output variable is specified, the input variable is not modified in this case.
</p><p><b>Hint:</b> If it is necessary that the input variable reflects the values of attributes changed by the pipelet (e.g. because it is needed in a following condition and you cannot use the single output record of the pipelet itself for the test) you must copy the output record back to the input variable using a bit of BPEL code:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"> ...
<span class="sc3"><span class="re1">&lt;extensionActivity<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;proc:invokePipelet</span> <span class="re0">name</span>=<span class="st0">&quot;some pipelet&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:pipelet</span> <span class="re0">class</span>=<span class="st0">&quot;org.eclipse.smila.example.Pipelet&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;proc:variables</span> <span class="re0">input</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">index</span>=<span class="st0">&quot;index&quot;</span> <span class="re0">output</span>=<span class="st0">&quot;oneRecord&quot;</span><span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/extensionActivity<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;assign</span> <span class="re0">name</span>=<span class="st0">&quot;copy result into original variable for next tests&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;copy<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;from<span class="re2">&gt;</span></span></span>$oneRecord.records/rec:Record[1]<span class="sc3"><span class="re1">&lt;/from<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;to<span class="re2">&gt;</span></span></span>$request.records/rec:Record[position()=$index]<span class="sc3"><span class="re1">&lt;/to<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/copy<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/assign<span class="re2">&gt;</span></span></span>
...</pre></div></div>
<p>See the <a rel="nofollow" class="external text" href="https://dev.eclipse.org/svnroot/rt/org.eclipse.smila/trunk/core/SMILA.application/configuration/org.eclipse.smila.processing.bpel/pipelines/AddPipeline.bpel">AddPipeline.bpel</a> in the standard SMILA configuration for an example with complete context.
</p>
<h4><span class="mw-headline" id="Changing_the_number_of_records_in_a_pipeline">Changing the number of records in a pipeline</span></h4>
<p>A special case are pipelines that change the number of records processed in a call. Examples would be:
</p>
<ul>
<li> filtering out records, i.e. removing records that should not be processed further.
</li>
<li> document splitting, i.e. creating a set of records from a single one and replacing the source records with the "splits", e.g. using the <a href="Bundle_org.eclipse.smila.processing.pipelets.html#org.eclipse.smila.processing.pipelets.DocumentSplitterPipelet" title="SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets">DocumentSplitterPipelet</a>.
</li>
</ul>
<p>This works fine only in pipelines that do not contain a loop over the records: You can use a single variable for all pipelets that always reflects the current set of records and can be used in the <tt>&lt;reply&gt;</tt> activity at the end to return the final set of processed records. In a loop it is not possible (or at least not simple) to maintain this single variable if the record set changes all the time (and even in parallel), so you would have to construct it somehow at the end of the loop (descriptions how to do this are highly appreciated&#160;;-).
</p><p>So, if you do record splitting or filtering, there are two feasible alternatives:
</p>
<ul>
<li> If all records are processed in the same way (i.e. no BPEL elements like <tt>&lt;if&gt;</tt> are necessary): no problem, just create the sequence of pipelets and use one variable all the time. You can invoke the pipeline with a set of records in one call and everything will be fine (assuming that all pipelets support processing multiple records, which usually is the case).
</li>
<li> If you need conditions in the pipeline, you can process only a single record per invocation. Be sure to set the Parameter "pipelineRunBulkSize" of the <a href="Worker/PipelineProcessorWorker.html#Configuration" title="SMILA/Documentation/Worker/PipelineProcessorWorker">PipelineProcessorWorker</a> to 1 if you use this pipeline with in asynchronous workflows. Then you can still access this record in conditions using index=1, for example:
</li>
</ul>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"> <span class="sc3"><span class="re1">&lt;if</span> <span class="re0">name</span>=<span class="st0">&quot;Is PDF document?&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;condition<span class="re2">&gt;</span></span></span>$request.records/rec:Record[1]/rec:Val[@key=&quot;MimeType&quot;] = 'application/pdf'<span class="sc3"><span class="re1">&lt;/condition<span class="re2">&gt;</span></span></span>
...</pre></div></div>
<h3><span class="mw-headline" id="Pipeline_invocations">Pipeline invocations</span></h3>
<p>You can also invoke one pipeline from another to group pipelet invocations that belong together. To do this you have to use the standard BPEL invoke activity to invoke a BPEL partner link for the sub pipeline:
</p>
<ul>
<li> define a partner link in the <tt>&lt;partnerLinks&gt;</tt> section of the BPEL file, replace <i>$SUBPIPELINENAME</i> with the name of pipeline to invoke as defined in its <tt>&lt;process&gt;</tt> element:
</li>
</ul>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;partnerLinks<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;partnerLink</span> <span class="re0">name</span>=<span class="st0">&quot;Pipeline&quot;</span> <span class="re0">partnerLinkType</span>=<span class="st0">&quot;proc:ProcessorPartnerLinkType&quot;</span> <span class="re0">myRole</span>=<span class="st0">&quot;service&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;partnerLink</span> <span class="re0">name</span>=<span class="st0">&quot;$SUBPIPELINENAME&quot;</span> <span class="re0">partnerLinkType</span>=<span class="st0">&quot;proc:ProcessorPartnerLinkType&quot;</span> <span class="re0">partnerRole</span>=<span class="st0">&quot;service&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/partnerLinks<span class="re2">&gt;</span></span></span></pre></div></div>
<ul>
<li> add an BPEL <tt>&lt;invoke&gt;</tt> activity between <tt>&lt;receive&gt;</tt> and <tt>&lt;reply&gt;</tt>, replace <i>$SUBPIPELINENAME</i> with the pipeline name and adapt the <i>inputVariable</i> and <i>outputVariable</i> attributes if necessary (omitting <i>outputVariable</i> is not allowed here!):
</li>
</ul>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;invoke</span> <span class="re0">name</span>=<span class="st0">&quot;invokeSubPipeline&quot;</span> <span class="re0">operation</span>=<span class="st0">&quot;process&quot;</span> <span class="re0">portType</span>=<span class="st0">&quot;proc:ProcessorPortType&quot;</span> </span>
<span class="sc3"> <span class="re0">partnerLink</span>=<span class="st0">&quot;$SUBPIPELINENAME&quot;</span> <span class="re0">inputVariable</span>=<span class="st0">&quot;request&quot;</span> <span class="re0">outputVariable</span>=<span class="st0">&quot;request&quot;</span> <span class="re2">/&gt;</span></span></pre></div></div>
<ul>
<li> add a declaration for the partner link in the <tt>deploy.xml</tt> entry of your pipeline:
</li>
</ul>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="xml source-xml"><pre class="de1"><span class="sc3"><span class="re1">&lt;deploy</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://www.apache.org/ode/schemas/dd/2007/03&quot;</span> <span class="re0">xmlns:proc</span>=<span class="st0">&quot;http://www.eclipse.org/smila/processor&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;process</span> <span class="re0">name</span>=<span class="st0">&quot;proc:$PIPELINENAME&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;in-memory<span class="re2">&gt;</span></span></span>true<span class="sc3"><span class="re1">&lt;/in-memory<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;provide</span> <span class="re0">partnerLink</span>=<span class="st0">&quot;Pipeline&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;service</span> <span class="re0">name</span>=<span class="st0">&quot;proc:$PIPELINENAME&quot;</span> <span class="re0">port</span>=<span class="st0">&quot;ProcessorPort&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/provide<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;invoke</span> <span class="re0">partnerLink</span>=<span class="st0">&quot;$SUBPIPELINENAME&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;service</span> <span class="re0">name</span>=<span class="st0">&quot;proc:$SUBPIPELINENAME&quot;</span> <span class="re0">port</span>=<span class="st0">&quot;ProcessorPort&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/invoke<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/process<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/deploy<span class="re2">&gt;</span></span></span></pre></div></div>
<h3><span class="mw-headline" id="Advanced_process_definition">Advanced process definition</span></h3>
<p>You can of course use all other BPEL elements, too, to create your pipelines like conditions, iterations, parallel flows, invocation of external Web Services, etc. However, to describe them is beyond the scope of this introduction and requires "real" knowledge about BPEL and XPath (and WSDL, for invoking Web Services).
</p>
<!--
NewPP limit report
CPU time usage: 0.104 seconds
Real time usage: 0.129 seconds
Preprocessor visited node count: 126/1000000
Preprocessor generated node count: 252/1000000
Post‐expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key my_wiki:pcache:idhash:15165-0!*!0!!en!*!* and timestamp 20150413202058 and revision id 366138
-->
</div>
<!-- catlinks -->
<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="http://wiki.eclipse.org/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="http://wiki.eclipse.org/Category:SMILA" title="Category:SMILA">SMILA</a></li></ul></div></div> <!-- /catlinks -->
</div>
</div>
</div>
</div>
<!-- /maincontent -->
<!-- printfooter -->
<div class="printfooter">
Retrieved from "<a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;oldid=366138">http://wiki.eclipse.org/index.php?title=SMILA/Documentation/BPEL_Workflow_Processor&amp;oldid=366138</a>" </div>
<!-- /printfooter -->
<!-- debughtml -->
<!-- /debughtml -->
</div>
<!-- /bodyContent -->
</section>
<!-- /content -->
<!-- footer -->
</div> <section id="footer-contribution-info" style="border-top:1px solid #ccc;" class="footer-offset background-white margin-top-25"><div class="container text-center padding-top-10 padding-bottom-10"><p id="footercredit">This page was last modified 08:07, 27 June 2014 by <a href="http://wiki.eclipse.org/User:Juergen.schumacher.empolis.com" title="User:Juergen.schumacher.empolis.com">Juergen Schumacher</a>. Based on work by <a href="http://wiki.eclipse.org/User:Andreas.schank.attensity.com" title="User:Andreas.schank.attensity.com">A. Schank</a>, <a href="http://wiki.eclipse.org/index.php?title=User:Juergen.schumacher.attensity.com&amp;action=edit&amp;redlink=1" class="new" title="User:Juergen.schumacher.attensity.com (page does not exist)">Juergen Schumacher</a> and <a href="http://wiki.eclipse.org/User:Drazen.cindric.attensity.com" title="User:Drazen.cindric.attensity.com">Drazen Cindric</a>.</p><p id="footerviews">This page has been accessed 8,602 times.</p></div></section> </main> <!-- /#main-content-container-row -->
<p id="back-to-top" class="noprint hidden-print">
<a class="visible-xs" href="BPEL_Workflow_Processor.html#top">Back to the top</a>
</p>
<footer role="contentinfo" class="noprint hidden-print">
<div class="container">
<div class="row">
<section id="footer-eclipse-foundation" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Eclipse Foundation</h2>
<ul class="nav">
<li><a href="https://eclipse.org/org/">About us</a></li>
<li><a href="https://eclipse.org/org/foundation/contact.php">Contact Us</a></li>
<li><a href="https://eclipse.org/donate">Donate</a></li>
<li><a href="https://eclipse.org/org/documents/">Governance</a></li>
<li><a href="https://eclipse.org/artwork/">Logo and Artwork</a></li>
<li><a href="https://eclipse.org/org/foundation/directors.php">Board of Directors</a></li>
</ul>
</section>
<section id="footer-legal" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Legal</h2>
<ul class="nav">
<li><a href="https://eclipse.org/legal/privacy.php">Privacy Policy</a></li>
<li><a href="https://eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
<li><a href="https://eclipse.org/legal/copyright.php">Copyright Agent</a></li>
<li><a href="https://eclipse.org/org/documents/epl-v10.php">Eclipse Public License </a></li>
<li><a href="https://eclipse.org/legal/">Legal Resources </a></li>
</ul>
</section>
<section id="footer-useful-links" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Useful Links</h2>
<ul class="nav">
<li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li>
<li><a href="http://help.eclipse.org/">Documentation</a></li>
<li><a href="https://eclipse.org/contribute/">How to Contribute</a></li>
<li><a href="https://eclipse.org/mail/">Mailing Lists</a></li>
<li><a href="https://eclipse.org/forums/">Forums</a></li>
<li><a href="http://marketplace.eclipse.org/">Marketplace</a></li>
</ul>
</section>
<section id="footer-other" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Other</h2>
<ul class="nav">
<li><a href="https://eclipse.org/ide/">IDE and Tools</a></li>
<li><a href="https://eclipse.org/projects">Community of Projects</a></li>
<li><a href="https://eclipse.org/org/workinggroups/">Working Groups</a></li>
</ul>
<ul class="list-inline social-media">
<li><a href="https://twitter.com/EclipseFdn"><i class="fa fa-twitter-square"></i></a></li>
<li><a href="https://plus.google.com/+Eclipse"><i class="fa fa-google-plus-square"></i></a></li>
<li><a href="https://www.facebook.com/eclipse.org"><i class="fa fa-facebook-square"></i> </a></li>
<li><a href="https://www.youtube.com/user/EclipseFdn"><i class="fa fa-youtube-square"></i></a></li>
</ul>
</section>
<div id="copyright" class="col-xs-offset-1 col-sm-14 col-md-24 col-md-offset-0">
<div>
<span><img src="http://eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-logo-bw-800x188.png" alt="Eclipse.org black and white logo" width="166" height="39" id="logo-eclipse-white"/></span>
<p id="copyright-text">Copyright &copy; 2014 The Eclipse Foundation. All Rights Reserved.</p>
</div>
</div>
<a href="BPEL_Workflow_Processor.html#" class="scrollup">Back to the top</a>
</div>
</div>
</footer>
<script src="http://wiki.eclipse.org/skins/solstice/public/javascript/main.min.js"></script>
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-910670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script> <!-- /footer -->
<script>/*<![CDATA[*/window.jQuery && jQuery.ready();/*]]>*/</script><script>if(window.mw){
mw.loader.state({"skins.solstice":"loading","site":"ready","user":"ready","user.groups":"ready"});
}</script>
<script src="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=skins.solstice&amp;only=scripts&amp;skin=solstice&amp;*"></script>
<script>if(window.mw){
mw.loader.load(["mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest"],null,true);
}</script>
<script>if(window.mw){
mw.config.set({"wgBackendResponseTime":354});
}</script> </body>
</html>