camunda-workflow 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/camunda/bpmn_xml.rb +7 -2
- data/lib/camunda/workflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b19cd42d150a959a6294d7b4f7b257e351ba80aa99c5c41873b1f2fabd234d3
|
4
|
+
data.tar.gz: bb061574267d353fc9bb3f7bc1a213d11f54a68d9248af7b2c6cc2ee208087c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca66c513e317b759857d0cc1c5d14c284bd9384c420247271d389d9cb143c494b35067e1a57709b5334cc706567fb0f77c0010634c8c8ffc60593635fc1dd8bb
|
7
|
+
data.tar.gz: b1819e131c3f12507f416e89e926666dd83f31821059c0f22b4834cf28b7489b3bea96ed1e8907f52a74832f65a9e16980efa2c1fb78201ab90f46ad5371522c
|
data/README.md
CHANGED
@@ -162,7 +162,7 @@ It will fail to start. Create a postgres database as a service in PCF and bind i
|
|
162
162
|
Uses a default name, etc. Below outlines how to deploy a process using the included sample.bpmn file created by the generator. Alternatively you can deploy using Camunda Modeler
|
163
163
|
|
164
164
|
```ruby
|
165
|
-
Camunda::Deployment.create
|
165
|
+
Camunda::Deployment.create file_names: ['bpmn/diagrams/sample.bpmn']
|
166
166
|
```
|
167
167
|
### Processes
|
168
168
|
|
data/lib/camunda/bpmn_xml.rb
CHANGED
@@ -20,9 +20,14 @@ class Camunda::BpmnXML
|
|
20
20
|
|
21
21
|
# creates a new instance of Camunda::BpmnXML::Task
|
22
22
|
def external_tasks
|
23
|
-
@doc.xpath('
|
23
|
+
@doc.xpath('(//bpmn:serviceTask[@camunda:type="external"]|//bpmn:sendTask[@camunda:type="external"])').map do |task|
|
24
24
|
Task.new(task)
|
25
|
-
end
|
25
|
+
end +
|
26
|
+
@doc.xpath('//bpmn:endEvent/bpmn:messageEventDefinition[@camunda:type="external"]').map do |child_node|
|
27
|
+
task = child_node.parent.dup
|
28
|
+
task["topic"] = child_node["topic"]
|
29
|
+
Task.new(task)
|
30
|
+
end
|
26
31
|
end
|
27
32
|
|
28
33
|
# We may have tasks with different topics. Returns classes with topics which are the same as the BPMN process id
|