I've figured it out. Maybe this will help someone else. I did some additional looking
into the process as loaded. Here's the code I used:
| // Load a process definition from the database
| ProcessDefinition myDef =
jbpmContext.getGraphSession().findLatestProcessDefinition(processName);
|
| // Create the process
| ProcessInstance newProcess = new ProcessInstance(myDef);
|
| // Signal the root token
| Token token = newProcess.getRootToken();
| logger.info("Root Token: " + token.getNode());
|
| Vector nodes = new Vector(myDef.getNodes());
|
| for (int i = 0; i < nodes.size(); i++)
| {
| Object test = nodes.get(i);
| logger.info("Type: " + test.getClass().getName());
|
| if
(test.getClass().getName().equalsIgnoreCase("org.jbpm.graph.node.TaskNode"))
| {
| TaskNode myNode = (TaskNode)test;
| logger.info("Are we creating tasks? " +
myNode.getCreateTasks());
| }
| }
|
|
The result of getCreateTasks() is 'false'. This is a problem as it should be
'true'. I tracked it down to a problem with the MySQL driver version I was using
(3.0.9) vs. a newer version available - which also happens to be bundled in the jbpm
starter kit. The updated MySQL driver version 3.1.7 works and my tasks are being created
now.
Oh joy. Well, hope this helps someone else.
The following links are related to the MySQL Version I have 5.0.22 and Hibernate:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-729
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978912#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...