[jboss-user] [JBoss jBPM] - Re: SQL error executing test process
ajvarela
do-not-reply at jboss.com
Fri Jul 3 05:25:10 EDT 2009
Im using this test:
public class workflowTest extends JbpmTestCase {
|
| long deploymentDbid;
|
| //Variables
| Integer A = 1;
| Integer B = 1;
| Integer C = 0;
| Integer D = 1;
| Integer E = 1;
| Integer F = 1;
|
|
| protected void setUp() throws Exception {
| super.setUp();
|
| deploymentDbid = repositoryService.createDeployment()
| .addResourceFromClasspath(
| "org/workflow/quivir/workflowSumMul.jpdl.xml").deploy();
| }
|
| protected void tearDown() throws Exception {
| repositoryService.deleteDeploymentCascade(deploymentDbid);
|
| super.tearDown();
|
| }
|
| public void testWorkflowProcess() {
| Map<String, Integer> variables = new HashMap<String, Integer>();
| // Entradas
| variables.put("a", A);
| variables.put("b", B);
| variables.put("c", C);
| variables.put("d", D);
| variables.put("e", E);
| variables.put("f", F);
|
| ProcessInstance processInstance = executionService
| .startProcessInstanceByKey("workflowSumMul", variables);
| }
| }
I have detected that the problem occur in the tearDown method when super.tearDown() is called.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241666#4241666
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241666
More information about the jboss-user
mailing list