No, the AssignmentHandler isn't being called when I use the process from the 
database. I added some logging to the assignment handler and it looks like it's 
only called once the task is trying to be created. Here's the log from the two 
methods being run:


  | 10:24:06,281 INFO  [UserAdminScreen] Starting Test Process via Coded 
Definition
  | 10:24:06,281 DEBUG [GraphElement] event 'process-start' on 
'ProcessDefinition(the baby process)' for 'Token(/)'
  | 10:24:06,296 DEBUG [GraphElement] event 'before-signal' on 
'StartState(start)' for 'Token(/)'
  | 10:24:06,296 DEBUG [GraphElement] event 'node-leave' on 'StartState(start)' 
for 'Token(/)'
  | 10:24:06,296 DEBUG [GraphElement] event 'transition' on 'Transition(baby 
cries)' for 'Token(/)'
  | 10:24:06,296 DEBUG [GraphElement] event 'node-enter' on 'TaskNode(t)' for 
'Token(/)'
  | 10:24:06,296 DEBUG [GraphElement] event 'task-create' on 'Task(change 
nappy)' for 'Token(/)'
  | 10:24:06,296 INFO  [NappyAssignmentHandler] <-------------- Setting Actor 
ID in NappyAssignmentHandler
  | 10:24:06,296 DEBUG [GraphElement] event 'task-assign' on 'Task(change 
nappy)' for 'Token(/)'
  | 10:24:06,296 INFO  [NappyAssignmentHandler] --------------> DONE SETTING 
ACTOR
  | 10:24:06,296 DEBUG [GraphElement] event 'after-signal' on 
'StartState(start)' for 'Token(/)'
  | 10:24:06,296 INFO  [UserAdminScreen] Token Node: TaskNode(t)
  | 

Here is the same process def loaded from the DB, but not task is created:


  | 10:24:08,046 DEBUG [JbpmContextInfo] creating jbpm context with service 
factories '[message, scheduler, logging, persist
  | ence, authentication]'
  | 10:24:08,046 DEBUG [JbpmContext] creating JbpmContext
  | 10:24:08,046 INFO  [UserAdminScreen] Starting Process via Definition [Test]
  | 10:24:08,046 DEBUG [DbPersistenceServiceFactory] creating persistence 
service
  | 10:24:08,046 DEBUG [DbPersistenceService] creating hibernate session
  | 10:24:08,046 DEBUG [DbPersistenceService] beginning hibernate transaction
  | 10:24:08,062 DEBUG [GraphElement] event 'process-start' on 
'ProcessDefinition(Test)' for 'Token(/)'
  | 10:24:08,062 DEBUG [GraphElement] event 'before-signal' on 
'StartState(start)' for 'Token(/)'
  | 10:24:08,062 DEBUG [GraphElement] event 'node-leave' on 'StartState(start)' 
for 'Token(/)'
  | 10:24:08,062 DEBUG [GraphElement] event 'transition' on 'Transition(baby 
cries)' for 'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'node-enter' on 'TaskNode(t)' for 
'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'node-leave' on 'TaskNode(t)' for 
'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'transition' on 
'Transition(1281264)' for 'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'node-enter' on 'EndState(end)' for 
'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'process-end' on 
'ProcessDefinition(Test)' for 'Token(/)'
  | 10:24:08,078 DEBUG [GraphElement] event 'after-signal' on 
'StartState(start)' for 'Token(/)'
  | 10:24:08,078 INFO  [UserAdminScreen] Token Node: EndState(end)
  | 

Is there any other reason that the task wouldn't be created? Does anyone else 
have this problem?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978552
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to