cpee-transformation 1.1.0 → 1.1.2
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.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/cpee-transformation.gemspec +5 -5
- data/lib/cpee/transformation/bpmn2.rb +2 -2
- data/server/trans.conf +1 -1
- data/tools/trans_cpee-to-bpmn2 +1 -1
- data/tools/trans_cpee-to-pnml +0 -0
- data/tools/trans_cpee-to-pnml-with-lifecycle +0 -0
- metadata +8 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 629e6bf4e083ebe49f5c5f25d189e6b82309dcee6a2547639691527298e256d1
|
|
4
|
+
data.tar.gz: aa2461392242c5e9dd2e07f8a8aad0e9b7997dbcb6d88b27b04874dc0bc81114
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e2d5c10129b41c22cfc9759aab3dcccf2f3990d5a9aa01f0e0e4a270a4563b58096dca40956960f831c0cc3145e6ef864a526f25c87ae69dca2f328c4c6cc53
|
|
7
|
+
data.tar.gz: b47bf04047725efbc50ee93444bdc869b14d794bb3d5468dbebe6e724584c0eea315c953bb82af973f6e86034ad07023299a62c51a92d5291111530a99e62815
|
data/README.md
CHANGED
|
@@ -47,24 +47,24 @@ curl -F 'description=@model.xml;type=text/xml' -F 'type=description' http://loca
|
|
|
47
47
|
|
|
48
48
|
### BPMN2 target
|
|
49
49
|
|
|
50
|
-
The BPMN2 target generates the CPEE model and lays it out with `bpmnexport`
|
|
51
|
-
from [cpee-layout](https://github.com/etm/cpee-layout), so the result is BPMN
|
|
52
|
-
with diagram interchange, laid out as drawn by cpee-layout. How `bpmnexport` is
|
|
50
|
+
The BPMN2 target generates the CPEE model and lays it out with `cpee-bpmnexport`
|
|
51
|
+
from [cpee-layout](https://github.com/etm/cpee-layout) 2, so the result is BPMN
|
|
52
|
+
with diagram interchange, laid out as drawn by cpee-layout. How `cpee-bpmnexport` is
|
|
53
53
|
run is set in `trans.conf`. The default (also without a setting) is
|
|
54
54
|
|
|
55
55
|
```yaml
|
|
56
|
-
:bpmnexport: npx -y -p cpee-layout@^
|
|
56
|
+
:bpmnexport: npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
and after `npm install -g cpee-layout` it can be
|
|
60
60
|
|
|
61
61
|
```yaml
|
|
62
|
-
:bpmnexport: bpmnexport
|
|
62
|
+
:bpmnexport: cpee-bpmnexport
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
A command name is searched in `PATH`, a path (containing `/`) is relative to
|
|
66
66
|
the directory of `trans`, `~` works too, e.g.
|
|
67
|
-
`~/Projects/cpee-layout/bin/bpmnexport` for a checkout. Arguments may follow.
|
|
67
|
+
`~/Projects/cpee-layout/bin/cpee-bpmnexport` for a checkout. Arguments may follow.
|
|
68
68
|
|
|
69
69
|
The layout direction follows the model: the cockpit sets `dir="lr"` or
|
|
70
70
|
`dir="td"` on the `<description>` root, depending on its theme, and `-lr` is
|
|
@@ -72,4 +72,4 @@ added for `dir="lr"`. Putting `-lr` into `trans.conf` makes every BPMN left to
|
|
|
72
72
|
right.
|
|
73
73
|
|
|
74
74
|
`tools/trans_cpee-to-bpmn2 FNAME` does the same on the command line, using the
|
|
75
|
-
`server/trans.conf` of the gem. If `bpmnexport` can't be run or fails, the request returns 500.
|
|
75
|
+
`server/trans.conf` of the gem. If `cpee-bpmnexport` can't be run or fails, the request returns 500.
|
data/cpee-transformation.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "cpee-transformation"
|
|
3
|
-
s.version = "1.1.
|
|
3
|
+
s.version = "1.1.2"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
|
6
6
|
s.summary = "CPEE Transformation between different formats"
|
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.require_path = 'lib'
|
|
12
12
|
s.extra_rdoc_files = ['README.md']
|
|
13
13
|
s.bindir = 'tools'
|
|
14
|
-
s.executables = ['trans_bpmn2-to-cpee', 'trans_bpmn2-to-mermaid', 'trans_bpmn2-to-ptml', 'trans_cpee-to-bpmn2', 'trans_cpee-to-cpee', 'trans_cpee-to-mermaid', 'trans_cpee-to-ptml', 'trans_cpee-to-text-bf', 'trans_cpee-to-text-df-poe', 'trans_cpee-to-text-df-por', 'cpee-trans', 'trans_mermaid-to-cpee', 'trans_ptml-to-cpee']
|
|
14
|
+
s.executables = ['trans_bpmn2-to-cpee', 'trans_bpmn2-to-graphviz', 'trans_bpmn2-to-mermaid', 'trans_bpmn2-to-ptml', 'trans_cpee-to-bpmn2', 'trans_cpee-to-cpee', 'trans_cpee-to-graphviz', 'trans_cpee-to-mermaid', 'trans_cpee-to-pnml', 'trans_cpee-to-pnml-with-lifecycle', 'trans_cpee-to-ptml', 'trans_cpee-to-text-bf', 'trans_cpee-to-text-df-poe', 'trans_cpee-to-text-df-por', 'cpee-trans', 'trans_mermaid-to-cpee', 'trans_ptml-to-cpee']
|
|
15
15
|
|
|
16
16
|
s.required_ruby_version = '>=3.2'
|
|
17
17
|
|
|
@@ -27,10 +27,10 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
s.add_runtime_dependency 'highline', '~> 2.0'
|
|
28
28
|
|
|
29
29
|
s.post_install_message = <<~MSG
|
|
30
|
-
The BPMN2 target uses bpmnexport from cpee-layout (Node.js >= 22.22).
|
|
31
|
-
default npx fetches it on first use. To avoid that, run
|
|
30
|
+
The BPMN2 target uses cpee-bpmnexport from cpee-layout 2 (Node.js >= 22.22).
|
|
31
|
+
By default npx fetches it on first use. To avoid that, run
|
|
32
32
|
npm install -g cpee-layout
|
|
33
|
-
and set ":bpmnexport: bpmnexport" in trans.conf of your service
|
|
33
|
+
and set ":bpmnexport: cpee-bpmnexport" in trans.conf of your service
|
|
34
34
|
(scaffolded with cpee-trans new DIR).
|
|
35
35
|
MSG
|
|
36
36
|
end
|
|
@@ -149,14 +149,14 @@ module CPEE
|
|
|
149
149
|
|
|
150
150
|
module Target #{{{
|
|
151
151
|
|
|
152
|
-
# bpmnexport from cpee-layout (npm install -g cpee-layout) lays out the
|
|
152
|
+
# cpee-bpmnexport from cpee-layout (npm install -g cpee-layout) lays out the
|
|
153
153
|
# generated CPEE model as drawn and writes it as BPMN with diagram
|
|
154
154
|
# interchange. opts[:bpmnexport] (trans.conf) is a command name, searched
|
|
155
155
|
# in PATH, or a path, relative to the server dir, optionally followed by
|
|
156
156
|
# arguments. By default npx fetches cpee-layout on first use. -lr is added
|
|
157
157
|
# when the source model has dir="lr" (set by the cockpit from its theme).
|
|
158
158
|
class BPMN2 < Default
|
|
159
|
-
BPMNEXPORT = 'npx -y -p cpee-layout@^
|
|
159
|
+
BPMNEXPORT = 'npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport'
|
|
160
160
|
|
|
161
161
|
class << self
|
|
162
162
|
attr_accessor :opts
|
data/server/trans.conf
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:bpmnexport: npx -y -p cpee-layout@^
|
|
1
|
+
:bpmnexport: npx -y -p cpee-layout@^2.0.0 cpee-bpmnexport
|
data/tools/trans_cpee-to-bpmn2
CHANGED
|
@@ -43,7 +43,7 @@ require_relative '../lib/cpee/transformation/transformer' rescue nil
|
|
|
43
43
|
require_relative '../lib/cpee/transformation/cpee' rescue nil
|
|
44
44
|
require_relative '../lib/cpee/transformation/bpmn2' rescue nil
|
|
45
45
|
|
|
46
|
-
# bpmnexport from cpee-layout, configured as for the server, see Target::BPMN2
|
|
46
|
+
# cpee-bpmnexport from cpee-layout, configured as for the server, see Target::BPMN2
|
|
47
47
|
conf = File.join(__dir__,'..','server','trans.conf')
|
|
48
48
|
CPEE::Transformation::Target::BPMN2.opts = {
|
|
49
49
|
:basepath => File.dirname(conf)
|
data/tools/trans_cpee-to-pnml
CHANGED
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cpee-transformation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen eTM Mangler
|
|
@@ -85,11 +85,15 @@ email: juergen.mangler@gmail.com
|
|
|
85
85
|
executables:
|
|
86
86
|
- cpee-trans
|
|
87
87
|
- trans_bpmn2-to-cpee
|
|
88
|
+
- trans_bpmn2-to-graphviz
|
|
88
89
|
- trans_bpmn2-to-mermaid
|
|
89
90
|
- trans_bpmn2-to-ptml
|
|
90
91
|
- trans_cpee-to-bpmn2
|
|
91
92
|
- trans_cpee-to-cpee
|
|
93
|
+
- trans_cpee-to-graphviz
|
|
92
94
|
- trans_cpee-to-mermaid
|
|
95
|
+
- trans_cpee-to-pnml
|
|
96
|
+
- trans_cpee-to-pnml-with-lifecycle
|
|
93
97
|
- trans_cpee-to-ptml
|
|
94
98
|
- trans_cpee-to-text-bf
|
|
95
99
|
- trans_cpee-to-text-df-poe
|
|
@@ -149,10 +153,10 @@ licenses:
|
|
|
149
153
|
- LGPL-3.0-or-later
|
|
150
154
|
metadata: {}
|
|
151
155
|
post_install_message: |
|
|
152
|
-
The BPMN2 target uses bpmnexport from cpee-layout (Node.js >= 22.22).
|
|
153
|
-
default npx fetches it on first use. To avoid that, run
|
|
156
|
+
The BPMN2 target uses cpee-bpmnexport from cpee-layout 2 (Node.js >= 22.22).
|
|
157
|
+
By default npx fetches it on first use. To avoid that, run
|
|
154
158
|
npm install -g cpee-layout
|
|
155
|
-
and set ":bpmnexport: bpmnexport" in trans.conf of your service
|
|
159
|
+
and set ":bpmnexport: cpee-bpmnexport" in trans.conf of your service
|
|
156
160
|
(scaffolded with cpee-trans new DIR).
|
|
157
161
|
rdoc_options: []
|
|
158
162
|
require_paths:
|