[jboss-user] [jBPM] - bpmn:group node and name attribute

Claus Straube do-not-reply at jboss.com
Thu Apr 1 09:13:56 EDT 2010


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

"bpmn:group node and name attribute"

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

--------------------------------------------------------------
Hi all,

I found in the docu the possibility to goup nodes. For me this is very intresting in combination with the timer/ time out event. But if I try this in my bpmn process I get an error message. This is my process:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions id="ServiceTaskJava"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schema.omg.org/spec/BPMN/2.0 BPMN20.xsd"
    xmlns:bpmn="http://schema.omg.org/spec/BPMN/2.0" typeLanguage="http://www.w3.org/2001/XMLSchema"
    expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://sample.bpmn.camunda.com/"
    xmlns:jbpm="http://jbpm.org/4.0/bpmn2">

    <bpmn:process id="group" name="my_group">

        <bpmn:startEvent id="s" />

        <bpmn:sequenceFlow id="f1" name="s_2_g" sourceRef="s" targetRef="g" />
        
        <bpmn:group id="g">
        
            <bpmn:startEvent id="g_s" />
            
            <bpmn:sequenceFlow id="g_f1" name="g_s_2_g_e" sourceRef="g_s" targetRef="g_e" />
            
            <bpmn:endEvent id="g_e" name="g_e" />
            
        </bpmn:group>
        
        <bpmn:sequenceFlow id="f2" name="g_2_r1" sourceRef="g" targetRef="r1" />

        <bpmn:receiveTask id="r1" name="r1" />
        
        <bpmn:sequenceFlow id="f3" name="r1_2_e" sourceRef="r1" targetRef="e" />

        <bpmn:endEvent id="e" name="e" />
            
    </bpmn:process>
</bpmn:definitions>


This is my test case...

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


...and this is the error message I get:

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

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

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/20100401/341c72e1/attachment.html 


More information about the jboss-user mailing list