[jBPM Development] - Trunk build failure
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion
"Trunk build failure"
To view the discussion, visit: http://community.jboss.org/message/547615#547615
--------------------------------------------------------------
Seems like latest revision (6404 - fix hudson job) can broke the build. At least it broke for me (MacOS, Java 1.5, HSQLDB) I checked Hudson build but looks like that revision was not yet built.
The error occurs in RepositoryServiceTest with following error:
20:15:22,136 FIN | [RepositoryServiceTest] === starting testNonLatinProcessName =============================
20:15:22,137 FIN | [HibernateSessionResource] ----- beginning hibernate tx 7581301 --------------------------------------------------------
### EXCEPTION ###########################################
20:15:22,148 INF | [DefaultCommandService] exception while executing command org.jbpm.test.process.RepositoryServiceTest$1@66c122
java.sql.SQLException: Unexpected token: @ in statement [select ]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at org.jbpm.test.process.RepositoryServiceTest$1.execute(RepositoryServiceTest.java:394)
at org.jbpm.test.process.RepositoryServiceTest$1.execute(RepositoryServiceTest.java:1)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.execute(ProcessEngineImpl.java:300)
at org.jbpm.test.process.RepositoryServiceTest.testNonLatinProcessName(RepositoryServiceTest.java:388)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
### EXCEPTION ###########################################
20:15:22,149 FIN | [HibernateSessionResource] ----- rolling back hibernate tx 1159510 -----------------------------------------------------
20:15:22,151 FIN | [RepositoryServiceTest] === ending testNonLatinProcessName =============================
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547615#547615]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[jBPM Development] - Fork activities with assignment handlers
by Janarthanan K S
Janarthanan K S [http://community.jboss.org/people/janashanmug] created the discussion
"Fork activities with assignment handlers"
To view the discussion, visit: http://community.jboss.org/message/547291#547291
--------------------------------------------------------------
Hi
The fork activities does not end in join while using assignment-handlers in the tasks. Following is my jpdl. It seems the control does not goes beyond the task "Parallel Queue".
Is the way I handle the fork is correct?
-------------------------------------------------------------------------------
hello_world.assignee.jpdl.xml
-------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<process name="helloWorld" xmlns=" http://jbpm.org/4.3/jpdl http://jbpm.org/4.3/jpdl">
<start g="27,248,80,40">
<transition to="fork1"/>
</start>
<fork g="158,247,91,65" name="fork1">
<on continue="exclusive" event="printHelloEnd"/>
<transition g="182,486:" to="Parallel Queue"/>
<transition g="182,61:121,-15" name="world" to="printHelloWorld"/>
</fork>
<join g="513,267,61,49" name="join1" continue="exclusive">
<transition to="printHelloEnd"/>
</join>
<task g="224,457,211,57" name="Parallel Queue">
<assignment-handler class="cos.workflow.helloworld.HelloWorldAssignmentHandler"/>
<transition g="537,487:" to="join1"/>
</task>
<java class="cos.workflow.helloworld.Printer" g="468,42,138,40" method="printHelloWorld" name="printHelloWorld">
<transition g="13,-27" name="join" to="join1"/>
</java>
<java class="cos.workflow.helloworld.Printer" g="664,268,116,48" method="printHelloEnd" name="printHelloEnd">
<transition to="theEnd"/>
</java>
<end g="893,269,80,40" name="theEnd"/>
</process>
-------------------------------------------------------------------------------
cos.workflow.helloworld.Main
-------------------------------------------------------------------------------
public class Main {
public static void main(String[] args) {
// Build jBPM services
ProcessEngine processEngine = new Configuration().setResource("workflow.jbpm.cfg.xml").buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
ExecutionService executionService = processEngine.getExecutionService();
// Deploy helloWorld process definition and start a process instance
repositoryService.createDeployment().addResourceFromClasspath("hello_world.assignee.jpdl.xml").deploy();
ProcessInstance processInstance = executionService.startProcessInstanceByKey("helloWorld");
TaskService taskService = processEngine.getTaskService();
String pid = processInstance.getId();
List < Task > taskList = taskService.findPersonalTasks("admin");
Task task = taskList.get(0);
taskService.completeTask(task.getId());
processInstance = executionService.findProcessInstanceById(pid);
}
}
-------------------------------------------------------------------------------
cos.workflow.helloworld.HelloWorldAssignmentHandler
-------------------------------------------------------------------------------
public class HelloWorldAssignmentHandler implements COSAssignmentHandler {
/**
*
*/
private static final long serialVersionUID = 1L;
String userId;
/* (non-Javadoc)
* @see org.jbpm.api.task.AssignmentHandler#assign(org.jbpm.api.task.Assignable, org.jbpm.api.model.OpenExecution)
*/
public void assign(Assignable assignable, OpenExecution execution)
throws Exception {
userId = "admin";
System.out.println("cos.workflow.helloworld.HelloWorldAssignmentHandler");
assignable.setAssignee(userId);
}
}
-------------------------------------------------------------------------------
cos.workflow.helloworld.Printer
-------------------------------------------------------------------------------
public class Printer {
public void printHelloWorld() {
System.out.println("<---------------->");
System.out.println(" HELLO WORLD!");
System.out.println("<---------------->");
}
public void printHelloEnd() {
System.out.println("<---------------->");
System.out.println(" HELLO END!");
System.out.println("<---------------->");
}
}
Thanks
Jana.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547291#547291]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months