Author: tom.baeyens(a)jboss.com
Date: 2009-02-23 10:02:58 -0500 (Mon, 23 Feb 2009)
New Revision: 4004
Added:
jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch08-Identity.xml
Modified:
jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml
Log:
adding identity chapter to user docs
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml 2009-02-23 15:02:35 UTC
(rev 4003)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/master.xml 2009-02-23 15:02:58 UTC
(rev 4004)
@@ -8,6 +8,7 @@
<!ENTITY ch05-Jpdl SYSTEM "modules/ch05-Jpdl.xml">
<!ENTITY ch06-Variables SYSTEM "modules/ch06-Variables.xml">
<!ENTITY ch07-Scripting SYSTEM "modules/ch07-Scripting.xml">
+ <!ENTITY ch08-Identity SYSTEM "modules/ch08-Identity.xml">
]>
<book lang="en">
@@ -25,5 +26,6 @@
&ch05-Jpdl;
&ch06-Variables;
&ch07-Scripting;
+ &ch08-Identity;
</book>
\ No newline at end of file
Copied: jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch08-Identity.xml (from
rev 4001,
jbpm4/branches/jbpm-4.0.0.Alpha2/modules/userguide/src/main/docbook/en/modules/ch08-Identity.xml)
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch08-Identity.xml
(rev 0)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch08-Identity.xml 2009-02-23
15:02:58 UTC (rev 4004)
@@ -0,0 +1,38 @@
+<chapter id="identity">
+ <title>Identity</title>
+
+ <para>The default jBPM identity component is based on
+ <ulink
url="http://www.jboss.org/community/docs/DOC-13258">JBoss
IDM</ulink>.
+ Configuration is like this:
+ </para>
+
+ <programlisting><jbpm-configuration
xmlns="http://jbpm.org/xsd/cfg">
+
+ <emphasis
role="bold"><process-engine-context></emphasis>
+ ...
+ <identity-service />
+ ...
+ </process-engine-context>
+
+ <transaction-context>
+ ...
+ <emphasis role="bold"><identity-session
realm="realm://jbpm-identity" /></emphasis>
+ </transaction-context>
+
+</jbpm-configuration></programlisting>
+
+ <para>To replace the identity component, keep the identity-service declaration,
+ implement org.jbpm.session.IdentitySession and configure your identity session in
+ the transaction context like this:
+ </para>
+
+ <programlisting><jbpm-configuration
xmlns="http://jbpm.org/xsd/cfg">
+ ...
+ <transaction-context>
+ ...
+ <object class="your.package.YourIdentitySession" />
+ </transaction-context>
+
+</jbpm-configuration></programlisting>
+
+</chapter>