[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

nilspreusker do-not-reply at jboss.com
Wed Jul 1 08:36:53 EDT 2009


Here is my current (working) jbpm.cfg.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <jbpm-configuration>
  |   <import resource="jbpm.jpdl.cfg.xml" />
  |   <!--<import resource="jbpm.identity.cfg.xml" /> -->
  |   <process-engine-context>
  |     <repository-service />
  |     <repository-cache />
  |     <execution-service />
  |     <history-service />
  |     <management-service />
  |     <identity-service />
  |     <task-service />
  |     <script-manager default-expression-language="juel"
  |                     default-script-language="juel"
  |                     read-contexts="execution, environment, process-engine, spring"
  |                     write-context="">
  |     <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
  |     </script-manager>
  |     <authentication />
  |     <id-generator />
  |     <types resource="jbpm.variable.types.xml" />
  |     <address-resolver />
  |     <business-calendar>
  |       <monday    hours="9:00-12:00 and 12:30-17:00"/>
  |       <tuesday   hours="9:00-12:00 and 12:30-17:00"/>
  |       <wednesday hours="9:00-12:00 and 12:30-17:00"/>
  |       <thursday  hours="9:00-12:00 and 12:30-17:00"/>
  |       <friday    hours="9:00-12:00 and 12:30-17:00"/>
  |       <holiday period="01/07/2008 - 31/08/2008"/>
  |     </business-calendar>
  |     <mail-template name='task-notification'>
  |       <to users="${task.assignee}"/>
  |       <subject>${task.name}</subject>
  |       <text><![CDATA[Hi ${task.assignee},
  | Task "${task.name}" has been assigned to you.
  | ${task.description}
  | 
  | Sent by JBoss jBPM
  | ]]></text>
  |     </mail-template>
  |       <mail-template name='task-reminder'>
  |       <to users="${task.assignee}"/>
  |       <subject>${task.name}</subject>
  |       <text><![CDATA[Hey ${task.assignee},
  | Do not forget about task "${task.name}".
  | ${task.description}
  | 
  | Sent by JBoss jBPM
  | ]]></text>
  |     </mail-template>    
  |     <command-service>
  |       <retry-interceptor />
  |       <environment-interceptor />
  |       <spring-transaction-interceptor current="false" />
  |     </command-service>
  |   </process-engine-context>
  | 
  |   <transaction-context>
  |     <object class="mypackage.IdentitySessionImpl" />
  |     <repository-session />
  |     <db-session />
  |     <message-session />
  |     <timer-session />
  |     <history-session />
  |     <mail-session>
  |       <mail-server>
  |         <session-properties resource="jbpm.mail.properties" />
  |       </mail-server>
  |     </mail-session>
  |     <hibernate-session current="true"/>
  |     
  |   </transaction-context>
  | </jbpm-configuration>

Except of course the "mypackage" part... I'm working with spring (using org.jbpm.pvm.internal.cfg.SpringConfiguration) and against the jBPM trunk, currently at revision 5153. Hope this helps!

Nils

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241179#4241179

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241179



More information about the jboss-user mailing list