[jboss-user] [JBoss jBPM] - Transaction problem within a timer

2009-05-20 Thread Tal
I have a timer with an action that invokes seam expression, within the action 
method, I invoke processInstance.suspend();
Seems like the process get suspended, but then, I get the following exception:

20:14:49,781 ERROR [AbstractFlushingEventListener] Could not synchronize 
database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another 
transaction (or unsaved-value mapping was incorrect): 
[org.jbpm.graph.exe.Token#140]
at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
at 
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
at 
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
at 
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at 
org.jbpm.persistence.db.DbPersistenceService.flushSession(DbPersistenceService.java:261)
at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:200)
at org.jbpm.svc.Services.close(Services.java:243)
at org.jbpm.JbpmContext.close(JbpmContext.java:133)
at 
org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:195)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:62)
20:14:49,786 INFO [DbPersistenceService] problem flushing session: optimistic 
locking failed
20:14:49,786 INFO [Services] optimistic locking failed, could not close 
service: persistence


What causes it and how can I avoid it?

Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232130#4232130

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Mutiple timers in a task node problem

2009-05-05 Thread Tal
Anyone tried to run the example process and know of a solution?
I'm kinda stucked here...


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228654#4228654

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Mutiple timers in a task node problem

2009-05-02 Thread Tal
Hi,
I've created an example process, one task node, two timers on it which 
represents two sla timers (i.e. should invoke an action that will send a 
reminder to the task actor if not acting on time), what happens is the same, 
first one is executed, second one is not, still the same differences in the 
database:






example_process



























***
The WfAction class:


@Name("wfAction")

public class WfAction {

public void write(String s) {
System.out.println(s);
}
}


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227854#4227854

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Mutiple timers in a task node problem

2009-04-27 Thread Tal
Hello,

I'm adding a timer on a task node, and attaching the timer to an action with an 
expression,
Then I'm adding another timer (with another action as an expression) to the 
same node,
When I'm creating an instance of the deployed process, and looking on the task 
node, two jobs are created in the jbpm_job table,
yet only one of them contains a value for GRAPHELEMENTTYPE_ and GRAPHELEMENT_ 
and the other contains nulls in both fields,

When the due date of the first has arrived, the action is executed and the job 
is deleted from the table as expected,
When the due date of the second arrives, it is deleted from the table yet the 
action not being executed,



What could be the reason for that? do I have any configuration problem or it is 
a bug?
I tried using the latest jbpm-jpdl snapshot, same behavior,



Many thanks,


Tal.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226644#4226644

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226644
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user