[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR
RonanKER
do-not-reply at jboss.com
Fri Jul 17 09:25:12 EDT 2009
I'm giving a try but it is not easy as it seems for a newbie.
First of all, I can't find a real doc on all the config files (required or optional values, different properties ...) and I guess they are based on a IOC pattern but as I don't know what is required my test failed with a NullpointerException:
java.lang.NullPointerException
| at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:89)
| at com.vc.mm.jbpm.JbpmTest.testHelloWorld(JbpmTest.java:35)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I guess "CommandService" is not injected in "RepositoryServiceImpl" but why ?
Here it is my jbpm.cfg.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <jbpm-configuration>
|
| <!-- import resource="jbpm.default.cfg.xml" / -->
| <!-- import resource="jbpm.tx.hibernate.cfg.xml" / -->
|
| <!-- from jbpm.default.cfg.xml -->
| <process-engine-context>
|
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
|
| <!-- change here : no hibernate config for jbpm -->
| <!-- hibernate-configuration>
| <cfg resource="jbpm.hibernate.cfg.xml" />
| </hibernate-configuration -->
|
| <!-- change here : no hibernate session factory for jbpm -->
| <!-- hibernate-session-factory / -->
|
| <script-manager default-expression-language="juel"
| default-script-language="juel">
| <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>
|
| </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>
| </transaction-context>
|
| <!-- change here : from jbpm.tx.hibernate.cfg.xml -->
| <process-engine-context>
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <standard-transaction-interceptor />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <transaction />
| <!-- change here : added => current="true"-->
| <hibernate-session current="true" />
| </transaction-context>
|
| <import resource="jbpm.jpdl.cfg.xml" />
| <import resource="jbpm.identity.cfg.xml" />
| <import resource="jbpm.jobexecutor.cfg.xml" />
|
| </jbpm-configuration>
|
Thanks for any hint.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244328#4244328
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244328
More information about the jboss-user
mailing list