zeebe-client 0.4.1 → 0.5.0
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 +4 -0
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/lib/zeebe/client/proto/gateway_pb.rb +4 -4
- data/lib/zeebe/client/proto/gateway_services_pb.rb +4 -4
- data/lib/zeebe/client/version.rb +1 -1
- data/proto/gateway.proto +12 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b9b10cf8205bb4aac8e90b431763384eb307d52e34b94dca04af52c3b970703
|
4
|
+
data.tar.gz: 873005ef993987deb7e435a071c9a4e4db39c4efd50067bc007167dbb4054adc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cbc5a0e103c6489c43504e3c55ed23c4a4efda91e1c75575f7014c2c5842c5e540bd592196c10ead1fe08cc25e0cfbebb82092a256022ef2f3cf0fd14c14b1b
|
7
|
+
data.tar.gz: 24cbac43a462a99ec6921aceb68a1931d584d05199676bce15ef7ae87e8a29337b813786bcbb90feda5eb3d0b37f909ec4648f03c1a68e0bb61ac3e38c3b2ec4
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
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
|
+
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 :
|
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 :
|
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 :
|
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 :
|
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
|
19
|
-
#
|
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
|
-
# -
|
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
|
36
|
+
# Completes a job with the given variables, which allows completing the associated service task.
|
37
37
|
#
|
38
38
|
# Errors:
|
39
39
|
# NOT_FOUND:
|
data/lib/zeebe/client/version.rb
CHANGED
data/proto/gateway.proto
CHANGED
@@ -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
|
21
|
-
int32
|
22
|
-
// a list of variables to fetch as the job
|
23
|
-
// the time of activation for the scope of the job will be returned
|
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
|
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
|
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
|
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
|
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
|
306
|
-
|
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
|
-
-
|
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
|
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
|
+
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-
|
11
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|