[jBPM Users] - Re: facing issues while assigning parallel task in jbpm usin
by anjaliaggster
I m using JBPM 3.3.2 version.
Here is dummy configuration that i m trying:
| <?xml version="1.0" encoding="UTF-8" ?>
| - <process-definition xmlns="" name="test">
| - <start-state name="start-state1">
| <transition to="state1" />
| </start-state>
| - <state name="state1">
| <transition to="decision1" />
| </state>
| - <decision name="decision1">
| <transition to="fork1" />
| <transition to="state2" name="to state2" />
| <transition to="state8" name="to state8" />
| </decision>
| - <fork name="fork1">
| <transition to="state2" />
| <transition to="state3" name="to state3" />
| </fork>
| - <state name="state2">
| <transition to="decision2" />
| </state>
| - <state name="state3">
| <transition to="decision3" />
| </state>
| - <decision name="decision2">
| <transition to="state4" />
| </decision>
| - <decision name="decision3">
| <transition to="state5" />
| </decision>
| - <state name="state4">
| <transition to="state6" />
| </state>
| - <state name="state5">
| <transition to="join1" />
| </state>
| - <state name="state6">
| <transition to="join1" />
| </state>
| - <join name="join1">
| <transition to="state7" />
| </join>
| - <state name="state7">
| <transition to="end-state1" />
| </state>
| - <state name="state8">
| <transition to="state1" />
| </state>
| <end-state name="end-state1" />
| </process-definition>
|
Here i m also attaching the dummy snippet of our requirement
[img]http://yfrog.com/3dprocessimagej[/img]
Please advice!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265911#4265911
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265911
16 years, 4 months
[jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio
by hrworx
Thanks again for the reply. This is going to be a useful thread for others someday, hopefully.
OK, the same problem still remains with Unknown Entity: PropertyImpl
Here are the relevant configuration files as they currently exist:
| <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" />
|
| <import resource="jbpm.jobexecutor.cfg.xml" />
| <types resource="jbpm.variable.types.xml" />
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
| <message-session />
| <timer-session />
| <history-session />
|
| <object class="com.hrworx.formworx.service.user.JbpmIdentitySessionImpl" />
| <transaction />
| <hibernate-session current="false" />
| </transaction-context>
|
| </jbpm-configuration>
<persistence-unit name="formworxPU">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
| <property name="hibernate.show_sql" value="false" />
| <property name="hibernate.format_sql" value="false" />
| <property name="hibernate.archive.autodetection" value="class" />
| <property name="hibernate.connection.url" value="jdbc:hsqldb:target/test-hibernate" />
| <property name="hibernate.connection.username" value="sa" />
| <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
| <property name="mappingLocations">
| <list>
| <value>classpath:jbpm.execution.hbm.xml</value>
| <value>classpath:jbpm.repository.hbm.xml</value>
| <value>classpath:jbpm.task.hbm.xml</value>
| <value>classpath:jbpm.history.hbm.xml</value>
| </list>
| </property>
| </properties>
| </persistence-unit>
| </persistence>
<bean id="entityManagerFactory"
| class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
| <property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
| <property name="persistenceUnitManager" ref="persistenceUnitManager" />
| </bean>
|
| <!-- Publishing session factory for use in jBPM -->
| <bean id="sessionFactory" factory-bean="entityManagerFactory"
| factory-method="getSessionFactory">
| </bean>
If I comment out the sessionFactory bean I get:
Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine()] threw exception; nested exception is org.jbpm.pvm.internal.wire.WireException: couldn't find hibernate-session-factory by type to open a hibernate-session
If I do leave the sessionFactory defined, then I get the same old error:
Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine()] threw exception; nested exception is org.hibernate.MappingException: Unknown entity: org.jbpm.pvm.internal.id.PropertyImpl
My pom.xml contains the following entry:
<dependency>
| <groupId>org.jbpm.jbpm4</groupId>
| <artifactId>jbpm-pvm</artifactId>
| <version>4.2</version>
| </dependency>
and when I look in my repository, I find jbpm-pvm-4.2.jar which contains jbpm.repository.hbm.xml which contains:
<class name="org.jbpm.pvm.internal.id.PropertyImpl" table="JBPM4_PROPERTY">
| <id name="key" column="KEY_">
| <generator class="assigned" />
| </id>
| <version name="version" column="VERSION_" />
| <property name="value" column="VALUE_" />
| </class>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265901#4265901
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265901
16 years, 4 months
[jBPM Users] - Re: jBPM 4.2 GWT Console Login
by c.kloy
I configured the realm in the login-config.xml if the jboss instance.
| <application-policy name="jbpm-console">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
| <module-option name="dsJndiName">java:/JbpmDS</module-option>
| <module-option name="principalsQuery"> SELECT PASSWORD_ FROM JBPM4_ID_USER WHERE ID_=? </module-option>
| <module-option name="rolesQuery">
| SELECT g.NAME_ ,'Roles' FROM JBPM4_ID_USER u, JBPM4_ID_MEMBERSHIP m, JBPM4_ID_GROUP g
| WHERE g.TYPE_='security-role' AND m.GROUP_ = g.DBID_ AND m.USER_ = u.DBID_ AND u.ID_=? </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
I also tried the names "jbpm" or "other". The results in the logs are the same.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265870#4265870
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265870
16 years, 4 months
[jBPM Users] - Error while creating process
by TejJBPM
Hi all
I have been trying the hello world example in http://www.jorambarrez.be/blog/2009/07/01/jbpm4-hello-world
I have configured and when I run the main class which just prints a hello world message..I get this exception..Can anybody guide me what could be wrong..? thanks in advance..
org.jbpm.api.JbpmException: couldn't instantiate configuration of type org.jbpm.pvm.internal.cfg.ProcessEngineImpl
| org.jbpm.api.Configuration.instantiate(Configuration.java:92)
| org.jbpm.api.Configuration.<init>(Configuration.java:62)
| org.jbpm.api.Configuration.<init>(Configuration.java:51)
| be.jorambarrez.jbpm4.helloworld.Main.doGet(Main.java:31)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
| root cause
|
| java.lang.ClassCastException: org.jbpm.pvm.internal.cfg.ProcessEngineImpl cannot be cast to org.jbpm.api.Configuration
| org.jbpm.api.Configuration.instantiate(Configuration.java:90)
| org.jbpm.api.Configuration.<init>(Configuration.java:62)
| org.jbpm.api.Configuration.<init>(Configuration.java:51)
| be.jorambarrez.jbpm4.helloworld.Main.doGet(Main.java:31)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265856#4265856
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265856
16 years, 4 months
[jBPM Users] - [jBPM 4.2] MySQLIntegrityConstraintViolationException ending
by xalperte
This is the exception thrown by the engine when I try to __end__ a running instance using the EndProcessInstance command. The instance has one active task (Evaluate web order), and that task has a swimlane associated (Sales Representative).
It seems a problem with the swimlane relationship.
NOTE: I already have configured the dialect to "org.hibernate.dialect.MySQLInnoDBDialect".
The exception:
| com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`bpm4_jbpm/jbpm4_task`, CONSTRAINT `FK_TASK_SWIML` FOREIGN KEY (`SWIMLANE_`) REFERENCES `jbpm4_swimlane` (`DBID_`))
|
The process definition:
| <?xml version="1.0" encoding="UTF-8"?>
| <process description="This is a test process to test: tasks, swimlanes, reminder/notifications, timers." name="Test Websale" xmlns="http://jbpm.org/4.2/jpdl">
| <swimlane assignee="${buyer}" name="Buyer"/>
| <swimlane candidate-groups="sales" name="Sales Representative"/>
| <swimlane assignee="jim" name="Finantial Department"/>
| <swimlane assignee="luci" name="Shippment Department"/>
|
| <start form="tasks/form.create.xhtml" g="81,126,48,48" name="Create new web sale order">
| <transition g="-51,-24" name="Start web sale" to="Evaluate web order"/>
| </start>
|
| <task g="209,110,153,80" name="Evaluate web order" swimlane="Sales Representative">
| <on event="timeout">
| <timer duedate="3 days"/>
| <event-listener class="com.rudder.bpm4.processes.tests.websale.Escalate">
| <field name="swimlaneName"><string value="Sales Representative"/></field>
| <field name="roleName"><string value="manager"/></field>
| <field name="defaultUser"><string value="jim"/></field>
| </event-listener>
| </on>
| <reminder duedate="1 day" repeat="4 hours"/>
| <transition g="220,245:-67,-3" name="More info needed" to="Fix web order data"/>
| <transition g="-31,-24" name="Order ok" to="Processing Fork"/>
| </task>
|
| <task g="204,300,169,43" name="Fix web order data" swimlane="Buyer">
| <!-- notification/ --> <!-- Workaround for the notification tag, force the email sent using timer -->
| <!-- on event="start" -->
| <!-- mail template="task-notification" / -->
| <!-- event-listener class="org.jbpm.jpdl.internal.activity.MailListener"></event-listener -->
| <!-- /on -->
| <transition g="363,246:-62,-2" name="More info added" to="Evaluate web order"/>
| </task>
|
| <fork g="432,126,48,48" name="Processing Fork">
| <transition g="457,78:-83,-22" name="Process payment" to="Wait for money"/>
| <transition g="457,220:-67,4" name="Process shipping" to="Ship item"/>
| </fork>
|
| <task g="509,38,116,80" name="Wait for money" swimlane="Finantial Department">
| <!-- notification/ -->
| <transition g="-42,-24" name="Update stock" to="Update books"/>
| </task>
|
| <state g="615,180,100,80" name="Ship item">
| <transition g="862,221:-136,-23" name="Items sent" to="Processing Join"/>
| </state>
|
| <join g="839,126,48,48" name="Processing Join">
| <transition g="-39,-31" name="Close order" to="Web sale processed"/>
| </join>
|
| <end g="949,126,48,48" name="Web sale processed" state="completed"/>
|
| <state g="714,39,117,78" name="Update books">
| <transition g="862,76:-30,-26" name="Stock updated" to="Processing Join"/>
| </state>
| </process>
|
You need to start the process with the variable "buyer". This variable will maintain the userId of the user that starts the process. It will be used by the "Buyer" swimlane (assignee="${buyer}").
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265854#4265854
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265854
16 years, 4 months