Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Henshin-rules and BPMN2-Models

Am 28.10.2012 16:46, schrieb Stefan Jurack:
[...]
But since there seems to be at least of edge being connect
to/with this node, the previously found "Task" node is no valid match here.

Might this be the reason?

I'm not really sure.

In first case, it is: when setting "checkDangling" to false the transformation works.

The only model objects that may be connected to the Task may be "Sequence Flow"-objects. So I modelled them to into the Henshin rule. But again: when "checkDangling" is true, the transformation is not performed.

I removed the BPMN-Diagram-data from the file and "forced" the transformation with "checkDangling" set to false.

I attach a screenshot of the altered rule and the BPMN2-Model before and after the transformation. I do not really see where the transformation leaves "dangling edges" left (?)

Thanks in advance,

Jens

Attachment: bpmn.png
Description: PNG image

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"; xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; xmlns:tns="http://www.jboss.org/drools"; xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.omg.org/spec/BPMN/20100524/DI http://www.omg.org/spec/BPMN/20100524/DI-XMI http://www.omg.org/spec/DD/20100524/DC http://www.omg.org/spec/DD/20100524/DC-XMI http://www.omg.org/spec/DD/20100524/DI http://www.omg.org/spec/DD/20100524/DI-XMI"; id="Definitions_1" expressionLanguage="http://www.mvel.org/2.0"; targetNamespace="http://www.jboss.org/drools"; typeLanguage="http://www.java.com/javaTypes";>
  <bpmn2:process id="test" tns:version="1" tns:packageName="defaultPackage" name="Default Process">
    <bpmn2:startEvent id="StartEvent_1">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" sourceRef="StartEvent_1" targetRef="Task_1"/>
    <bpmn2:endEvent id="EndEvent_1">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:task id="Task_1" name="Enter Password">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" name="" sourceRef="Task_1" targetRef="EndEvent_1"/>
    <bpmn2:task id="Task_2" name="Ignore">
      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" name="" sourceRef="StartEvent_1" targetRef="Task_2"/>
    <bpmn2:sequenceFlow id="SequenceFlow_4" tns:priority="1" name="" sourceRef="Task_2" targetRef="EndEvent_1"/>
  </bpmn2:process>
</bpmn2:definitions>
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
 xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"; xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"; xmlns:di="http://www.omg.org/spec/DD/20100524/DI"; xmlns:tns="http://www.jboss.org/drools"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; id="Definitions_1" expressionLanguage="http://www.mvel.org/2.0"; targetNamespace="http://www.jboss.org/drools"; typeLanguage="http://www.java.com/javaTypes";>
  <bpmn2:process id="test" tns:version="1" tns:packageName="defaultPackage" name="Default Process">
    <bpmn2:startEvent id="StartEvent_1">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" sourceRef="StartEvent_1" targetRef="Task_1"/>
    <bpmn2:endEvent id="EndEvent_1">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:task id="Task_1" name="Enter Password">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" name="" sourceRef="Task_1" targetRef="EndEvent_1"/>
  </bpmn2:process>
</bpmn2:definitions>

Back to the top