camunda-workflow 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de3f5b53f63bf54079ee7c40c5b4484610f5fff5aea834f277c53c2a19061066
4
- data.tar.gz: 9bc948e1114eb799505598a585874070436097ec1ee86396f806457aad8a304c
3
+ metadata.gz: 7b19cd42d150a959a6294d7b4f7b257e351ba80aa99c5c41873b1f2fabd234d3
4
+ data.tar.gz: bb061574267d353fc9bb3f7bc1a213d11f54a68d9248af7b2c6cc2ee208087c1
5
5
  SHA512:
6
- metadata.gz: 75e7a0452733b6c14c62a60bcb794c29d5760431721ab85bc138ea3bb35e32ae11803466247de18ec86825f4f057963f9735744c6418b5549f2f0811dd9f13d2
7
- data.tar.gz: f97120868b79674a2dc60c04d7c646fe511da2674113f198da67fcfc6081507fc263edc8713d4631e371c979cea2f9b564f62a846c316856170b8640089e5063
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 file_name: 'bpmn/diagrams/sample.bpmn'
165
+ Camunda::Deployment.create file_names: ['bpmn/diagrams/sample.bpmn']
166
166
  ```
167
167
  ### Processes
168
168
 
@@ -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('//*[@camunda:type="external"]').map do |task|
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
@@ -1,5 +1,5 @@
1
1
  module Camunda
2
2
  module Workflow
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camunda-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur Sethi