I've added... | processInstance = executionService.findProcessInstanceById(processInstanceId); | | Execution executionInFour = processInstance.findActiveExecutionIn("custom four"); | assertNotNull(executionInFour); | processInstance = executionService.signalExecutionById(executionInFour.getId()); | ...to my unit test.
Now I'm not getting any exceptions and the output looks like this: | 15:14:34,393 FIN | [BaseJbpmTestCase] === starting testProcess ============================= | 15:14:34,518 FIN | [BaseJbpmTestCase] using ProcessEngine 78236 | log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). | log4j:WARN Please initialize the log4j system properly. | 15:14:35,675 FIN | [ProcessDefinitionImpl] creating new execution for process 'process' | 15:14:35,675 FIN | [DefaultIdGenerator] generated execution id process.277 | 15:14:35,675 FIN | [ExecuteActivity] executing activity(16408563) | 15:14:35,675 FIN | [ExecuteActivity] executing activity(custom one) | Executing | custom one | 15:14:35,690 FIN | [Signal] signalling activity(custom one), signalName=null | 15:14:35,690 FIN | [ExecuteActivity] executing activity(fork) | 15:14:35,706 FIN | [DefaultIdGenerator] generated execution id process.277.custom two | 15:14:35,706 FIN | [ExecutionImpl] created execution[process.277.custom two] | 15:14:35,706 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage | 15:14:35,706 INF | [JobExecutorThread] starting... | 15:14:35,706 INF | [JobExecutorThread] starting... | 15:14:35,706 INF | [JobExecutorThread] starting... | 15:14:35,706 INF | [DispatcherThread] starting... | 15:14:35,706 FIN | [DefaultIdGenerator] generated execution id process.277.custom three | 15:14:35,706 FIN | [ExecutionImpl] created execution[process.277.custom three] | 15:14:35,706 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage | 15:14:35,722 FIN | [AcquireJobsCmd] start querying first acquirable job... | 15:14:35,722 FIN | [AcquireJobsCmd] locking jobs [] | 15:14:35,722 FIN | [GetNextDueDateCmd] getting next due date... | 15:14:35,722 FIN | [GetNextDueDateCmd] next due date is null | 15:14:35,722 FIN | [DispatcherThread] skipped wait because new message arrived | 15:14:35,722 FIN | [AcquireJobsCmd] start querying first acquirable job... | 15:14:35,722 FIN | [AcquireJobsCmd] locking jobs [390] | 15:14:35,722 FIN | [DispatcherThread] pushing jobs on the queue [390] | 15:14:35,722 FIN | [DispatcherThread] added jobs [390] to the queue | 15:14:35,722 FIN | [JobExecutorThread] took job(s) [390] from queue | 15:14:35,722 FIN | [AcquireJobsCmd] start querying first acquirable job... | 15:14:35,722 FIN | [AcquireJobsCmd] locking jobs [391] | 15:14:35,722 FIN | [DispatcherThread] pushing jobs on the queue [391] | 15:14:35,722 FIN | [DispatcherThread] added jobs [391] to the queue | 15:14:35,722 FIN | [AcquireJobsCmd] start querying first acquirable job... | 15:14:35,737 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[390]... | 15:14:35,737 FIN | [AcquireJobsCmd] locking jobs [] | 15:14:35,737 FIN | [GetNextDueDateCmd] getting next due date... | 15:14:35,737 FIN | [GetNextDueDateCmd] next due date is null | 15:14:35,737 FIN | [DispatcherThread] DispatcherThread will wait for max 600ms on org.jbpm.pvm.internal.jobexecutor.jobexecu...@cd4544 | 15:14:35,737 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[390]... | 15:14:35,784 FIN | [JobExecutorThread] took job(s) [391] from queue | Executing | custom two | Executing | custom two | 15:14:35,784 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[391]... | 15:14:35,784 FIN | [ExecuteActivity] execution[process.277.custom two] executes activity(custom two) | 15:14:35,784 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage | 15:14:35,784 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[390] | 15:14:35,800 FIN | [ExecuteActivity] execution[process.277.custom two] executes activity(custom two) | 15:14:35,800 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage | 15:14:35,800 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[390] | 15:14:35,800 FIN | [ExecuteActivity] execution[process.277.custom three] executes activity(custom three) | 15:14:35,800 FIN | [JobExecutorMessageSession] sending message ExecuteActivityMessage | 15:14:35,800 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[391] | 15:14:35,800 FIN | [DispatcherThread] DispatcherThread woke up | 15:14:35,800 FIN | [AcquireJobsCmd] start querying first acquirable job... | Executing | custom three | 15:14:35,815 FIN | [AcquireJobsCmd] locking jobs [393, 394] | 15:14:35,815 FIN | [DispatcherThread] pushing jobs on the queue [393, 394] | 15:14:35,815 FIN | [DispatcherThread] added jobs [393, 394] to the queue | 15:14:35,815 FIN | [AcquireJobsCmd] start querying first acquirable job... | 15:14:35,815 FIN | [AcquireJobsCmd] locking jobs [] | 15:14:35,815 FIN | [JobExecutorThread] took job(s) [393, 394] from queue | 15:14:35,815 FIN | [GetNextDueDateCmd] getting next due date... | 15:14:35,815 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[393]... | 15:14:35,815 FIN | [GetNextDueDateCmd] next due date is null | 15:14:35,815 FIN | [DispatcherThread] DispatcherThread will wait for max 600ms on org.jbpm.pvm.internal.jobexecutor.jobexecu...@cd4544 | 15:14:35,815 FIN | [ExecuteActivity] execution[process.277.custom two] executes activity(join) | 15:14:35,815 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[393] | 15:14:35,831 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[394]... | 15:14:35,831 FIN | [ExecuteActivity] execution[process.277.custom three] executes activity(join) | 15:14:35,831 FIN | [ExecutionImpl] execution[process.277.custom two] ends | 15:14:35,831 FIN | [ExecutionImpl] execution[process.277.custom three] ends | 15:14:35,831 FIN | [ExecuteActivity] executing activity(custom four) | Executing | custom four | 15:14:35,831 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[394] | 15:14:35,862 FIN | [ExecuteJobCmd] job 390 no longer exists | 15:14:35,862 FIN | [ExecuteJobCmd] job 391 no longer exists | 15:14:35,862 FIN | [Signal] signalling activity(custom four), signalName=null | 15:14:35,862 FIN | [ExecuteActivity] executing activity(end) | 15:14:35,893 FIN | [DbSessionImpl] deleting history process instance process.277 | 15:14:35,909 FIN | [DbSessionImpl] deleting process instance process.277 | 15:14:35,909 FIN | [DeleteDeploymentCmd] deleting deployment 124 | 15:14:35,940 FIN | [BaseJbpmTestCase] === ending testProcess ============================= | Still uncertain if my process has ended correctly. Attempting to put this in to my "proper" workflow with more custom nodes is still showing errors. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255110#4255110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255110 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user