[jBPM Users] - Re: Script Evaluation failed
by saraswati.santanu
Isn't it like using a variable without declaring that is what you are expecting? And why null checks should be treated specially? From the perspective of script validation, I think what is happening is logical.
I can imagine scenarios where the current behaviour can create problem. When the variables are passed from some other class, it will not send a property which that class does not have. In such a case the default value of the variable should be considered.
I would wish to have a feature to declare variables at the process definition scope and assign some default value to it. So if we do not have the variable at the runtime, the execution can move on with the declared default value.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265769#4265769
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265769
16 years, 4 months
[jBPM Users] - jBPM 3.2.6.SP1 enterprise environments question
by salaboy21
Hi all,
I'm working with the tag jBPM 3.2.6.SP1, (http://anonsvn.jboss.org/repos/jbpm/jbpm3/tags/jbpm-3.2.6.SP1/) and a big question arise.
I have an example about a Stateless Session bean that will use the jBPM APIs to interact with processes. The configurations of the example uses:
| <service name="persistence" factory="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory" />
|
and in hibernate.cfg.xml:
| <!-- CMT transaction properties (begin) === -->
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <!-- ==== CMT transaction properties (end) -->
|
Basically, I want to delegate the transactions administration to the container.
Now in my Stateless Session bean, I have some methods that will use the jBPM API's and I don't want to create the jBPMContext each time inside each method of my Stateless Session Bean. It's that possible? right now with 3.2.6.SP1 version, I need to create inside each method the context in order to work.
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265756#4265756
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265756
16 years, 4 months
[jBPM Users] - Re: jbpm 4.2 spring 2.5.6 integration
by saraswati.santanu
This is sample jpdl.cfg.xml. Please observe the command-service and db id generator mappings.
| <jbpm-configuration>
|
| <import resource="jbpm.businesscalendar.cfg.xml" />
| <import resource="jbpm.jpdl.cfg.xml" />
|
| <process-engine-context>
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <task-service />
| <identity-service />
| <command-service name="txRequiredCommandService">
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor/>
| </command-service>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
| <field name="commandService"><ref object="txRequiredCommandService" /></field>
| </object>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
|
| <script-manager default-expression-language="juel" default-script-language="juel">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <job-executor auto-start="false" />
|
| <types resource="jbpm.variable.types.xml" />
| </process-engine-context>
|
| <transaction-context>
| <repository-session/>
| <db-session/>
|
| <message-session/>
| <timer-session/>
| <history-session/>
|
| <hibernate-session current="true"/>
| </transaction-context>
|
| </jbpm-configuration>
|
You can also refer to this post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=163512
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265753#4265753
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265753
16 years, 4 months
[jBPM Users] - jbpm 4.2 spring 2.5.6 integration
by iga3k
Hello,
I've been looking around for a good open source bpm solution and I end up choosing jBPM. Now, I'm trying to integrate it with Spring, but I'm facing some troubles.
Here is the jbpm minimal configuration that I'm trying to use:
| <process-engine-context>
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <transaction />
| <hibernate-session current="true" />
| </transaction-context>
|
, the spring configuration:
| <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="com/psinova/jbpm.cfg.xml" />
| </bean>
|
| <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
| <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
| <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
|
and when spring is trying to initialize the first bean, a npe is thrown with this stack:
| Caused by: java.lang.NullPointerException
| at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)
| at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.buildProcessEngine(ProcessEngineImpl.java:170)
| at org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine(SpringConfiguration.java:81)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
|
I've also created a JIRA ticket for this issue: https://jira.jboss.org/jira/browse/JBPM-2646
Am I doing something wrong? Please advise!
Kind regards,
Alexandru.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265734#4265734
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265734
16 years, 4 months
[jBPM Users] - jbpm.wire.bindings.xml
by rams.rapo
Hi,
I had to update jbpm.wire.bindings.xml to customize Task Activity and had it in my src/main/resources folder under a module. When i try to deploy it as ear file on jboss, it takes the jbpm.wire.bindings.xml present in jbpm-pvm jar and not the one i have it in my local. I tried putting it in various folders but ain't any luck so far.
I notice WireParser having references to two xml files but it seems to be picking up from inside of it's own jar rather than on the classpath
Any workarounds? It's been long time since i had classpath issues :)
| public static final String[] DEFAULT_WIRE_BINDING_RESOURCES = new String[]{
| "jbpm.wire.bindings.xml",
| "jbpm.user.wire.bindings.xml"
| };
|
| My Env:
| Jbpm 4.0
| JBoss 5.1.0.GA
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265716#4265716
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265716
16 years, 4 months