[jboss-user] [jBPM Users] - Re: Jboss jbpm 4.2 integration with spring
msahai
do-not-reply at jboss.com
Tue Nov 10 00:18:25 EST 2009
hi mwohlf,
i did not get it properly.where i have to add this line.
do i have to add it within <id-generator> tag.
can you show me sample cfg , to which you are refering too.
my sample cfg is:
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<!-- Here we needed to change the transaction interceptor -->
<command-service name="txRequiredCommandService">
<skip-interceptor />
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor transactionManager="transactionManager"/>
</command-service>
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor transactionManager="transactionManager"/>
</command-service>
<!-- Added spring as read-context -->
<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>
<id-generator/>
<address-resolver />
<business-calendar>
</business-calendar>
<mail-template name='task-notification'>
${task.name}
<![CDATA[Hi ${task.assignee},
Task "${task.name}" has been assigned to you.
${task.description}
Sent by JBoss jBPM
]]>
</mail-template>
<mail-template name='task-reminder'>
${task.name}
<![CDATA[Hey ${task.assignee},
Do not forget about task "${task.name}".
${task.description}
Sent by JBoss jBPM
]]>
</mail-template>
</process-engine-context>
<transaction-context>
<repository-session />
<db-session />
<message-session />
<timer-session />
<history-session />
<mail-session>
<mail-server>
<session-properties resource="jbpm.mail.properties" />
</mail-server>
</mail-session>
<!-- Need to set explicitly that we don't want jbpm to create sessions -->
<hibernate-session current="true" />
</transaction-context>
</jbpm-configuration>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264726#4264726
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264726
More information about the jboss-user
mailing list