zeebe-client 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +7 -1
- data/examples/demo.rb +15 -3
- data/lib/zeebe/client/proto/gateway_pb.rb +8 -11
- data/lib/zeebe/client/proto/gateway_services_pb.rb +1 -1
- data/lib/zeebe/client/version.rb +1 -1
- data/proto/gateway.proto +10 -15
- 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: f3f60298d37580a2d0ea32144ef7f59234ae5edf9a08270202da44f351bf846e
|
4
|
+
data.tar.gz: 4a482bd38fed85736778ba7b5389d7ed5bd4fbe7431c199b497ca008c5be42d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df85ca4d26d8c809d879371779c51f6ed5538b38aa2bd1071d74ce142f22aa0e3f59981c4dbd54995940244d744b3adb8465d19b9c1ec959c62d64e6f89df12
|
7
|
+
data.tar.gz: f0cc61919346e908d4f5a7ed213dbbe83895a2300d7f5a9fa6ac2526aa758b5067489c3e05151fec16db458b8cfaa48ccd9862c83a94e529f61f98dec7477607
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/examples/demo.rb
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
|
2
2
|
require 'zeebe/client'
|
3
3
|
|
4
|
-
|
4
|
+
zeebe_client = Zeebe::Client::GatewayProtocol::Gateway::Stub.new('localhost:26500', :this_channel_is_insecure)
|
5
5
|
|
6
|
-
|
6
|
+
topology = zeebe_client.topology(Zeebe::Client::GatewayProtocol::TopologyRequest.new)
|
7
7
|
|
8
|
-
puts
|
8
|
+
puts "Zeebe topology:"
|
9
|
+
puts " Cluster size: #{topology.clusterSize}"
|
10
|
+
puts " Replication factor: #{topology.replicationFactor}"
|
11
|
+
puts " Brokers:"
|
12
|
+
|
13
|
+
topology.brokers.each do |b|
|
14
|
+
puts " - id: #{b.nodeId}, address: #{b.host}:#{b.port}, partitions: #{b.partitions.map { |p| p.partitionId }}"
|
15
|
+
end
|
16
|
+
|
17
|
+
workflows = zeebe_client.list_workflows(Zeebe::Client::GatewayProtocol::ListWorkflowsRequest.new).workflows
|
18
|
+
|
19
|
+
puts ""
|
20
|
+
puts "Zeebe workflows: #{workflows.inspect}"
|
@@ -58,15 +58,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
58
58
|
end
|
59
59
|
add_message "gateway_protocol.PublishMessageResponse" do
|
60
60
|
end
|
61
|
-
add_message "gateway_protocol.CreateJobRequest" do
|
62
|
-
optional :jobType, :string, 1
|
63
|
-
optional :retries, :int32, 2
|
64
|
-
optional :customHeaders, :string, 3
|
65
|
-
optional :payload, :string, 4
|
66
|
-
end
|
67
|
-
add_message "gateway_protocol.CreateJobResponse" do
|
68
|
-
optional :key, :int64, 1
|
69
|
-
end
|
70
61
|
add_message "gateway_protocol.UpdateJobRetriesRequest" do
|
71
62
|
optional :jobKey, :int64, 1
|
72
63
|
optional :retries, :int32, 2
|
@@ -76,6 +67,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
76
67
|
add_message "gateway_protocol.FailJobRequest" do
|
77
68
|
optional :jobKey, :int64, 1
|
78
69
|
optional :retries, :int32, 2
|
70
|
+
optional :errorMessage, :string, 3
|
79
71
|
end
|
80
72
|
add_message "gateway_protocol.FailJobResponse" do
|
81
73
|
end
|
@@ -153,6 +145,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
153
145
|
add_message "gateway_protocol.ActivateJobsResponse" do
|
154
146
|
repeated :jobs, :message, 1, "gateway_protocol.ActivatedJob"
|
155
147
|
end
|
148
|
+
add_message "gateway_protocol.ResolveIncidentRequest" do
|
149
|
+
optional :incidentKey, :int64, 1
|
150
|
+
end
|
151
|
+
add_message "gateway_protocol.ResolveIncidentResponse" do
|
152
|
+
end
|
156
153
|
end
|
157
154
|
|
158
155
|
module Zeebe::Client::GatewayProtocol
|
@@ -168,8 +165,6 @@ module Zeebe::Client::GatewayProtocol
|
|
168
165
|
DeployWorkflowResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DeployWorkflowResponse").msgclass
|
169
166
|
PublishMessageRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.PublishMessageRequest").msgclass
|
170
167
|
PublishMessageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.PublishMessageResponse").msgclass
|
171
|
-
CreateJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateJobRequest").msgclass
|
172
|
-
CreateJobResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateJobResponse").msgclass
|
173
168
|
UpdateJobRetriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesRequest").msgclass
|
174
169
|
UpdateJobRetriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesResponse").msgclass
|
175
170
|
FailJobRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.FailJobRequest").msgclass
|
@@ -190,4 +185,6 @@ module Zeebe::Client::GatewayProtocol
|
|
190
185
|
JobHeaders = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.JobHeaders").msgclass
|
191
186
|
ActivatedJob = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivatedJob").msgclass
|
192
187
|
ActivateJobsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivateJobsResponse").msgclass
|
188
|
+
ResolveIncidentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ResolveIncidentRequest").msgclass
|
189
|
+
ResolveIncidentResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ResolveIncidentResponse").msgclass
|
193
190
|
end
|
@@ -17,7 +17,6 @@ module Zeebe::Client::GatewayProtocol
|
|
17
17
|
rpc :Topology, TopologyRequest, TopologyResponse
|
18
18
|
rpc :DeployWorkflow, DeployWorkflowRequest, DeployWorkflowResponse
|
19
19
|
rpc :PublishMessage, PublishMessageRequest, PublishMessageResponse
|
20
|
-
rpc :CreateJob, CreateJobRequest, CreateJobResponse
|
21
20
|
rpc :UpdateJobRetries, UpdateJobRetriesRequest, UpdateJobRetriesResponse
|
22
21
|
rpc :FailJob, FailJobRequest, FailJobResponse
|
23
22
|
rpc :CompleteJob, CompleteJobRequest, CompleteJobResponse
|
@@ -27,6 +26,7 @@ module Zeebe::Client::GatewayProtocol
|
|
27
26
|
rpc :ActivateJobs, ActivateJobsRequest, stream(ActivateJobsResponse)
|
28
27
|
rpc :ListWorkflows, ListWorkflowsRequest, ListWorkflowsResponse
|
29
28
|
rpc :GetWorkflow, GetWorkflowRequest, GetWorkflowResponse
|
29
|
+
rpc :ResolveIncident, ResolveIncidentRequest, ResolveIncidentResponse
|
30
30
|
end
|
31
31
|
|
32
32
|
Stub = Service.rpc_stub_class
|
data/lib/zeebe/client/version.rb
CHANGED
data/proto/gateway.proto
CHANGED
@@ -71,19 +71,6 @@ message PublishMessageRequest {
|
|
71
71
|
message PublishMessageResponse {
|
72
72
|
}
|
73
73
|
|
74
|
-
message CreateJobRequest {
|
75
|
-
string jobType = 1;
|
76
|
-
int32 retries = 2;
|
77
|
-
/* custom headers has to be a valid json object as string */
|
78
|
-
string customHeaders = 3;
|
79
|
-
/* payload has to be a valid json object as string */
|
80
|
-
string payload = 4;
|
81
|
-
}
|
82
|
-
|
83
|
-
message CreateJobResponse {
|
84
|
-
int64 key = 1;
|
85
|
-
}
|
86
|
-
|
87
74
|
message UpdateJobRetriesRequest {
|
88
75
|
int64 jobKey = 1;
|
89
76
|
int32 retries = 2;
|
@@ -95,6 +82,7 @@ message UpdateJobRetriesResponse {
|
|
95
82
|
message FailJobRequest {
|
96
83
|
int64 jobKey = 1;
|
97
84
|
int32 retries = 2;
|
85
|
+
string errorMessage = 3;
|
98
86
|
}
|
99
87
|
|
100
88
|
message FailJobResponse {
|
@@ -200,6 +188,13 @@ message ActivateJobsResponse {
|
|
200
188
|
repeated ActivatedJob jobs = 1;
|
201
189
|
}
|
202
190
|
|
191
|
+
message ResolveIncidentRequest {
|
192
|
+
int64 incidentKey = 1;
|
193
|
+
}
|
194
|
+
|
195
|
+
message ResolveIncidentResponse {
|
196
|
+
}
|
197
|
+
|
203
198
|
service Gateway {
|
204
199
|
rpc Topology (TopologyRequest) returns (TopologyResponse) {
|
205
200
|
}
|
@@ -207,8 +202,6 @@ service Gateway {
|
|
207
202
|
}
|
208
203
|
rpc PublishMessage (PublishMessageRequest) returns (PublishMessageResponse) {
|
209
204
|
}
|
210
|
-
rpc CreateJob (CreateJobRequest) returns (CreateJobResponse) {
|
211
|
-
}
|
212
205
|
rpc UpdateJobRetries (UpdateJobRetriesRequest) returns (UpdateJobRetriesResponse) {
|
213
206
|
}
|
214
207
|
rpc FailJob (FailJobRequest) returns (FailJobResponse) {
|
@@ -227,4 +220,6 @@ service Gateway {
|
|
227
220
|
}
|
228
221
|
rpc GetWorkflow (GetWorkflowRequest) returns (GetWorkflowResponse) {
|
229
222
|
}
|
223
|
+
rpc ResolveIncident (ResolveIncidentRequest) returns (ResolveIncidentResponse) {
|
224
|
+
}
|
230
225
|
}
|
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.0
|
4
|
+
version: 0.1.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: 2018-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|