zeebe-client 0.4.1 → 0.5.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: 7c475c5d16d07e64846042d07c2d3027431a927f2a69b9f94af2990fdd1855d7
4
- data.tar.gz: 066c5ae80c2a9685f8805a0888c413cf7543beb6cf0e3699cb7e2259477fc962
3
+ metadata.gz: 2b9b10cf8205bb4aac8e90b431763384eb307d52e34b94dca04af52c3b970703
4
+ data.tar.gz: 873005ef993987deb7e435a071c9a4e4db39c4efd50067bc007167dbb4054adc
5
5
  SHA512:
6
- metadata.gz: 72f8dbf0c6fc702fcd40fb80e01f4d654687d53aca7807ec077001ea41d59047ff023ed645724e279fadabaa93963d363d0a5ec252cd72d1f5ed6fe4539ce3d0
7
- data.tar.gz: dc0825c6b19cb0337fc7c42d342ca77b137f9907281f491ddd18f7191ad1f6b28a417b691d89d96e615a40ba78863bae26333b670251102c05213e2b774aaf49
6
+ metadata.gz: 4cbc5a0e103c6489c43504e3c55ed23c4a4efda91e1c75575f7014c2c5842c5e540bd592196c10ead1fe08cc25e0cfbebb82092a256022ef2f3cf0fd14c14b1b
7
+ data.tar.gz: 24cbac43a462a99ec6921aceb68a1931d584d05199676bce15ef7ae87e8a29337b813786bcbb90feda5eb3d0b37f909ec4648f03c1a68e0bb61ac3e38c3b2ec4
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0 (April 2, 2019)
4
+
5
+ - add support for [Zeebe 0.17.0](https://github.com/zeebe-io/zeebe/releases/tag/0.17.0)
6
+
3
7
  ## 0.4.1 (March 25, 2019)
4
8
 
5
9
  NEW FEATURES:
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.16.4
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:0.17.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.16.4'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.17.0'
17
17
  sleep(5)
18
18
  end
19
19
 
@@ -8,7 +8,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  optional :type, :string, 1
9
9
  optional :worker, :string, 2
10
10
  optional :timeout, :int64, 3
11
- optional :amount, :int32, 4
11
+ optional :maxJobsToActivate, :int32, 4
12
12
  repeated :fetchVariable, :string, 5
13
13
  end
14
14
  add_message "gateway_protocol.ActivateJobsResponse" do
@@ -22,7 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  optional :worker, :string, 5
23
23
  optional :retries, :int32, 6
24
24
  optional :deadline, :int64, 7
25
- optional :payload, :string, 8
25
+ optional :variables, :string, 8
26
26
  end
27
27
  add_message "gateway_protocol.JobHeaders" do
28
28
  optional :workflowInstanceKey, :int64, 1
@@ -39,7 +39,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
39
  end
40
40
  add_message "gateway_protocol.CompleteJobRequest" do
41
41
  optional :jobKey, :int64, 1
42
- optional :payload, :string, 2
42
+ optional :variables, :string, 2
43
43
  end
44
44
  add_message "gateway_protocol.CompleteJobResponse" do
45
45
  end
@@ -108,7 +108,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
108
108
  optional :correlationKey, :string, 2
109
109
  optional :timeToLive, :int64, 3
110
110
  optional :messageId, :string, 4
111
- optional :payload, :string, 5
111
+ optional :variables, :string, 5
112
112
  end
113
113
  add_message "gateway_protocol.PublishMessageResponse" do
114
114
  end
@@ -15,15 +15,15 @@ module Zeebe::Client::GatewayProtocol
15
15
  self.service_name = 'gateway_protocol.Gateway'
16
16
 
17
17
  #
18
- # Iterates through all known partitions in a round-robin and activates up to the requested amount
19
- # of jobs and streams them back to the client as they are activated.
18
+ # Iterates through all known partitions round-robin and activates up to the requested
19
+ # maximum and streams them back to the client as they are activated.
20
20
  #
21
21
  # Errors:
22
22
  # INVALID_ARGUMENT:
23
23
  # - type is blank (empty string, null)
24
24
  # - worker is blank (empty string, null)
25
25
  # - timeout less than 1
26
- # - amount is less than 1
26
+ # - maxJobsToActivate is less than 1
27
27
  rpc :ActivateJobs, ActivateJobsRequest, stream(ActivateJobsResponse)
28
28
  #
29
29
  # Cancels a running workflow instance
@@ -33,7 +33,7 @@ module Zeebe::Client::GatewayProtocol
33
33
  # - no workflow instance exists with the given key
34
34
  rpc :CancelWorkflowInstance, CancelWorkflowInstanceRequest, CancelWorkflowInstanceResponse
35
35
  #
36
- # Completes a job with the given payload, which allows completing the associated service task.
36
+ # Completes a job with the given variables, which allows completing the associated service task.
37
37
  #
38
38
  # Errors:
39
39
  # NOT_FOUND:
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.4.1'.freeze
4
+ VERSION = '0.5.0'.freeze
5
5
  end
6
6
  end
@@ -17,10 +17,10 @@ message ActivateJobsRequest {
17
17
  // a job returned after this call will not be activated by another call until the
18
18
  // timeout has been reached
19
19
  int64 timeout = 3;
20
- // the maximum number of jobs to fetch in a single call
21
- int32 amount = 4;
22
- // a list of variables to fetch as the job payload; if empty, all visible variables at
23
- // the time of activation for the scope of the job will be returned as the job payload
20
+ // the maximum jobs to activate by this request
21
+ int32 maxJobsToActivate = 4;
22
+ // a list of variables to fetch as the job variables; if empty, all visible variables at
23
+ // the time of activation for the scope of the job will be returned
24
24
  repeated string fetchVariable = 5;
25
25
  }
26
26
 
@@ -47,7 +47,7 @@ message ActivatedJob {
47
47
  int64 deadline = 7;
48
48
  // JSON document, computed at activation time, consisting of all visible variables to
49
49
  // the task scope
50
- string payload = 8;
50
+ string variables = 8;
51
51
  }
52
52
 
53
53
  message JobHeaders {
@@ -79,7 +79,7 @@ message CompleteJobRequest {
79
79
  // the unique job identifier, as obtained from ActivateJobsResponse
80
80
  int64 jobKey = 1;
81
81
  // a JSON document representing the variables in the current task scope
82
- string payload = 2;
82
+ string variables = 2;
83
83
  }
84
84
 
85
85
  message CompleteJobResponse {
@@ -216,9 +216,9 @@ message PublishMessageRequest {
216
216
  // the unique ID of the message; can be omitted. only useful to ensure only one message
217
217
  // with the given ID will ever be published (during its lifetime)
218
218
  string messageId = 4;
219
- // the message payload as a JSON document; to be valid, the root of the document must be an
219
+ // the message variables as a JSON document; to be valid, the root of the document must be an
220
220
  // object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
221
- string payload = 5;
221
+ string variables = 5;
222
222
  }
223
223
 
224
224
  message PublishMessageResponse {
@@ -302,15 +302,15 @@ message SetVariablesResponse {
302
302
 
303
303
  service Gateway {
304
304
  /*
305
- Iterates through all known partitions in a round-robin and activates up to the requested amount
306
- of jobs and streams them back to the client as they are activated.
305
+ Iterates through all known partitions round-robin and activates up to the requested
306
+ maximum and streams them back to the client as they are activated.
307
307
 
308
308
  Errors:
309
309
  INVALID_ARGUMENT:
310
310
  - type is blank (empty string, null)
311
311
  - worker is blank (empty string, null)
312
312
  - timeout less than 1
313
- - amount is less than 1
313
+ - maxJobsToActivate is less than 1
314
314
  */
315
315
  rpc ActivateJobs (ActivateJobsRequest) returns (stream ActivateJobsResponse) {
316
316
  }
@@ -326,7 +326,7 @@ service Gateway {
326
326
  }
327
327
 
328
328
  /*
329
- Completes a job with the given payload, which allows completing the associated service task.
329
+ Completes a job with the given variables, which allows completing the associated service task.
330
330
 
331
331
  Errors:
332
332
  NOT_FOUND:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeebe-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.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-03-25 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc