camunda-workflow 0.2.2 → 0.2.3
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/CHANGELOG.md +22 -2
- data/lib/camunda/task.rb +18 -0
- 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: 26afcbe78e6942a4b7871af82ed02b95b4023ffbd3ed9f1cda282bb5637e3d94
|
4
|
+
data.tar.gz: 11fd425078ce229b16195172e479aae6031d304463a8f084998ec23060b76d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e680bb4ef2e5f6cc8fd31e0087091970a23585911fb3b7d61636b2b68d963b3da333f7da635a8f34a92210bf1bed1e7b95ac002753242ca836d281183eb9bff
|
7
|
+
data.tar.gz: 6ac54d4e5de0629529e30aeab2ffc7651794395950f49411be4e0ddab8c405e50090439568ab59850dc2dfdbfe52bdd7eb61ac1e64cb74223fb2bc6cc51d6f24
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,33 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [
|
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.
|
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)
|
data/lib/camunda/task.rb
CHANGED
@@ -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
|