Dear Elmo,
I am trying the modify my code and run it, but I got a No row with the given
identifier exists. Not sure why.
BTW, I have tried the newProcessInstance() also. It runs but it suffers from
performance and stack overflow issue. I guess we are not supposed to loop a
ProcessInstance
Hi Elmo,
Ummm.. I am not very understand. You mean when ProcessInstance starts, in one
of the nodes, it will create a separate thread, then the ProcessInstance will
suspend, or return to main and save.
When an event happens, this thread will load that ProcessInstance, and then
continue its
This sample is an excerpt from arbitrary cycle of the workflow patterns:
| process-definition name=arbitrary-cycle
|
| start-state name=A
| transition to=B/
| /start-state
|
| state name=B
| timer duedate=20 seconds transition=C
|scriptprint(
Oops sorry, must have been sleepy. In the thread you must retrieve the old
process instance not create a new one. Here is the correction
| public void run() {
| //this class executes a long running process. It returns a status
| boolean pass =
Hi Philip,
Sorry for the delayed response. We've been busy catching up on deadlines.
Anyway may I ask why this code, looping then redeploying?
| while (true) {
| jbpmConfiguration = null;
| processDefinition = null;
|
Hi Elmo,
Sorry I keeps on bothering you. Hopefully I didn't interfere your normal work.
Ummm... It is a long story. In our project, we wish to use jBPM engine to
process incoming events. We treat a ProcessInstance as the big boss. When the
program starts, a ProcessInstance will be created,
Hi Philip,
I'd just like to illustrate what I meant with an example. Why don't you try
it this way and tell me if it works for you:
| process-definition name=sample-event-listener
| start-state
| transition to=event-listener/
| /start-state
|
| state
Hello Elmo,
Thanks for your pointer. I have checked out the site and look like Pattern 10
(Arbitrary Cycle) and Pattern 11 (Implicit Termination) suitable my needs. I am
trying to work on Pattern 10 right now. When I mimic the pattern in Process
Definition, it run. But when it has run for a
Hi Philip,
My guess would be a database issue. How are you closing your transactions?
You should not hold on to sessions for long periods. Saving should only take a
few seconds, then the database connection should be released. For long
transactions, it is preferrable to signal your
Elmo,
I am using MySQL 5.0.18. I am not sure if it is the cause of the problem.
Please find attached the processdefinition I am using. I draw it using
jBPM-Designer and then modify myself.
?xml version=1.0 encoding=UTF-8?
|
| process-definition
| xmlns=urn:jbpm.org:jpdl-3.1
Hi Philip,
I suggest you take a look at this site www.workflowpatterns.com, select a
pattern there that meets your requirement and reference it. I think most people
here are familiar with the site and makes it easy to understand what you want.
It is also quite informative.
Regards,
11 matches
Mail list logo