camunda-workflow 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b19cd42d150a959a6294d7b4f7b257e351ba80aa99c5c41873b1f2fabd234d3
4
- data.tar.gz: bb061574267d353fc9bb3f7bc1a213d11f54a68d9248af7b2c6cc2ee208087c1
3
+ metadata.gz: 26afcbe78e6942a4b7871af82ed02b95b4023ffbd3ed9f1cda282bb5637e3d94
4
+ data.tar.gz: 11fd425078ce229b16195172e479aae6031d304463a8f084998ec23060b76d79
5
5
  SHA512:
6
- metadata.gz: ca66c513e317b759857d0cc1c5d14c284bd9384c420247271d389d9cb143c494b35067e1a57709b5334cc706567fb0f77c0010634c8c8ffc60593635fc1dd8bb
7
- data.tar.gz: b1819e131c3f12507f416e89e926666dd83f31821059c0f22b4834cf28b7489b3bea96ed1e8907f52a74832f65a9e16980efa2c1fb78201ab90f46ad5371522c
6
+ metadata.gz: 9e680bb4ef2e5f6cc8fd31e0087091970a23585911fb3b7d61636b2b68d963b3da333f7da635a8f34a92210bf1bed1e7b95ac002753242ca836d281183eb9bff
7
+ data.tar.gz: 6ac54d4e5de0629529e30aeab2ffc7651794395950f49411be4e0ddab8c405e50090439568ab59850dc2dfdbfe52bdd7eb61ac1e64cb74223fb2bc6cc51d6f24
@@ -1,13 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/amalagaura/camunda-workflow/tree/HEAD)
3
+ ## [v0.2.2](https://github.com/amalagaura/camunda-workflow/tree/v0.2.2) (2020-01-08)
4
4
 
5
- [Full Changelog](https://github.com/amalagaura/camunda-workflow/compare/v0.2.0...HEAD)
5
+ [Full Changelog](https://github.com/amalagaura/camunda-workflow/compare/v0.2.1...v0.2.2)
6
6
 
7
7
  **Closed issues:**
8
8
 
9
+ - The task for Message End Events is on the parent node of camunda:type="external" [\#34](https://github.com/amalagaura/camunda-workflow/issues/34)
10
+ - Error in documentation regarding deployment of BPMN files. [\#32](https://github.com/amalagaura/camunda-workflow/issues/32)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Camunda calls the external task from bpmn:endEvent [\#35](https://github.com/amalagaura/camunda-workflow/pull/35) ([amalagaura](https://github.com/amalagaura))
15
+ - fixed documentation on README [\#33](https://github.com/amalagaura/camunda-workflow/pull/33) ([curatingbits](https://github.com/curatingbits))
16
+
17
+ ## [v0.2.1](https://github.com/amalagaura/camunda-workflow/tree/v0.2.1) (2019-12-28)
18
+
19
+ [Full Changelog](https://github.com/amalagaura/camunda-workflow/compare/v0.2.0...v0.2.1)
20
+
21
+ **Closed issues:**
22
+
23
+ - Include gems via Railtie instead of by copying the .rake file [\#29](https://github.com/amalagaura/camunda-workflow/issues/29)
9
24
  - Remove check for what bpmn\_perform returns. Ignore if not a hash. [\#27](https://github.com/amalagaura/camunda-workflow/issues/27)
10
25
 
26
+ **Merged pull requests:**
27
+
28
+ - Remove startup error instructions [\#31](https://github.com/amalagaura/camunda-workflow/pull/31) ([amalagaura](https://github.com/amalagaura))
29
+ - create railtie to include rake tasks [\#30](https://github.com/amalagaura/camunda-workflow/pull/30) ([curatingbits](https://github.com/curatingbits))
30
+
11
31
  ## [v0.2.0](https://github.com/amalagaura/camunda-workflow/tree/v0.2.0) (2019-12-20)
12
32
 
13
33
  [Full Changelog](https://github.com/amalagaura/camunda-workflow/compare/v0.1.5...v0.2.0)
@@ -35,6 +35,24 @@ class Camunda::Task < Camunda::Model
35
35
  end
36
36
  end
37
37
 
38
+ def bpmn_error!(error_code, error_message, vars={})
39
+ self.class
40
+ .post_raw("#{self.class.collection_path}/#{id}/bpmnError", errorCode: error_code, errorMessage: error_message,
41
+ variables: serialize_variables(vars))[:response]
42
+ .tap do |response|
43
+ raise SubmissionError, response.body[:data][:message] unless response.success?
44
+ end
45
+ end
46
+
47
+ def bpmn_escalation!(escalation_code, vars={})
48
+ self.class
49
+ .post_raw("#{self.class.collection_path}/#{id}/bpmnEscalation", escalationCode: escalation_code,
50
+ variables: serialize_variables(vars))[:response]
51
+ .tap do |response|
52
+ raise SubmissionError, response.body[:data][:message] unless response.success?
53
+ end
54
+ end
55
+
38
56
  # Error class when the task cannot be submitted. For instance if the bpmn process expects a variable and the variable
39
57
  # isn't supplied, Camunda will not accept the task
40
58
  class SubmissionError < StandardError
@@ -1,5 +1,5 @@
1
1
  module Camunda
2
2
  module Workflow
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.2.3'.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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur Sethi