[jboss-user] [JBoss jBPM] - Re: Blocked signal call

2007-05-15 Thread avivstav
What do you mean depends on the implementation, How is the JBPM engine implement and manage the Flow? why is it related to my implementation? Suppose my ActionHandler only pring message to log and update record in DB using hibernate, View the original post :

[jboss-user] [JBoss jBPM] - Exception - uniqeue constraint

2007-05-15 Thread avivstav
Hi I run the following code: | public Long startFlow(long cid,String problem, long sid) { | Long processDefId = null; | SupportRequest supportRequest = null; | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); |

[jboss-user] [JBoss jBPM] - Re: Exception - uniqeue constraint

2007-05-15 Thread avivstav
I already found the problem , 10x View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045762#4045762 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045762 ___ jboss-user mailing list

[jboss-user] [JBoss jBPM] - Re: Exception - uniqeue constraint

2007-05-15 Thread avivstav
Yes the problem is related to the post you send, I realize in JBPM 3.2 the InstanceProcess.hbm.xml contains the constrains, 10x a lot View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045801#4045801 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: Exception - uniqeue constraint

2007-05-15 Thread avivstav
I just remove the constraint as suggets here http://jira.jboss.com/jira/browse/JBPM-913 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045808#4045808 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045808

[jboss-user] [JBoss jBPM] - Blocked signal call

2007-05-14 Thread avivstav
Hi I wrote a simple flow that use web events as trigger to continue the flow. I use the following code to start the flow: | public Long startFlow(long id,String problem, long sid) { | | Long processDefId = null; | JbpmContext jbpmContext =

[jboss-user] [JBoss jBPM] - Re: Blocked signal call

2007-05-14 Thread avivstav
Yes 'That state' I mean to current state the action handler do some job: save record in DB AS I mentioned eralier the start trigger for the flow is web based ( using Ajax) and it seems the Ajax call is back while the action handler related to the current node is running, Thats what I mean the

[jboss-user] [JBoss jBPM] - Re: Interaction between two actors

2007-05-08 Thread avivstav
Hi Yes from the quote I got the understanding that it act as java.wait(), but I realize it's not so, and indeed it after signal() it saves the state to database, Then when I get the event I load the process from DB using the process definition id and continue on with the flow, somehow now I have

[jboss-user] [JBoss jBPM] - Re: Interaction between two actors

2007-05-08 Thread avivstav
I think I understand the problem, I bound the action of the start-state inside transition action. 10x for your help and support View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043954#4043954 Reply to the post :

[jboss-user] [JBoss jBPM] - Interaction between two actors

2007-05-07 Thread avivstav
Hi I am quite new to JBPM, and I need to cordinate between two seperate Threads using JBPM, Suppose using the first example flow from the start-kit: | process-definition | start-state | transition to='s' / | /start-state | state name='s' |

[jboss-user] [JBoss jBPM] - Re: Interaction between two actors

2007-05-07 Thread avivstav
Should I signal the main thread upon operation done by the second thread? In that case I should use callback or any other mechanism, and continue from the state moved by the signal, am I right? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043701#4043701

[jboss-user] [JBoss jBPM] - Re: Interaction between two actors

2007-05-07 Thread avivstav
Hi I understand the point but in chapter 9 in JBPM tutorial http://docs.jboss.com/jbpm/v3/userguide/processmodelling.html section 9.3.1 they talk about node responsibilitiesto propagate the execution, anonymous wrote : 1. not propagate the execution. In that case the node behaves as a wait

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-06 Thread avivstav
I know there is a problem with the hibernate.cfg.xml file but I wonder if it's my application configuration problem, I add the following entries relevant to hibernate config as documented: bean id=jbpmDataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource |

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-06 Thread avivstav
Yes it looks like hibernate cfg file problem, the only relevant entries related to hibernate is placed in applicationContext-jbpmhibernate.xml file is: | bean id=jbpmDataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource | property

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-06 Thread avivstav
Somehow it seems the JBPM use it's default configuration files, as I described in the question, I map to my own cfg file as follows: bean id=jbmpConfigurationResource class=org.springframework.core.io.ClassPathResource | constructor-arg type=java.lang.String value=jbpm.cfg.xml/ |

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-06 Thread avivstav
I overcome the problems described above, now I get the following error: | 2007-05-06 18:41:19,328 ERROR [org.jbpm.job.executor.JobExecutorThread] exception in job executor thread. waiting 5000 milliseconds | org.hibernate.HibernateException: hibernate.cfg.xml not found | at

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-03 Thread avivstav
I read Chapter 5 in the Jboss docs regarding the web-deploy which contains and start the timer services ( http://docs.jboss.org/jbpm/v3/userguide/deployment.html#webapplication), My application is based on Spring framework which runs with JBoss, and I alreay configured the JBPM as a context

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-03 Thread avivstav
I use JBPM 3.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042772#4042772 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042772 ___ jboss-user mailing list

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-03 Thread avivstav
I add the JobExecutorServlet to my configuration as mentiond and I get the following error while satrt up the application: 2007-05-03 15:18:00,328 ERROR [org.jbpm.job.executor.JobExecutorThread] exception in job executor thread. waiting 4 milliseconds org.hibernate.MappingException: invalid

[jboss-user] [JBoss jBPM] - JBPM Timer Problem

2007-05-02 Thread avivstav
Hi I try to creater simple flow including Timer: process-definition name=testprocess3 | | start-state name='start' | transition to='wait' / | /start-state | | state name='wait' | timer name='reminder' | duedate='5 seconds' |

[jboss-user] [JBoss jBPM] - Re: JBPM Timer Problem

2007-05-02 Thread avivstav
I also move the transition from the definition: state name='wait' | timer name='reminder' | duedate='5 seconds' | repeat='5 seconds' | action class=MyActionHandler' / | /timer | transition