zeebe-client 0.6.0 → 0.7.0

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: ca27316cd57ca58b36aa80ddd9e2e930c28ddaef950adb0054203d8ab4e8ab85
4
- data.tar.gz: 47f87275239463c74f1654037a9990ff6806e4a6dc5991248458c447be4f810b
3
+ metadata.gz: 9b34a5bc00038a658671e60c664643ceadb7ec9074ce36c1cd03896e30ea2137
4
+ data.tar.gz: 216bff695e7ac2f3cff7fd9d30ab1bb404e4067a90917b7bd7c44ae29d4bf2cb
5
5
  SHA512:
6
- metadata.gz: a4392cd8bacbb7abd71044acee7a3b1559a621ed9221b1efe870bf2770c7c252488d68edc0261008319130c9e067036bc84556ea960eaeb4901044678e7e62a6
7
- data.tar.gz: 77b7eef482387cbbc22dea3e3accfbb9f1becb89b347e9f0cb7a01374f7a611f55d19fb4369b7a6e31a9181f428d3d5f04ad6dadc8e980d06a8abe7619586073
6
+ metadata.gz: d3af02c9d299b20ba9f786f135434914e81c0f813cc282c58ff7cbbbc472fb6d67bc41f89ad77c711a9fb5f04ac27e3526e0ec28e58446de20e964a713252b4e
7
+ data.tar.gz: 2d2381fcc2904a5c10901e94ff1aeb57edc251ec9dd0afb7e75cd78aeffa940e9ee48c8fec88e998305c0456342f40214bb9bc507f2a736159fd54b047307727
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0 (August 12, 2019)
4
+
5
+ - add support for [Zeebe 0.20.0](https://github.com/zeebe-io/zeebe/releases/tag/0.20.0)
6
+
3
7
  ## 0.6.0 (June 7, 2019)
4
8
 
5
9
  - support Ruby 2.6
data/README.md CHANGED
@@ -13,7 +13,7 @@ Install the gem:
13
13
  Run a Zeebe instance locally:
14
14
 
15
15
  ```sh
16
- docker run -it --rm -p 26500:26500 camunda/zeebe:0.18.0
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:0.20.0
17
17
  ```
18
18
 
19
19
  And then try the available [demo script](examples/demo.rb).
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ task travis: ['zeebe:start', :default, 'zeebe:stop']
13
13
 
14
14
  desc 'Starts Zeebe Docker container'
15
15
  task 'zeebe:start' do
16
- sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.18.0'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.20.0'
17
17
  sleep(5)
18
18
  end
19
19
 
@@ -18,20 +18,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  add_message "gateway_protocol.ActivatedJob" do
19
19
  optional :key, :int64, 1
20
20
  optional :type, :string, 2
21
- optional :jobHeaders, :message, 3, "gateway_protocol.JobHeaders"
22
- optional :customHeaders, :string, 4
23
- optional :worker, :string, 5
24
- optional :retries, :int32, 6
25
- optional :deadline, :int64, 7
26
- optional :variables, :string, 8
27
- end
28
- add_message "gateway_protocol.JobHeaders" do
29
- optional :workflowInstanceKey, :int64, 1
30
- optional :bpmnProcessId, :string, 2
31
- optional :workflowDefinitionVersion, :int32, 3
32
- optional :workflowKey, :int64, 4
33
- optional :elementId, :string, 5
34
- optional :elementInstanceKey, :int64, 6
21
+ optional :workflowInstanceKey, :int64, 3
22
+ optional :bpmnProcessId, :string, 4
23
+ optional :workflowDefinitionVersion, :int32, 5
24
+ optional :workflowKey, :int64, 6
25
+ optional :elementId, :string, 7
26
+ optional :elementInstanceKey, :int64, 8
27
+ optional :customHeaders, :string, 9
28
+ optional :worker, :string, 10
29
+ optional :retries, :int32, 11
30
+ optional :deadline, :int64, 12
31
+ optional :variables, :string, 13
35
32
  end
36
33
  add_message "gateway_protocol.CancelWorkflowInstanceRequest" do
37
34
  optional :workflowInstanceKey, :int64, 1
@@ -54,7 +51,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
51
  optional :workflowKey, :int64, 1
55
52
  optional :bpmnProcessId, :string, 2
56
53
  optional :version, :int32, 3
57
- optional :workflowInstanceKey, :int64, 5
54
+ optional :workflowInstanceKey, :int64, 4
58
55
  end
59
56
  add_message "gateway_protocol.DeployWorkflowRequest" do
60
57
  repeated :workflows, :message, 1, "gateway_protocol.WorkflowRequestObject"
@@ -116,7 +113,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
116
113
  end
117
114
  add_message "gateway_protocol.Partition" do
118
115
  optional :partitionId, :int32, 1
119
- optional :role, :enum, 3, "gateway_protocol.Partition.PartitionBrokerRole"
116
+ optional :role, :enum, 2, "gateway_protocol.Partition.PartitionBrokerRole"
120
117
  end
121
118
  add_enum "gateway_protocol.Partition.PartitionBrokerRole" do
122
119
  value :LEADER, 0
@@ -142,7 +139,6 @@ module Zeebe::Client::GatewayProtocol
142
139
  ActivateJobsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivateJobsRequest").msgclass
143
140
  ActivateJobsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivateJobsResponse").msgclass
144
141
  ActivatedJob = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivatedJob").msgclass
145
- JobHeaders = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.JobHeaders").msgclass
146
142
  CancelWorkflowInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CancelWorkflowInstanceRequest").msgclass
147
143
  CancelWorkflowInstanceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CancelWorkflowInstanceResponse").msgclass
148
144
  CompleteJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CompleteJobRequest").msgclass
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.7.0'.freeze
5
5
  end
6
6
  end
@@ -34,36 +34,31 @@ message ActivatedJob {
34
34
  int64 key = 1;
35
35
  // the type of the job (should match what was requested)
36
36
  string type = 2;
37
- // a set of headers tying the job to a workflow instance/task instance
38
- JobHeaders jobHeaders = 3;
39
- // a set of custom headers defined during modelling; returned as a serialized
40
- // JSON document
41
- string customHeaders = 4;
42
- // the name of the worker which activated this job
43
- string worker = 5;
44
- // the amount of retries left to this job (should always be positive)
45
- int32 retries = 6;
46
- // when the job can be activated again, sent as a UNIX epoch timestamp
47
- int64 deadline = 7;
48
- // JSON document, computed at activation time, consisting of all visible variables to
49
- // the task scope
50
- string variables = 8;
51
- }
52
-
53
- message JobHeaders {
54
37
  // the job's workflow instance key
55
- int64 workflowInstanceKey = 1;
38
+ int64 workflowInstanceKey = 3;
56
39
  // the bpmn process ID of the job workflow definition
57
- string bpmnProcessId = 2;
40
+ string bpmnProcessId = 4;
58
41
  // the version of the job workflow definition
59
- int32 workflowDefinitionVersion = 3;
42
+ int32 workflowDefinitionVersion = 5;
60
43
  // the key of the job workflow definition
61
- int64 workflowKey = 4;
44
+ int64 workflowKey = 6;
62
45
  // the associated task element ID
63
- string elementId = 5;
46
+ string elementId = 7;
64
47
  // the unique key identifying the associated task, unique within the scope of the
65
48
  // workflow instance
66
- int64 elementInstanceKey = 6;
49
+ int64 elementInstanceKey = 8;
50
+ // a set of custom headers defined during modelling; returned as a serialized
51
+ // JSON document
52
+ string customHeaders = 9;
53
+ // the name of the worker which activated this job
54
+ string worker = 10;
55
+ // the amount of retries left to this job (should always be positive)
56
+ int32 retries = 11;
57
+ // when the job can be activated again, sent as a UNIX epoch timestamp
58
+ int64 deadline = 12;
59
+ // JSON document, computed at activation time, consisting of all visible variables to
60
+ // the task scope
61
+ string variables = 13;
67
62
  }
68
63
 
69
64
  message CancelWorkflowInstanceRequest {
@@ -111,7 +106,7 @@ message CreateWorkflowInstanceResponse {
111
106
  int32 version = 3;
112
107
  // the unique identifier of the created workflow instance; to be used wherever a request
113
108
  // needs a workflow instance key (e.g. CancelWorkflowInstanceRequest)
114
- int64 workflowInstanceKey = 5;
109
+ int64 workflowInstanceKey = 4;
115
110
  }
116
111
 
117
112
  message DeployWorkflowRequest {
@@ -199,6 +194,7 @@ message ResolveIncidentResponse {
199
194
 
200
195
  message TopologyRequest {
201
196
  }
197
+
202
198
  message TopologyResponse {
203
199
  // list of brokers part of this cluster
204
200
  repeated BrokerInfo brokers = 1;
@@ -231,7 +227,7 @@ message Partition {
231
227
  // the unique ID of this partition
232
228
  int32 partitionId = 1;
233
229
  // the role of the broker for this partition
234
- PartitionBrokerRole role = 3;
230
+ PartitionBrokerRole role = 2;
235
231
  }
236
232
 
237
233
  message UpdateJobRetriesRequest {
@@ -247,7 +243,7 @@ message UpdateJobRetriesResponse {
247
243
  message SetVariablesRequest {
248
244
  // the unique identifier of a particular element; can be the workflow instance key (as
249
245
  // obtained during instance creation), or a given element, such as a service task (see
250
- // elementInstanceKey on the JobHeaders message)
246
+ // elementInstanceKey on the job message)
251
247
  int64 elementInstanceKey = 1;
252
248
  // a JSON serialized document describing variables as key value pairs; the root of the document
253
249
  // must be an object
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.required_ruby_version = '>= 2.3'
21
21
 
22
- s.add_runtime_dependency 'grpc', '>= 1.19', '< 1.21'
22
+ s.add_runtime_dependency 'grpc', '~> 1.22.0'
23
23
 
24
- s.add_development_dependency 'grpc-tools', '~> 1.20.0'
24
+ s.add_development_dependency 'grpc-tools', '~> 1.22.0'
25
25
  s.add_development_dependency 'bundler'
26
26
  s.add_development_dependency 'rake'
27
27
  s.add_development_dependency 'rspec'
28
- s.add_development_dependency 'rubocop', '~> 0.70.0'
28
+ s.add_development_dependency 'rubocop', '~> 0.74.0'
29
29
  s.add_development_dependency 'bundler-audit'
30
30
  end
metadata CHANGED
@@ -1,49 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeebe-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nicolai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-07 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '1.19'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '1.21'
19
+ version: 1.22.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '1.19'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '1.21'
26
+ version: 1.22.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: grpc-tools
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: 1.20.0
33
+ version: 1.22.0
40
34
  type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: 1.20.0
40
+ version: 1.22.0
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +86,14 @@ dependencies:
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: 0.70.0
89
+ version: 0.74.0
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: 0.70.0
96
+ version: 0.74.0
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: bundler-audit
105
99
  requirement: !ruby/object:Gem::Requirement