@jylups/flowable-bpmn-moddle 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/resources/flowable.json +97 -0
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ registerUnknownFlowableElements(moddle, xml); // in bpmn-js: modeler.get('moddle
|
|
|
56
56
|
const { rootElement } = await moddle.fromXML(xml, 'bpmn:Definitions');
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
The Flowable Work/Design elements seen so far (`work-form-field-validation`, `task-candidates-type`, `static-process-key`, `translation`) are typed.
|
|
59
|
+
The Flowable Work/Design elements seen so far (`work-form-field-validation`, `task-candidates-type`, `static-process-key`, `translation`, and the condition builder `condition` with its nested conditions) are typed.
|
|
60
60
|
|
|
61
61
|
`itemSubjectRef` is kept as text, because Flowable uses values such as `xsd:string` without declaring an `itemDefinition`.
|
|
62
62
|
|
|
@@ -86,7 +86,7 @@ Listener, field and script attributes are written without a prefix, as Flowable'
|
|
|
86
86
|
|
|
87
87
|
With the descriptor registered, a `resourceAssignmentExpression` (in `potentialOwner`, `humanPerformer` and `flowable:potentialStarter`) is written with a `<formalExpression>` child, as Flowable expects, instead of bpmn-moddle's `<expression xsi:type="tFormalExpression">`.
|
|
88
88
|
|
|
89
|
-
The
|
|
89
|
+
The docker attributes Flowable writes on `BPMNEdge` (`sourceDockerX`/`Y` and `targetDockerX`/`Y`) are typed as text, so a value such as `50.0` is written back as written. They are defined on `di:LabeledEdge`, the supertype of `bpmndi:BPMNEdge`: extending `bpmndi:BPMNEdge` itself from this package would make moddle write the tag as `bPMNEdge`. `rotation` on `BPMNLabel` is still kept as an unknown attribute and written back unchanged.
|
|
90
90
|
|
|
91
91
|
The full list of Flowable extensions, and which ones are covered so far, is in the [coverage matrix](https://github.com/jylups/bpmn-js-env/blob/main/docs/coverage.md). The extensions themselves are listed in [docs/flowable-bpmn-extensions.md](https://github.com/jylups/bpmn-js-env/blob/main/docs/flowable-bpmn-extensions.md).
|
|
92
92
|
|
package/package.json
CHANGED
package/resources/flowable.json
CHANGED
|
@@ -1750,6 +1750,103 @@
|
|
|
1750
1750
|
}
|
|
1751
1751
|
]
|
|
1752
1752
|
},
|
|
1753
|
+
{
|
|
1754
|
+
"name": "Condition",
|
|
1755
|
+
"superClass": [
|
|
1756
|
+
"Element"
|
|
1757
|
+
],
|
|
1758
|
+
"meta": {
|
|
1759
|
+
"allowedIn": [
|
|
1760
|
+
"bpmn:BaseElement"
|
|
1761
|
+
]
|
|
1762
|
+
},
|
|
1763
|
+
"properties": [
|
|
1764
|
+
{
|
|
1765
|
+
"name": "group",
|
|
1766
|
+
"isAttr": true,
|
|
1767
|
+
"type": "Boolean"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "match",
|
|
1771
|
+
"isAttr": true,
|
|
1772
|
+
"type": "String"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "targetAttribute",
|
|
1776
|
+
"isAttr": true,
|
|
1777
|
+
"type": "String"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"name": "sourceVariableType",
|
|
1781
|
+
"isAttr": true,
|
|
1782
|
+
"type": "String"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "sourceName",
|
|
1786
|
+
"isAttr": true,
|
|
1787
|
+
"type": "String"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"name": "sourceType",
|
|
1791
|
+
"isAttr": true,
|
|
1792
|
+
"type": "String"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "operator",
|
|
1796
|
+
"isAttr": true,
|
|
1797
|
+
"type": "String"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"name": "targetVariableType",
|
|
1801
|
+
"isAttr": true,
|
|
1802
|
+
"type": "String"
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"name": "targetValue",
|
|
1806
|
+
"isAttr": true,
|
|
1807
|
+
"type": "String"
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "targetType",
|
|
1811
|
+
"isAttr": true,
|
|
1812
|
+
"type": "String"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"name": "conditions",
|
|
1816
|
+
"type": "Condition",
|
|
1817
|
+
"isMany": true
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "EdgeDockers",
|
|
1823
|
+
"isAbstract": true,
|
|
1824
|
+
"extends": [
|
|
1825
|
+
"di:LabeledEdge"
|
|
1826
|
+
],
|
|
1827
|
+
"properties": [
|
|
1828
|
+
{
|
|
1829
|
+
"name": "sourceDockerX",
|
|
1830
|
+
"isAttr": true,
|
|
1831
|
+
"type": "String"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"name": "sourceDockerY",
|
|
1835
|
+
"isAttr": true,
|
|
1836
|
+
"type": "String"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "targetDockerX",
|
|
1840
|
+
"isAttr": true,
|
|
1841
|
+
"type": "String"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "targetDockerY",
|
|
1845
|
+
"isAttr": true,
|
|
1846
|
+
"type": "String"
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1753
1850
|
{
|
|
1754
1851
|
"name": "ItemAwareElement",
|
|
1755
1852
|
"isAbstract": true,
|