-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
219 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...c/test/kotlin/com/valb3r/bpmn/intellij/plugin/activiti/parser/SequenceFlowListenerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.valb3r.bpmn.intellij.plugin.activiti.parser | ||
|
||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.BpmnProcessObject | ||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.info.PropertyType | ||
import org.amshove.kluent.shouldBeEqualTo | ||
import org.amshove.kluent.shouldHaveSingleItem | ||
import org.junit.jupiter.api.Test | ||
|
||
internal class SequenceFlowListenerTest { | ||
|
||
@Test | ||
fun `SequenceFlow listener is parseable`() { | ||
val processObject: BpmnProcessObject? | ||
|
||
processObject = ActivitiParser().parse("sequence-flow-listeners.bpmn20.xml".asResource()!!) | ||
|
||
val sequenceFlow = processObject.process.body!!.sequenceFlow!!.shouldHaveSingleItem() | ||
sequenceFlow.id.id.shouldBeEqualTo("sequenceFlow") | ||
sequenceFlow.executionListener!!.shouldHaveSingleItem().clazz.shouldBeEqualTo("de.test") | ||
processObject.propsOf("sequenceFlow")[PropertyType.EXECUTION_LISTENER_CLASS]!!.value.shouldBeEqualTo("de.test") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
activiti-xml-parser/src/test/resources/sequence-flow-listeners.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef"> | ||
<process id="sequence-flow-listeners" name="sequence-flow-listeners" isExecutable="true"> | ||
<serviceTask id="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" activiti:exclusive="true"/> | ||
<serviceTask id="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c" activiti:exclusive="true"/> | ||
<sequenceFlow id="sequenceFlow" sourceRef="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" targetRef="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<extensionElements xmlns=""> | ||
<activiti:executionListener class="de.test"/> | ||
</extensionElements> | ||
</sequenceFlow> | ||
</process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_sequence-flow-listeners"> | ||
<bpmndi:BPMNPlane bpmnElement="sequence-flow-listeners" id="BPMNPlane_sequence-flow-listeners"> | ||
<bpmndi:BPMNShape id="shape-fdde8897-ec4c-4ec7-8dff-077a1b622d56" bpmnElement="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439"> | ||
<omgdc:Bounds x="55.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="shape-207fbe32-9af3-41ca-b199-6038eda18b52" bpmnElement="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<omgdc:Bounds x="315.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="edge-39228d1b-3375-46a6-a68c-28d658c7ad2d" bpmnElement="sequenceFlow"> | ||
<omgdi:waypoint x="155.0" y="120.0"/> | ||
<omgdi:waypoint x="315.0" y="120.0"/> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...rc/test/kotlin/com/valb3r/bpmn/intellij/plugin/camunda/parser/SequenceFlowListenerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.valb3r.bpmn.intellij.plugin.camunda.parser | ||
|
||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.BpmnProcessObject | ||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.info.PropertyType | ||
import org.amshove.kluent.shouldBeEqualTo | ||
import org.amshove.kluent.shouldHaveSingleItem | ||
import org.junit.jupiter.api.Test | ||
|
||
internal class SequenceFlowListenerTest { | ||
|
||
@Test | ||
fun `SequenceFlow listener is parseable`() { | ||
val processObject: BpmnProcessObject? | ||
|
||
processObject = CamundaParser().parse("sequence-flow-listeners.bpmn20.xml".asResource()!!) | ||
|
||
val sequenceFlow = processObject.process.body!!.sequenceFlow!!.shouldHaveSingleItem() | ||
sequenceFlow.id.id.shouldBeEqualTo("sequenceFlow") | ||
sequenceFlow.executionListener!!.shouldHaveSingleItem().clazz.shouldBeEqualTo("de.test") | ||
processObject.propsOf("sequenceFlow")[PropertyType.EXECUTION_LISTENER_CLASS]!!.value.shouldBeEqualTo("de.test") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
camunda-xml-parser/src/test/resources/sequence-flow-listeners.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:camunda="http://camunda.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.camunda.org/processdef"> | ||
<process id="sequence-flow-listeners" name="sequence-flow-listeners" isExecutable="true"> | ||
<serviceTask id="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" camunda:exclusive="true"/> | ||
<serviceTask id="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c" camunda:exclusive="true"/> | ||
<sequenceFlow id="sequenceFlow" sourceRef="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" targetRef="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<extensionElements xmlns=""> | ||
<camunda:executionListener class="de.test"/> | ||
</extensionElements> | ||
</sequenceFlow> | ||
</process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_sequence-flow-listeners"> | ||
<bpmndi:BPMNPlane bpmnElement="sequence-flow-listeners" id="BPMNPlane_sequence-flow-listeners"> | ||
<bpmndi:BPMNShape id="shape-fdde8897-ec4c-4ec7-8dff-077a1b622d56" bpmnElement="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439"> | ||
<omgdc:Bounds x="55.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="shape-207fbe32-9af3-41ca-b199-6038eda18b52" bpmnElement="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<omgdc:Bounds x="315.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="edge-39228d1b-3375-46a6-a68c-28d658c7ad2d" bpmnElement="sequenceFlow"> | ||
<omgdi:waypoint x="155.0" y="120.0"/> | ||
<omgdi:waypoint x="315.0" y="120.0"/> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...c/test/kotlin/com/valb3r/bpmn/intellij/plugin/flowable/parser/SequenceFlowListenerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.valb3r.bpmn.intellij.plugin.flowable.parser | ||
|
||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.BpmnProcessObject | ||
import com.valb3r.bpmn.intellij.plugin.bpmn.api.info.PropertyType | ||
import org.amshove.kluent.shouldBeEqualTo | ||
import org.amshove.kluent.shouldHaveSingleItem | ||
import org.amshove.kluent.shouldNotBeNull | ||
import org.junit.jupiter.api.Test | ||
|
||
internal class SequenceFlowListenerTest { | ||
|
||
@Test | ||
fun `SequenceFlow listener is parseable`() { | ||
val processObject: BpmnProcessObject? | ||
|
||
processObject = FlowableParser().parse("sequence-flow-listeners.bpmn20.xml".asResource()!!) | ||
|
||
val sequenceFlow = processObject.process.body!!.sequenceFlow!!.shouldHaveSingleItem() | ||
sequenceFlow.id.id.shouldBeEqualTo("sequenceFlow") | ||
sequenceFlow.executionListener!!.shouldHaveSingleItem().clazz.shouldBeEqualTo("de.test") | ||
processObject.propsOf("sequenceFlow")[PropertyType.EXECUTION_LISTENER_CLASS]!!.value.shouldBeEqualTo("de.test") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
flowable-xml-parser/src/test/resources/sequence-flow-listeners.bpmn20.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef"> | ||
<process id="sequence-flow-listeners" name="sequence-flow-listeners" isExecutable="true"> | ||
<serviceTask id="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" flowable:exclusive="true"/> | ||
<serviceTask id="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c" flowable:exclusive="true"/> | ||
<sequenceFlow id="sequenceFlow" sourceRef="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439" targetRef="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<extensionElements xmlns=""> | ||
<flowable:executionListener class="de.test"/> | ||
</extensionElements> | ||
</sequenceFlow> | ||
</process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_sequence-flow-listeners"> | ||
<bpmndi:BPMNPlane bpmnElement="sequence-flow-listeners" id="BPMNPlane_sequence-flow-listeners"> | ||
<bpmndi:BPMNShape id="shape-fdde8897-ec4c-4ec7-8dff-077a1b622d56" bpmnElement="sid-f9bd982f-6328-4bc3-ac38-d54f51c5e439"> | ||
<omgdc:Bounds x="55.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="shape-207fbe32-9af3-41ca-b199-6038eda18b52" bpmnElement="sid-bdc36743-0e2c-4702-96bd-9d4d71e0c71c"> | ||
<omgdc:Bounds x="315.0" y="80.0" width="100.0" height="80.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="edge-39228d1b-3375-46a6-a68c-28d658c7ad2d" bpmnElement="sequenceFlow"> | ||
<omgdi:waypoint x="155.0" y="120.0"/> | ||
<omgdi:waypoint x="315.0" y="120.0"/> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</definitions> |
8 changes: 8 additions & 0 deletions
8
xml-parser-api/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/bpmn/api/DoIgnore.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.valb3r.bpmn.intellij.plugin.bpmn.api | ||
|
||
import org.mapstruct.Qualifier | ||
|
||
@Qualifier // make sure that this is the MapStruct qualifier annotation | ||
@Target(AnnotationTarget.FUNCTION) | ||
@Retention(AnnotationRetention.SOURCE) | ||
annotation class DoIgnore |