[jboss-user] [jBPM] - working with executions

Claus Straube do-not-reply at jboss.com
Wed Mar 24 12:15:23 EDT 2010


Claus Straube [http://community.jboss.org/people/clauss] replied to the discussion

"working with executions"

To view the discussion, visit: http://community.jboss.org/message/533779#533779

--------------------------------------------------------------
Hi Maciej,

I think that's it. The following test worked:


@Test
    public void oneReceiveNode(){
        //deploy process
        repositoryService.createDeployment().addResourceFromClasspath("one_receive_node.bpmn.xml").deploy();
        
        //start instance
        ProcessInstance instance = executionService.startProcessInstanceByKey("bar");
        Assert.assertNotNull(instance);
        
        //signal first execution
        Execution e1 = instance.findActiveExecutionIn("r1");
        Assert.assertNotNull(e1);
        ProcessInstance instance2 = executionService.signalExecutionById(e1.getId());
        
        Assert.assertTrue(instance2.isEnded());
    }


That means a process instance will be "refreshed", if I do a execution on it? I don't find that intuitive... But okay -it works  :)  Thank you!

Best regards - Claus

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/533779#533779]

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/20100324/7145dc49/attachment.html 


More information about the jboss-user mailing list