[jboss-user] [jBPM Users] - Re: workflow design about wait states

mmusaji do-not-reply at jboss.com
Fri Sep 11 07:39:18 EDT 2009


"kukeltje" wrote : 
  | 
  | You use async but do you have a job executor in your unit test? If not, the jobs are never executed and your custom nodes are never executed
  | 
  | 

They are executed. I can see that in the output as well as in the objects when I retrieve them. Using the job executor before didnt work correctly as the jobs were being executed sync not async.

Here's a bit of the output to show the job executing

  | 12:33:44,091 FIN | [BaseJbpmTestCase] === starting testSimple =============================
  | Parsing process Request
  | 12:33:45,419 FIN | [ExecuteActivity] executing activity(evaluate parse result)
  | process ID: PROCESS_ID 001
  | 12:33:45,451 FIN | [ExecuteActivity] executing activity(find providers)
  | Finding Providers
  | 12:33:45,451 FIN | [ExecuteActivity] executing activity(fork)
  | 12:33:45,466 FIN | [DefaultIdGenerator] generated execution id process.112.validate one
  | 12:33:45,466 FIN | [ExecutionImpl] created execution[process.112.validate one]
  | 12:33:45,466 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage
  | 12:33:45,466 INF   | [JobExecutorThread] starting...
  | 12:33:45,466 INF     | [JobExecutorThread] starting...
  | 12:33:45,466 INF       | [DispatcherThread] starting...
  | 12:33:45,466 INF         | [JobExecutorThread] starting...
  | 12:33:45,466 FIN | [DefaultIdGenerator] generated execution id process.112.validate two
  | 12:33:45,466 FIN | [ExecutionImpl] created execution[process.112.validate two]
  | 12:33:45,466 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage
  | 12:33:45,482 FIN | [DefaultIdGenerator] generated execution id process.112.validate three
  | 12:33:45,482 FIN | [ExecutionImpl] created execution[process.112.validate three]
  | 12:33:45,482 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage
  | 12:33:45,482 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:45,482 FIN       | [AcquireJobsCmd] locking jobs []
  | 12:33:45,482 FIN       | [GetNextDueDateCmd] getting next due date...
  | 12:33:45,482 FIN       | [GetNextDueDateCmd] next due date is null
  | 12:33:45,482 FIN       | [DispatcherThread] DispatcherThread will wait for max 600ms on org.jbpm.pvm.internal.jobexecutor.JobExecutor at 171194d
  | 12:33:45,482 FIN       | [DispatcherThread] DispatcherThread woke up
  | 12:33:45,482 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:45,482 FIN       | [AcquireJobsCmd] locking jobs [109]
  | 12:33:45,482 FIN       | [DispatcherThread] pushing jobs on the queue [109]
  | 12:33:45,482 FIN       | [DispatcherThread] added jobs [109] to the queue
  | 12:33:45,482 FIN   | [JobExecutorThread] took job(s) [109] from queue
  | 12:33:45,482 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:45,498 FIN   | [ExecuteJobCmd] executing job ExecuteActivityMessage[109]...
  | 12:33:45,498 FIN       | [AcquireJobsCmd] locking jobs [110]
  | 12:33:45,498 FIN       | [DispatcherThread] pushing jobs on the queue [110]
  | 12:33:45,498 FIN       | [DispatcherThread] added jobs [110] to the queue
  | 12:33:45,498 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:45,498 FIN       | [AcquireJobsCmd] locking jobs [111]
  | 12:33:45,498 FIN     | [JobExecutorThread] took job(s) [110] from queue
  | 12:33:45,498 FIN       | [DispatcherThread] pushing jobs on the queue [111]
  | 12:33:45,498 FIN       | [DispatcherThread] added jobs [111] to the queue
  | 12:33:45,498 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:45,498 FIN         | [JobExecutorThread] took job(s) [111] from queue
  | 12:33:45,498 FIN       | [AcquireJobsCmd] locking jobs []
  | 12:33:45,513 FIN         | [ExecuteJobCmd] executing job ExecuteActivityMessage[111]...
  | 12:33:45,513 FIN     | [ExecuteJobCmd] executing job ExecuteActivityMessage[110]...
  | 12:33:45,513 FIN   | [ExecuteActivity] execution[process.112.validate one] executes activity(validate one request)
  | 12:33:45,560 FIN       | [GetNextDueDateCmd] getting next due date...
  | 12:33:45,576 FIN       | [GetNextDueDateCmd] next due date is null
  | 12:33:45,576 FIN       | [DispatcherThread] DispatcherThread will wait for max 600ms on org.jbpm.pvm.internal.jobexecutor.JobExecutor at 171194d
  | 12:33:45,576 FIN     | [ExecuteActivity] execution[process.112.validate two] executes activity(validate two request)
  | 12:33:45,576 FIN         | [ExecuteActivity] execution[process.112.validate three] executes activity(validate three request)
  | 12:33:46,169 FIN       | [DispatcherThread] DispatcherThread woke up
  | 12:33:46,169 FIN       | [AcquireJobsCmd] start querying first acquirable job...
  | 12:33:46,169 FIN       | [AcquireJobsCmd] locking jobs []
  | 12:33:46,169 FIN       | [GetNextDueDateCmd] getting next due date...
  | 12:33:46,169 FIN       | [GetNextDueDateCmd] next due date is null
  | 12:33:46,169 FIN       | [DispatcherThread] DispatcherThread will wait for max 600ms on org.jbpm.pvm.internal.jobexecutor.JobExecutor at 171194d
  | 

I have output which is from the classes so i know for sure they are being executed.

I can't remove "async"... they need to run async. This is the problem I think of why the wait state cannot be found.

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254725



More information about the jboss-user mailing list