[JBoss jBPM] - Re: Class Cast Exception while the BPEL Process Ends
by dhanushgopinath
Hi,
Inorder to solve this problem, I tried upgrading my jbpm bpel instance to 1.1.1
I ran my process and now it throws a slightly different exception.
17:52:39,153 ERROR [GraphElement] action threw exception: org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory
| java.lang.ClassCastException: org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory
| at org.jbpm.svc.Services.getServiceFactory(Services.java:131)
| at org.jbpm.svc.Services.getService(Services.java:148)
| at org.jbpm.svc.Services.getCurrentService(Services.java:94)
| at org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:328)
| 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:585)
Now its looking throwing class cast exception for the class EntitySchedulerServiceFactory.
Can I some how disable it, as I do not need the scheduler service in my application?
If so What should be done so that I can disable it ? Will commenting of the line
<service name="scheduler" factory="org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory" />
in jbpm.cfg.xml suffice ?
Please let me know.
Thanks
Dhanush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197105#4197105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197105
15 years, 6 months
[JBoss jBPM] - why the single hibernate oracle sequence
by erciped
Hi
Why does the hibernate only use the single oracle database sequence? We tend to use a separate sequence for every table unless we need to have uniqueness across multiple tables.
Does jBPM use the sequence value in any way? We had the same problem when we used OS Workflow in that the whole framework schema used one sequence [hibernate_sequence] and the application code also required the separate entities to have unique identifiers. We thought that was odd and only found out when we were cleaning up our hibernate mappings and creating separate sequences and OSWorkflow started acting funny. Nast bug.
Any help would be appreciated as we want to have separate sequences for each table. We don't mind some table sharing a sequence if necessary.
Eric
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197073#4197073
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197073
15 years, 6 months
[JBoss jBPM] - Re: SLSB + JBPM Rollback
by AmiraTalbi
here is my jbpm.cfg.xml config :
<service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false /></field>
| <field name="isCurrentSessionEnabled"><true /></field>
| </bean>
| </factory>
| </service>
and hibernate.Cfg
| <?xml version='1.0' encoding='utf-8'?>
|
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
|
| <!-- hibernate dialect -->
|
| <!-- JDBC connection properties (end) -->
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
| <!-- DataSource properties (begin) -->
| <property name="hibernate.connection.datasource">java:/jbpm</property>
| <!--==== DataSource properties (end) -->
|
| <!-- JTA transaction properties (begin) === -->
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <!--==== JTA transaction properties (end) -->
|
| <!-- 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) -->
|
| <!-- logging properties (begin) ===
| <property name="hibernate.show_sql">false</property>
| <property name="hibernate.format_sql">true</property>
| <property name="hibernate.use_sql_comments">true</property>
| ==== logging properties (end) -->
|
|
| </session-factory>
| </hibernate-configuration>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197059#4197059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197059
15 years, 6 months
[JBoss jBPM] - Cancelling dynamically created tasks
by redguy666
Have such case:
in one task-node I create few tasks for different actors (every one of them has to accept processed document). This is done in node-enter event when entering this task-node.
I would like to cancel all pending tasks in this node when first of those actors rejects (takes "reject" transition). How to do this?
When I write handler for task-end event that iterates through pending tasks and calls "cancel" method I get exception that the token is locked...
simplified example of this proces:
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Proces">
|
| <start-state name="start">
| <transition to="accept" name="send"/>
| </start-state>
|
| <task-node name="accept" create-tasks="false" signal="last-wait">
| <event type="node-enter">
| <action name="create tasks" class="xxx.CreateAcceptTasks">
| <actorIds>actor1,actor2,actor3,actor4</actorIds>
| </action>
| </event>
| <event type="task-end">
| <action name="is positive?" class="xxx.AcceptTaskEnd">
| </action>
| </event>
| <task name="accept"></task>
| <transition to="accepted" name="accept"></transition>
| <transition to="rejected" name="reject"></transition>
| </task-node>
|
| ...
|
| </process-definition>
|
xxx.CreateAcceptTasks
just creates TaskInstances of "accept" Task and assignes them to actors provided in param.
xxx.AcceptTaskEnd
???
when I tried to fetch pending tasks with executionContext.getTaskMgmtInstance().getTaskInstances()
and then call "cancel" on every pending tasks (that is not equal to current task of course) - I get "Token locked" exception...
Any help would be appreciate...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197057#4197057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197057
15 years, 6 months