[jboss-user] [jBPM] - Re: how to resume process
km wen
do-not-reply at jboss.com
Fri Feb 18 15:04:38 EST 2011
km wen [http://community.jboss.org/people/kmwen] created the discussion
"Re: how to resume process"
To view the discussion, visit: http://community.jboss.org/message/588416#588416
--------------------------------------------------------------
I define the fisrt process definition as following:
*ProcessEngine processEngine = new Configuration().setResource("jbpm.cfg.xml").buildProcessEngine();*
* RepositoryService repositoryService = processEngine.getRepositoryService();*
* ExecutionService executionService = processEngine.getExecutionService();*
* repositoryService.createDeployment().addResourceFromClasspath("testFragment.jpdl.xml").deploy();*
* executionService.startProcessInstanceByKey("testFragment");*
The testFragment is as following;
*<?xml version="1.0" encoding="UTF-8"?>*
*<process name="testFragment" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">*
* <start g="48,134,48,48" name="start">*
* <transition name="to HelloWorld" to="HelloWorld" g="-87,-22"/>*
* </start>*
* <custom class="org.jbpm.testMigration.MyTest" g="359,196,92,52" name="Test">*
* <transition name="to end" to="end" g="-43,-22"/>*
* </custom>*
* <java class="org.jbpm.testMigration.HelloWorld" g="147,194,92,52" method="printHelloWorld" name="HelloWorld">*
* <transition name="to Test" to="Test" g="-45,-22"/>*
* </java>*
* <end g="554,146,48,48" name="end"/>*
*</process>*
in custom node i throw an exception und catch it in catch block
*catch (Exception e) { *
* *
* System.out.println("we need the exception handling");*
* activityExecution.waitForSignal();*
* *
* ProcessEngine processEngine = new Configuration().setResource("jbpm.cfg.xml").buildProcessEngine();*
* RepositoryService repositoryService = processEngine.getRepositoryService();*
* ExecutionService executionService = processEngine.getExecutionService();*
* executionService.signalExecutionById("testFragment");*
*}*
when i execute testFragment, the following execption occurres:
*exception in thread "main" org.jbpm.api.JbpmException: execution testFragment does not exist.*
how can i resume the testFragment? pleas help
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588416#588416]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110218/ee66b622/attachment.html
More information about the jboss-user
mailing list