zeebe-client 0.11.0 → 0.11.1

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: 8c458c30ca89e870cabbead8c0672fdebe62969e28cdf031f64675240eddcb45
4
- data.tar.gz: 8c51e32007c3a18bd5adc20d52c6b0d26ae6068866684dec7c809202a92f65e8
3
+ metadata.gz: 0b9b6cf4bb5477d80cfd94fda6fa7d6723c49216438e648c9b363f969fc91799
4
+ data.tar.gz: e42b10ea9c670af9b9b11831bd05ab1f6a0631a759be039f68282c8e7e912d71
5
5
  SHA512:
6
- metadata.gz: 57cfbc109cc7624026c0a25b1ed7bd87281e6ee04d3f79b591a870715606d5c47c385eba2de63c9a8b6961cd75b1f0255cd622f3c634ff877f5626cd75638947
7
- data.tar.gz: 43aa739e75b8bd6123503e464f376f46569fb414ccdc472c04403eb0d535ad102b62ac20075cd38a865861f733e70c2df6d1216a17ed4cb6fe95a4213abb0256
6
+ metadata.gz: 235f9c662230f0185a7b3ccc8f0d73d1b59a2fdb21fa19297c9f68dd222a78fc9fe03e3943c2cd28092c9bd54417dcfc6f8c885b53210b761e9ef83419205649
7
+ data.tar.gz: bc0520f417c70ee70949ddc43baed4ea3e02661b12aa829ccd08839e82bbae74e018367813cd03cfa1db55d381784c1bb11da404d3c35e3b567f5a608c721318
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.1 (November 4, 2020)
4
+
5
+ - add support for [Zeebe 0.24.3](https://github.com/zeebe-io/zeebe/releases/tag/0.24.3)
6
+
3
7
  ## 0.11.0 (July 29, 2020)
4
8
 
5
9
  - support Ruby 2.7
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.24.1
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:0.24.3
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.24.1'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.24.3'
17
17
  sleep(10)
18
18
  end
19
19
 
@@ -13,8 +13,3 @@ puts " Brokers:"
13
13
  topology.brokers.each do |b|
14
14
  puts " - id: #{b.nodeId}, address: #{b.host}:#{b.port}, partitions: #{b.partitions.map { |p| p.partitionId }}"
15
15
  end
16
-
17
- workflows = zeebe_client.list_workflows(Zeebe::Client::GatewayProtocol::ListWorkflowsRequest.new).workflows
18
-
19
- puts ""
20
- puts "Zeebe workflows: #{workflows.inspect}"
@@ -6,5 +6,5 @@ genPath="lib/zeebe/client"
6
6
  grpc_tools_ruby_protoc "${protoPath}/gateway.proto" --ruby_out="${genPath}" --grpc_out="${genPath}"
7
7
 
8
8
  sed -i 's@proto/gateway_pb@zeebe/client/proto/gateway_pb@g' "${genPath}/proto/gateway_services_pb.rb"
9
- sed -i 's@module GatewayProtocol@module Zeebe::Client::GatewayProtocol@g' "${genPath}/proto/gateway_pb.rb"
10
- sed -i 's@module GatewayProtocol@module Zeebe::Client::GatewayProtocol@g' "${genPath}/proto/gateway_services_pb.rb"
9
+ sed -i 's@GatewayProtocol@Zeebe::Client::GatewayProtocol@g' "${genPath}/proto/gateway_pb.rb"
10
+ sed -i 's@GatewayProtocol@Zeebe::Client::GatewayProtocol@g' "${genPath}/proto/gateway_services_pb.rb"
@@ -24,14 +24,14 @@ module Zeebe::Client::GatewayProtocol
24
24
  # - worker is blank (empty string, null)
25
25
  # - timeout less than 1
26
26
  # - maxJobsToActivate is less than 1
27
- rpc :ActivateJobs, ActivateJobsRequest, stream(ActivateJobsResponse)
27
+ rpc :ActivateJobs, ::Zeebe::Client::GatewayProtocol::ActivateJobsRequest, stream(::Zeebe::Client::GatewayProtocol::ActivateJobsResponse)
28
28
  #
29
29
  # Cancels a running workflow instance
30
30
  #
31
31
  # Errors:
32
32
  # NOT_FOUND:
33
33
  # - no workflow instance exists with the given key
34
- rpc :CancelWorkflowInstance, CancelWorkflowInstanceRequest, CancelWorkflowInstanceResponse
34
+ rpc :CancelWorkflowInstance, ::Zeebe::Client::GatewayProtocol::CancelWorkflowInstanceRequest, ::Zeebe::Client::GatewayProtocol::CancelWorkflowInstanceResponse
35
35
  #
36
36
  # Completes a job with the given variables, which allows completing the associated service task.
37
37
  #
@@ -43,7 +43,7 @@ module Zeebe::Client::GatewayProtocol
43
43
  # FAILED_PRECONDITION:
44
44
  # - the job was marked as failed. In that case, the related incident must be resolved before
45
45
  # the job can be activated again and completed.
46
- rpc :CompleteJob, CompleteJobRequest, CompleteJobResponse
46
+ rpc :CompleteJob, ::Zeebe::Client::GatewayProtocol::CompleteJobRequest, ::Zeebe::Client::GatewayProtocol::CompleteJobResponse
47
47
  #
48
48
  # Creates and starts an instance of the specified workflow. The workflow definition to use to
49
49
  # create the instance can be specified either using its unique key (as returned by
@@ -64,10 +64,10 @@ module Zeebe::Client::GatewayProtocol
64
64
  # INVALID_ARGUMENT:
65
65
  # - the given variables argument is not a valid JSON document; it is expected to be a valid
66
66
  # JSON document where the root node is an object.
67
- rpc :CreateWorkflowInstance, CreateWorkflowInstanceRequest, CreateWorkflowInstanceResponse
67
+ rpc :CreateWorkflowInstance, ::Zeebe::Client::GatewayProtocol::CreateWorkflowInstanceRequest, ::Zeebe::Client::GatewayProtocol::CreateWorkflowInstanceResponse
68
68
  #
69
69
  # Behaves similarly to `rpc CreateWorkflowInstance`, except that a successful response is received when the workflow completes successfully.
70
- rpc :CreateWorkflowInstanceWithResult, CreateWorkflowInstanceWithResultRequest, CreateWorkflowInstanceWithResultResponse
70
+ rpc :CreateWorkflowInstanceWithResult, ::Zeebe::Client::GatewayProtocol::CreateWorkflowInstanceWithResultRequest, ::Zeebe::Client::GatewayProtocol::CreateWorkflowInstanceWithResultResponse
71
71
  #
72
72
  # Deploys one or more workflows to Zeebe. Note that this is an atomic call,
73
73
  # i.e. either all workflows are deployed, or none of them are.
@@ -79,7 +79,7 @@ module Zeebe::Client::GatewayProtocol
79
79
  # - it is not a BPMN or YAML file (currently detected through the file extension)
80
80
  # - the resource data is not deserializable (e.g. detected as BPMN, but it's broken XML)
81
81
  # - the workflow is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task)
82
- rpc :DeployWorkflow, DeployWorkflowRequest, DeployWorkflowResponse
82
+ rpc :DeployWorkflow, ::Zeebe::Client::GatewayProtocol::DeployWorkflowRequest, ::Zeebe::Client::GatewayProtocol::DeployWorkflowResponse
83
83
  #
84
84
  # Marks the job as failed; if the retries argument is positive, then the job will be immediately
85
85
  # activatable again, and a worker could try again to process it. If it is zero or negative however,
@@ -93,7 +93,7 @@ module Zeebe::Client::GatewayProtocol
93
93
  # FAILED_PRECONDITION:
94
94
  # - the job was not activated
95
95
  # - the job is already in a failed state, i.e. ran out of retries
96
- rpc :FailJob, FailJobRequest, FailJobResponse
96
+ rpc :FailJob, ::Zeebe::Client::GatewayProtocol::FailJobRequest, ::Zeebe::Client::GatewayProtocol::FailJobResponse
97
97
  #
98
98
  # Reports a business error (i.e. non-technical) that occurs while processing a job. The error is handled in the workflow by an error catch event. If there is no error catch event with the specified errorCode then an incident will be raised instead.
99
99
  #
@@ -103,7 +103,7 @@ module Zeebe::Client::GatewayProtocol
103
103
  #
104
104
  # FAILED_PRECONDITION:
105
105
  # - the job is not in an activated state
106
- rpc :ThrowError, ThrowErrorRequest, ThrowErrorResponse
106
+ rpc :ThrowError, ::Zeebe::Client::GatewayProtocol::ThrowErrorRequest, ::Zeebe::Client::GatewayProtocol::ThrowErrorResponse
107
107
  #
108
108
  # Publishes a single message. Messages are published to specific partitions computed from their
109
109
  # correlation keys.
@@ -111,7 +111,7 @@ module Zeebe::Client::GatewayProtocol
111
111
  # Errors:
112
112
  # ALREADY_EXISTS:
113
113
  # - a message with the same ID was previously published (and is still alive)
114
- rpc :PublishMessage, PublishMessageRequest, PublishMessageResponse
114
+ rpc :PublishMessage, ::Zeebe::Client::GatewayProtocol::PublishMessageRequest, ::Zeebe::Client::GatewayProtocol::PublishMessageResponse
115
115
  #
116
116
  # Resolves a given incident. This simply marks the incident as resolved; most likely a call to
117
117
  # UpdateJobRetries or SetVariables will be necessary to actually resolve the
@@ -120,7 +120,7 @@ module Zeebe::Client::GatewayProtocol
120
120
  # Errors:
121
121
  # NOT_FOUND:
122
122
  # - no incident with the given key exists
123
- rpc :ResolveIncident, ResolveIncidentRequest, ResolveIncidentResponse
123
+ rpc :ResolveIncident, ::Zeebe::Client::GatewayProtocol::ResolveIncidentRequest, ::Zeebe::Client::GatewayProtocol::ResolveIncidentResponse
124
124
  #
125
125
  # Updates all the variables of a particular scope (e.g. workflow instance, flow element instance)
126
126
  # from the given JSON document.
@@ -131,10 +131,10 @@ module Zeebe::Client::GatewayProtocol
131
131
  # INVALID_ARGUMENT:
132
132
  # - the given variables document is not a valid JSON document; valid documents are expected to
133
133
  # be JSON documents where the root node is an object.
134
- rpc :SetVariables, SetVariablesRequest, SetVariablesResponse
134
+ rpc :SetVariables, ::Zeebe::Client::GatewayProtocol::SetVariablesRequest, ::Zeebe::Client::GatewayProtocol::SetVariablesResponse
135
135
  #
136
136
  # Obtains the current topology of the cluster the gateway is part of.
137
- rpc :Topology, TopologyRequest, TopologyResponse
137
+ rpc :Topology, ::Zeebe::Client::GatewayProtocol::TopologyRequest, ::Zeebe::Client::GatewayProtocol::TopologyResponse
138
138
  #
139
139
  # Updates the number of retries a job has left. This is mostly useful for jobs that have run out of
140
140
  # retries, should the underlying problem be solved.
@@ -145,7 +145,7 @@ module Zeebe::Client::GatewayProtocol
145
145
  #
146
146
  # INVALID_ARGUMENT:
147
147
  # - retries is not greater than 0
148
- rpc :UpdateJobRetries, UpdateJobRetriesRequest, UpdateJobRetriesResponse
148
+ rpc :UpdateJobRetries, ::Zeebe::Client::GatewayProtocol::UpdateJobRetriesRequest, ::Zeebe::Client::GatewayProtocol::UpdateJobRetriesResponse
149
149
  end
150
150
 
151
151
  Stub = Service.rpc_stub_class
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.11.0'.freeze
4
+ VERSION = '0.11.1'.freeze
5
5
  end
6
6
  end
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.required_ruby_version = '>= 2.3'
21
21
 
22
- s.add_runtime_dependency 'grpc', '~> 1.28.0'
22
+ s.add_runtime_dependency 'grpc', '~> 1.32.0'
23
23
 
24
24
  s.add_development_dependency 'bundler'
25
25
  s.add_development_dependency 'bundler-audit', '~> 0.7.0'
26
- s.add_development_dependency 'grpc-tools', '~> 1.28.0'
26
+ s.add_development_dependency 'grpc-tools', '~> 1.32.0'
27
27
  s.add_development_dependency 'rake'
28
28
  s.add_development_dependency 'rspec'
29
29
  s.add_development_dependency 'rubocop', '~> 0.81.0'
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.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nicolai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-29 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.28.0
19
+ version: 1.32.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.28.0
26
+ version: 1.32.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.28.0
61
+ version: 1.32.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.28.0
68
+ version: 1.32.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.0.8
172
+ rubygems_version: 3.1.4
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Zeebe Client