syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Syncope > CustomWorkflowEngine
Date Mon, 15 Oct 2012 13:20:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/3/_/styles/combined.css?spaceKey=SYNCOPE&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SYNCOPE/CustomWorkflowEngine">CustomWorkflowEngine</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~jbernhardt">Jan
Bernhardt</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="CustomWorkflowEngine-Introduction"></a>Introduction
   </h1>
<p>Syncope uses a <a href="/confluence/display/SYNCOPE/Workflow" title="Workflow">workflow
concept</a> to define transition task at different user states.</p>

<p>The aim of this page is to show how arbitrary workflow engines can be used.</p>

<h1><a name="CustomWorkflowEngine-Implementation"></a>Implementation</h1>
<p>You can choose within your <a href="https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/resources/workflow.properties"
class="external-link" rel="nofollow">workflow.properties</a> file of your <a href="/confluence/display/SYNCOPE/Create+a+new+Syncope+project#CreateanewSyncopeproject-Createnewproject">overlay
project</a> which Workflow engine adapter should be used.</p>

<p>Ayncope comes with a default <a href="https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/ActivitiUserWorkflowAdapter.java"
class="external-link" rel="nofollow">ActivitiUserWorkflowAdapter</a> implementation
for <a href="http://www.activiti.org/" class="external-link" rel="nofollow">Activiti
BPM</a>.</p>

<p>If you want to attach a different workflow engine to your syncope project, you need
to provide an implementation of <a href="https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/UserWorkflowAdapter.java"
class="external-link" rel="nofollow">UserWorkflowAdapter</a> interface. This can
usually be done best by overriding (abstract) methods in <a href="https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/AbstractUserWorkflowAdapter.java"
class="external-link" rel="nofollow">AbstractUserWorkflowAdapter</a>.</p>

<p>If you don't want to use a (full featured) workflow engine at all, you can also choose
<a href="https://svn.apache.org/repos/asf/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/NoOpUserWorkflowAdapter.java"
class="external-link" rel="nofollow">NoOpUserWorkflowAdapter</a> as your Workflow
adapter.</p>

<h1><a name="CustomWorkflowEngine-Deploy"></a>Deploy</h1>
<p>Custom WorkflowAdapter implementation can be deployed:</p>

<ul>
	<li>at project definition time<br/>
 by adding own implementation into the <a href="/confluence/display/SYNCOPE/Create+a+new+Syncope+project#CreateanewSyncopeproject-Createnewproject">overlay
project</a>, before to build Syncope. </li>
	<li>at run-time<br/>
 by adding into the container classpath own implementation (container must be re-started to
reload the classpath).</li>
</ul>

    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/SYNCOPE/CustomWorkflowEngine">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/SYNCOPE/CustomWorkflowEngine?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message