You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by js...@apache.org on 2006/05/24 15:04:05 UTC
svn commit: r409153 - in /incubator/servicemix/site: beanflow.html
features.html
Author: jstrachan
Date: Wed May 24 06:04:04 2006
New Revision: 409153
URL: http://svn.apache.org/viewvc?rev=409153&view=rev
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/beanflow.html
incubator/servicemix/site/features.html
Modified: incubator/servicemix/site/beanflow.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/beanflow.html?rev=409153&r1=409152&r2=409153&view=diff
==============================================================================
--- incubator/servicemix/site/beanflow.html (original)
+++ incubator/servicemix/site/beanflow.html Wed May 24 06:04:04 2006
@@ -274,9 +274,21 @@
</UL>
-<H2><A name="BeanFlow-Activityoverview"></A>Activity overview</H2>
+<H2><A name="BeanFlow-Codeoverview"></A>Code overview</H2>
-<P>An activity is just a POJO which implements the Activity interface; it has a simple lifecycle, you can start them and stop them and ask their status.</P>
+<P>First we'll give an overview of the two main interfaces in BeanFlow then we'll progress to concepts like timeouts and composing activities.</P>
+
+<H3><A name="BeanFlow-Stateclass"></A>State class</H3>
+
+<P>We have a <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-beanflow/apidocs/org/apache/servicemix/beanflow/State.html" title="Visit page outside Confluence" rel="nofollow">State<T><SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> interface which is identical to the <SPAN class="nobr"><A href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/atomic/AtomicReference.html" title="Visit page outside Confluence" rel="nofollow">AtomicReference<T><SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> interface included in java.util.concurrent in Java 5 apart from that it allows you to register listeners to the state. This makes it easy to respond to the changes in state.</P>
+
+<P>One added detail is the that State<T> allows you to specify the <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-beanflow/apidocs/org/apache/servicemix/beanflow/support/Notifier.html" title="Visit page outside Confluence" rel="nofollow">Notifier<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> implementation used to perform the notifications (which always occur outside of the semaphore to allow things to be re-entrant).</P>
+
+<P>The default notifier used is the <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-beanflow/apidocs/org/apache/servicemix/beanflow/support/SynchronousNotifier.html" title="Visit page outside Confluence" rel="nofollow">SynchronousNotifier<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> but its easy to switch to an <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-beanflow/apidocs/org/apache/servicemix/beanflow/support/AsynchronousNotifier.html" title="Visit page outside Confluence" rel="nofollow">AsynchronousNotifier<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> by just passing it into the constructor of the State<T> object.</P>
+
+<H3><A name="BeanFlow-Activityclass"></A>Activity class</H3>
+
+<P>An activity is just a POJO which implements the <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-beanflow/apidocs/org/apache/servicemix/beanflow/Activity.html" title="Visit page outside Confluence" rel="nofollow">Activity<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> interface; it has a simple lifecycle, you can start them and stop them and ask their status.</P>
<P>Once a flow has been started via the <B>start()</B> method it can take an arbitrarily long time to complete; you can see if the flow has completed via the <B>isStopped()</B> method. You can explicitly complete a flow using the <B>stop()</B> method whenever you like; typically when you are responding to state changes.</P>
@@ -600,7 +612,7 @@
<DIV id="site-footer">
Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A>,
last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A> on May 24, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=5092&originalId=5979">view change</A>)
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=5092&originalId=5981">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=5092">edit page</A>)
</DIV>
Modified: incubator/servicemix/site/features.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/features.html?rev=409153&r1=409152&r2=409153&view=diff
==============================================================================
--- incubator/servicemix/site/features.html (original)
+++ incubator/servicemix/site/features.html Wed May 24 06:04:04 2006
@@ -223,7 +223,7 @@
<!--
<div class="pagetitle">Features</div>
-->
- <DIV class="wiki-content"><UL><LI><A href="client-api.html" title="Client API">Client API</A></LI><LI><A href="routing.html" title="Routing">Routing</A><UL><LI><A href="publish-and-subscribe-routing.html" title="Publish and Subscribe Routing">Publish and Subscribe Routing</A></LI><LI><A href="publish-subscribe-routing.html" title="Publish Subscribe Routing">Publish Subscribe Routing</A></LI><LI><A href="xpath-router.html" title="XPath Router">XPath Router</A></LI></UL></LI><LI><A href="running.html" title="Running">Running</A></LI><LI><A href="transformation.html" title="Transformation">Transformation</A></LI><LI><A href="visualisation.html" title="Visualisation">Visualisation</A></LI></UL>
+ <DIV class="wiki-content"><UL><LI><A href="beanflow.html" title="BeanFlow">BeanFlow</A><UL><LI><A href="beanflow-patterns.html" title="BeanFlow Patterns">BeanFlow Patterns</A></LI></UL></LI><LI><A href="client-api.html" title="Client API">Client API</A></LI><LI><A href="routing.html" title="Routing">Routing</A><UL><LI><A href="publish-and-subscribe-routing.html" title="Publish and Subscribe Routing">Publish and Subscribe Routing</A></LI><LI><A href="publish-subscribe-routing.html" title="Publish Subscribe Routing">Publish Subscribe Routing</A></LI><LI><A href="xpath-router.html" title="XPath Router">XPath Router</A></LI></UL></LI><LI><A href="running.html" title="Running">Running</A></LI><LI><A href="transformation.html" title="Transformation">Transformation</A></LI><LI><A href="visualisation.html" title="Visualisation">Visualisation</A></LI></UL>
<P>Created by <SPAN class="nobr"><A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet" title="View profile for Guillaume Nodet"><SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/user_12.gif" height="12" width="12" align="absmiddle" alt="" border="0"></SUP>Guillaume Nodet</A></SPAN><BR>
Using <FONT color="blue">TimTam</FONT></P></DIV>
@@ -236,7 +236,10 @@
<A href="javascript:hideChildren()">Hide Children</A></SPAN>
</DIV>
<DIV class="greybox" id="children" style="display: none;">
- <A href="visualisation.html" title="Visualisation">Visualisation</A>
+ <A href="beanflow.html" title="BeanFlow">BeanFlow</A>
+ <SPAN class="smalltext">(ServiceMix)</SPAN>
+ <BR>
+ <A href="visualisation.html" title="Visualisation">Visualisation</A>
<SPAN class="smalltext">(ServiceMix)</SPAN>
<BR>
<A href="transformation.html" title="Transformation">Transformation</A>