zeebe-client 0.17.0 → 0.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70d1fee91e17ac504afb34fcf0212fe77038ac533202e20e9a68ee1c9eef401d
4
- data.tar.gz: f984bc1dd46d561b0144cc69d28a17d0e7be4c379771fee23a39a18ebac58ace
3
+ metadata.gz: ca85b164178d216344933c4d88d6ae05ef1bb5df987a503ad46477478c439b72
4
+ data.tar.gz: 8c5e6680400c30023b2bfd5d31c80d6905a8ef039ddf55d2916db4aa986c0a5d
5
5
  SHA512:
6
- metadata.gz: 0f06e5a0bdd25e33d980246e5cbb11b476b2536b2d63af169bae4847f637ec731261e9904a4cbf5ff66d06240b7d6f1a53c66185d8277609227d00c83bcc0d4d
7
- data.tar.gz: f5a7889850feaaba06ec05ca8b179265a186ec9fb13c30a177e9fb2775c07aecb36265b6a6618ed4c04a5988784b9e148eeb33242e5fd28138b4ca59253661aa
6
+ metadata.gz: 63295bff1a47f01dc42848c69ca9e5d1d17fe47ed30d95bb11a3bdaf2133363667f6911402f75c80bd4669362f7ae04c2b0318fe2f26cd64a20f3f396ed8a3d2
7
+ data.tar.gz: 48408911f4afe911d716f7ac86736b07ee16c705492ca1a9e2b2784b13667485b98305fdcf7099643edc1fd1a7776543d40aceb3755e1e46b68fe06725694c03
@@ -0,0 +1,25 @@
1
+ {
2
+ extends: [
3
+ "config:base",
4
+ ":dependencyDashboard",
5
+ ":prHourlyLimitNone",
6
+ ":prConcurrentLimitNone",
7
+ ":label(dependency-upgrade)",
8
+ ],
9
+ schedule: ["before 8am on thursday"],
10
+ branchPrefix: "renovate-",
11
+ dependencyDashboardHeader: "View repository job log [here](https://app.renovatebot.com/dashboard#github/zeebe-io/zeebe-client-ruby).",
12
+ separateMinorPatch: true,
13
+ commitMessagePrefix: "gems: ",
14
+ commitMessageAction: "update",
15
+ commitMessageTopic: "{{depName}}",
16
+ commitMessageExtra: "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}",
17
+ packageRules: [
18
+ // Commit message formats
19
+ {
20
+ matchManagers: ["github-actions"],
21
+ commitMessagePrefix: "ci: ",
22
+ },
23
+ ],
24
+ regexManagers: [],
25
+ }
@@ -16,13 +16,11 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  ruby-version:
19
- - '2.5'
20
- - '2.6'
21
19
  - '2.7'
22
20
  - '3.0'
23
21
  - '3.1'
24
22
  steps:
25
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
26
24
  - name: Set up Ruby ${{ matrix.ruby-version }}
27
25
  uses: ruby/setup-ruby@v1
28
26
  with:
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ inherit_mode:
4
4
  - Exclude
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: '2.5'
7
+ TargetRubyVersion: '2.7'
8
8
  NewCops: enable
9
9
  Exclude:
10
10
  - 'examples/*'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 (June 5th, 2023)
4
+
5
+ - add support for [Zeebe 8.1.12](https://github.com/camunda/zeebe/releases/tag/8.1.12)
6
+ - drop EOL Ruby 2.6 and older
7
+
3
8
  ## 0.17.0 (April 12th, 2022)
4
9
 
5
10
  - add support for [Zeebe 8.0.0](https://github.com/camunda/zeebe/releases/tag/8.0.0)
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:8.0.0
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:8.1.12
17
17
  ```
18
18
 
19
19
  And then try the available [demo script](examples/demo.rb).
@@ -35,7 +35,7 @@ bundle exec rake zeebe:stop
35
35
  To retrieve the latest GRPC proto from the Zeebe repository:
36
36
 
37
37
  ```sh
38
- wget -O proto/gateway.proto https://raw.githubusercontent.com/zeebe-io/zeebe/develop/gateway-protocol/src/main/proto/gateway.proto
38
+ wget -O proto/gateway.proto https://raw.githubusercontent.com/camunda/zeebe/develop/gateway-protocol/src/main/proto/gateway.proto
39
39
  ```
40
40
 
41
41
  ## Status
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ task ci: ['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:8.0.0'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:8.1.12'
17
17
  sleep(10)
18
18
  end
19
19
 
@@ -1,197 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: proto/gateway.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("proto/gateway.proto", :syntax => :proto3) do
8
- add_message "gateway_protocol.ActivateJobsRequest" do
9
- optional :type, :string, 1
10
- optional :worker, :string, 2
11
- optional :timeout, :int64, 3
12
- optional :maxJobsToActivate, :int32, 4
13
- repeated :fetchVariable, :string, 5
14
- optional :requestTimeout, :int64, 6
15
- end
16
- add_message "gateway_protocol.ActivateJobsResponse" do
17
- repeated :jobs, :message, 1, "gateway_protocol.ActivatedJob"
18
- end
19
- add_message "gateway_protocol.ActivatedJob" do
20
- optional :key, :int64, 1
21
- optional :type, :string, 2
22
- optional :processInstanceKey, :int64, 3
23
- optional :bpmnProcessId, :string, 4
24
- optional :processDefinitionVersion, :int32, 5
25
- optional :processDefinitionKey, :int64, 6
26
- optional :elementId, :string, 7
27
- optional :elementInstanceKey, :int64, 8
28
- optional :customHeaders, :string, 9
29
- optional :worker, :string, 10
30
- optional :retries, :int32, 11
31
- optional :deadline, :int64, 12
32
- optional :variables, :string, 13
33
- end
34
- add_message "gateway_protocol.CancelProcessInstanceRequest" do
35
- optional :processInstanceKey, :int64, 1
36
- end
37
- add_message "gateway_protocol.CancelProcessInstanceResponse" do
38
- end
39
- add_message "gateway_protocol.CompleteJobRequest" do
40
- optional :jobKey, :int64, 1
41
- optional :variables, :string, 2
42
- end
43
- add_message "gateway_protocol.CompleteJobResponse" do
44
- end
45
- add_message "gateway_protocol.CreateProcessInstanceRequest" do
46
- optional :processDefinitionKey, :int64, 1
47
- optional :bpmnProcessId, :string, 2
48
- optional :version, :int32, 3
49
- optional :variables, :string, 4
50
- end
51
- add_message "gateway_protocol.CreateProcessInstanceResponse" do
52
- optional :processDefinitionKey, :int64, 1
53
- optional :bpmnProcessId, :string, 2
54
- optional :version, :int32, 3
55
- optional :processInstanceKey, :int64, 4
56
- end
57
- add_message "gateway_protocol.CreateProcessInstanceWithResultRequest" do
58
- optional :request, :message, 1, "gateway_protocol.CreateProcessInstanceRequest"
59
- optional :requestTimeout, :int64, 2
60
- repeated :fetchVariables, :string, 3
61
- end
62
- add_message "gateway_protocol.CreateProcessInstanceWithResultResponse" do
63
- optional :processDefinitionKey, :int64, 1
64
- optional :bpmnProcessId, :string, 2
65
- optional :version, :int32, 3
66
- optional :processInstanceKey, :int64, 4
67
- optional :variables, :string, 5
68
- end
69
- add_message "gateway_protocol.DeployProcessRequest" do
70
- repeated :processes, :message, 1, "gateway_protocol.ProcessRequestObject"
71
- end
72
- add_message "gateway_protocol.ProcessRequestObject" do
73
- optional :name, :string, 1
74
- optional :definition, :bytes, 2
75
- end
76
- add_message "gateway_protocol.DeployProcessResponse" do
77
- optional :key, :int64, 1
78
- repeated :processes, :message, 2, "gateway_protocol.ProcessMetadata"
79
- end
80
- add_message "gateway_protocol.DeployResourceRequest" do
81
- repeated :resources, :message, 1, "gateway_protocol.Resource"
82
- end
83
- add_message "gateway_protocol.Resource" do
84
- optional :name, :string, 1
85
- optional :content, :bytes, 2
86
- end
87
- add_message "gateway_protocol.DeployResourceResponse" do
88
- optional :key, :int64, 1
89
- repeated :deployments, :message, 2, "gateway_protocol.Deployment"
90
- end
91
- add_message "gateway_protocol.Deployment" do
92
- oneof :Metadata do
93
- optional :process, :message, 1, "gateway_protocol.ProcessMetadata"
94
- optional :decision, :message, 2, "gateway_protocol.DecisionMetadata"
95
- optional :decisionRequirements, :message, 3, "gateway_protocol.DecisionRequirementsMetadata"
96
- end
97
- end
98
- add_message "gateway_protocol.ProcessMetadata" do
99
- optional :bpmnProcessId, :string, 1
100
- optional :version, :int32, 2
101
- optional :processDefinitionKey, :int64, 3
102
- optional :resourceName, :string, 4
103
- end
104
- add_message "gateway_protocol.DecisionMetadata" do
105
- optional :dmnDecisionId, :string, 1
106
- optional :dmnDecisionName, :string, 2
107
- optional :version, :int32, 3
108
- optional :decisionKey, :int64, 4
109
- optional :dmnDecisionRequirementsId, :string, 5
110
- optional :decisionRequirementsKey, :int64, 6
111
- end
112
- add_message "gateway_protocol.DecisionRequirementsMetadata" do
113
- optional :dmnDecisionRequirementsId, :string, 1
114
- optional :dmnDecisionRequirementsName, :string, 2
115
- optional :version, :int32, 3
116
- optional :decisionRequirementsKey, :int64, 4
117
- optional :resourceName, :string, 5
118
- end
119
- add_message "gateway_protocol.FailJobRequest" do
120
- optional :jobKey, :int64, 1
121
- optional :retries, :int32, 2
122
- optional :errorMessage, :string, 3
123
- optional :retryBackOff, :int64, 4
124
- end
125
- add_message "gateway_protocol.FailJobResponse" do
126
- end
127
- add_message "gateway_protocol.ThrowErrorRequest" do
128
- optional :jobKey, :int64, 1
129
- optional :errorCode, :string, 2
130
- optional :errorMessage, :string, 3
131
- end
132
- add_message "gateway_protocol.ThrowErrorResponse" do
133
- end
134
- add_message "gateway_protocol.PublishMessageRequest" do
135
- optional :name, :string, 1
136
- optional :correlationKey, :string, 2
137
- optional :timeToLive, :int64, 3
138
- optional :messageId, :string, 4
139
- optional :variables, :string, 5
140
- end
141
- add_message "gateway_protocol.PublishMessageResponse" do
142
- optional :key, :int64, 1
143
- end
144
- add_message "gateway_protocol.ResolveIncidentRequest" do
145
- optional :incidentKey, :int64, 1
146
- end
147
- add_message "gateway_protocol.ResolveIncidentResponse" do
148
- end
149
- add_message "gateway_protocol.TopologyRequest" do
150
- end
151
- add_message "gateway_protocol.TopologyResponse" do
152
- repeated :brokers, :message, 1, "gateway_protocol.BrokerInfo"
153
- optional :clusterSize, :int32, 2
154
- optional :partitionsCount, :int32, 3
155
- optional :replicationFactor, :int32, 4
156
- optional :gatewayVersion, :string, 5
157
- end
158
- add_message "gateway_protocol.BrokerInfo" do
159
- optional :nodeId, :int32, 1
160
- optional :host, :string, 2
161
- optional :port, :int32, 3
162
- repeated :partitions, :message, 4, "gateway_protocol.Partition"
163
- optional :version, :string, 5
164
- end
165
- add_message "gateway_protocol.Partition" do
166
- optional :partitionId, :int32, 1
167
- optional :role, :enum, 2, "gateway_protocol.Partition.PartitionBrokerRole"
168
- optional :health, :enum, 3, "gateway_protocol.Partition.PartitionBrokerHealth"
169
- end
170
- add_enum "gateway_protocol.Partition.PartitionBrokerRole" do
171
- value :LEADER, 0
172
- value :FOLLOWER, 1
173
- value :INACTIVE, 2
174
- end
175
- add_enum "gateway_protocol.Partition.PartitionBrokerHealth" do
176
- value :HEALTHY, 0
177
- value :UNHEALTHY, 1
178
- value :DEAD, 2
179
- end
180
- add_message "gateway_protocol.UpdateJobRetriesRequest" do
181
- optional :jobKey, :int64, 1
182
- optional :retries, :int32, 2
183
- end
184
- add_message "gateway_protocol.UpdateJobRetriesResponse" do
185
- end
186
- add_message "gateway_protocol.SetVariablesRequest" do
187
- optional :elementInstanceKey, :int64, 1
188
- optional :variables, :string, 2
189
- optional :local, :bool, 3
190
- end
191
- add_message "gateway_protocol.SetVariablesResponse" do
192
- optional :key, :int64, 1
7
+
8
+ descriptor_data = "\n\x13proto/gateway.proto\x12\x10gateway_protocol\"\x8e\x01\n\x13\x41\x63tivateJobsRequest\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0e\n\x06worker\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x03\x12\x19\n\x11maxJobsToActivate\x18\x04 \x01(\x05\x12\x15\n\rfetchVariable\x18\x05 \x03(\t\x12\x16\n\x0erequestTimeout\x18\x06 \x01(\x03\"D\n\x14\x41\x63tivateJobsResponse\x12,\n\x04jobs\x18\x01 \x03(\x0b\x32\x1e.gateway_protocol.ActivatedJob\"\xa8\x02\n\x0c\x41\x63tivatedJob\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x1a\n\x12processInstanceKey\x18\x03 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x04 \x01(\t\x12 \n\x18processDefinitionVersion\x18\x05 \x01(\x05\x12\x1c\n\x14processDefinitionKey\x18\x06 \x01(\x03\x12\x11\n\telementId\x18\x07 \x01(\t\x12\x1a\n\x12\x65lementInstanceKey\x18\x08 \x01(\x03\x12\x15\n\rcustomHeaders\x18\t \x01(\t\x12\x0e\n\x06worker\x18\n \x01(\t\x12\x0f\n\x07retries\x18\x0b \x01(\x05\x12\x10\n\x08\x64\x65\x61\x64line\x18\x0c \x01(\x03\x12\x11\n\tvariables\x18\r \x01(\t\":\n\x1c\x43\x61ncelProcessInstanceRequest\x12\x1a\n\x12processInstanceKey\x18\x01 \x01(\x03\"\x1f\n\x1d\x43\x61ncelProcessInstanceResponse\"7\n\x12\x43ompleteJobRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x11\n\tvariables\x18\x02 \x01(\t\"\x15\n\x13\x43ompleteJobResponse\"\xcd\x01\n\x1c\x43reateProcessInstanceRequest\x12\x1c\n\x14processDefinitionKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x11\n\tvariables\x18\x04 \x01(\t\x12T\n\x11startInstructions\x18\x05 \x03(\x0b\x32\x39.gateway_protocol.ProcessInstanceCreationStartInstruction\"<\n\'ProcessInstanceCreationStartInstruction\x12\x11\n\telementId\x18\x01 \x01(\t\"\x81\x01\n\x1d\x43reateProcessInstanceResponse\x12\x1c\n\x14processDefinitionKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x1a\n\x12processInstanceKey\x18\x04 \x01(\x03\"\x99\x01\n&CreateProcessInstanceWithResultRequest\x12?\n\x07request\x18\x01 \x01(\x0b\x32..gateway_protocol.CreateProcessInstanceRequest\x12\x16\n\x0erequestTimeout\x18\x02 \x01(\x03\x12\x16\n\x0e\x66\x65tchVariables\x18\x03 \x03(\t\"\x9e\x01\n\'CreateProcessInstanceWithResultResponse\x12\x1c\n\x14processDefinitionKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x1a\n\x12processInstanceKey\x18\x04 \x01(\x03\x12\x11\n\tvariables\x18\x05 \x01(\t\"U\n\x14\x44\x65ployProcessRequest\x12\x39\n\tprocesses\x18\x01 \x03(\x0b\x32&.gateway_protocol.ProcessRequestObject:\x02\x18\x01\"<\n\x14ProcessRequestObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ndefinition\x18\x02 \x01(\x0c:\x02\x18\x01\"^\n\x15\x44\x65ployProcessResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x34\n\tprocesses\x18\x02 \x03(\x0b\x32!.gateway_protocol.ProcessMetadata:\x02\x18\x01\"F\n\x15\x44\x65ployResourceRequest\x12-\n\tresources\x18\x01 \x03(\x0b\x32\x1a.gateway_protocol.Resource\")\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\"X\n\x16\x44\x65ployResourceResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x31\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32\x1c.gateway_protocol.Deployment\"\xd6\x01\n\nDeployment\x12\x34\n\x07process\x18\x01 \x01(\x0b\x32!.gateway_protocol.ProcessMetadataH\x00\x12\x36\n\x08\x64\x65\x63ision\x18\x02 \x01(\x0b\x32\".gateway_protocol.DecisionMetadataH\x00\x12N\n\x14\x64\x65\x63isionRequirements\x18\x03 \x01(\x0b\x32..gateway_protocol.DecisionRequirementsMetadataH\x00\x42\n\n\x08Metadata\"m\n\x0fProcessMetadata\x12\x15\n\rbpmnProcessId\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x1c\n\x14processDefinitionKey\x18\x03 \x01(\x03\x12\x14\n\x0cresourceName\x18\x04 \x01(\t\"\xac\x01\n\x10\x44\x65\x63isionMetadata\x12\x15\n\rdmnDecisionId\x18\x01 \x01(\t\x12\x17\n\x0f\x64mnDecisionName\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x13\n\x0b\x64\x65\x63isionKey\x18\x04 \x01(\x03\x12!\n\x19\x64mnDecisionRequirementsId\x18\x05 \x01(\t\x12\x1f\n\x17\x64\x65\x63isionRequirementsKey\x18\x06 \x01(\x03\"\xae\x01\n\x1c\x44\x65\x63isionRequirementsMetadata\x12!\n\x19\x64mnDecisionRequirementsId\x18\x01 \x01(\t\x12#\n\x1b\x64mnDecisionRequirementsName\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x1f\n\x17\x64\x65\x63isionRequirementsKey\x18\x04 \x01(\x03\x12\x14\n\x0cresourceName\x18\x05 \x01(\t\"]\n\x0e\x46\x61ilJobRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x0f\n\x07retries\x18\x02 \x01(\x05\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\x12\x14\n\x0cretryBackOff\x18\x04 \x01(\x03\"\x11\n\x0f\x46\x61ilJobResponse\"L\n\x11ThrowErrorRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x11\n\terrorCode\x18\x02 \x01(\t\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\"\x14\n\x12ThrowErrorResponse\"w\n\x15PublishMessageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63orrelationKey\x18\x02 \x01(\t\x12\x12\n\ntimeToLive\x18\x03 \x01(\x03\x12\x11\n\tmessageId\x18\x04 \x01(\t\x12\x11\n\tvariables\x18\x05 \x01(\t\"%\n\x16PublishMessageResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\"-\n\x16ResolveIncidentRequest\x12\x13\n\x0bincidentKey\x18\x01 \x01(\x03\"\x19\n\x17ResolveIncidentResponse\"\x11\n\x0fTopologyRequest\"\xa2\x01\n\x10TopologyResponse\x12-\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\x1c.gateway_protocol.BrokerInfo\x12\x13\n\x0b\x63lusterSize\x18\x02 \x01(\x05\x12\x17\n\x0fpartitionsCount\x18\x03 \x01(\x05\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x16\n\x0egatewayVersion\x18\x05 \x01(\t\"z\n\nBrokerInfo\x12\x0e\n\x06nodeId\x18\x01 \x01(\x05\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12/\n\npartitions\x18\x04 \x03(\x0b\x32\x1b.gateway_protocol.Partition\x12\x0f\n\x07version\x18\x05 \x01(\t\"\xa0\x02\n\tPartition\x12\x13\n\x0bpartitionId\x18\x01 \x01(\x05\x12=\n\x04role\x18\x02 \x01(\x0e\x32/.gateway_protocol.Partition.PartitionBrokerRole\x12\x41\n\x06health\x18\x03 \x01(\x0e\x32\x31.gateway_protocol.Partition.PartitionBrokerHealth\"=\n\x13PartitionBrokerRole\x12\n\n\x06LEADER\x10\x00\x12\x0c\n\x08\x46OLLOWER\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"=\n\x15PartitionBrokerHealth\x12\x0b\n\x07HEALTHY\x10\x00\x12\r\n\tUNHEALTHY\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\":\n\x17UpdateJobRetriesRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x0f\n\x07retries\x18\x02 \x01(\x05\"\x1a\n\x18UpdateJobRetriesResponse\"S\n\x13SetVariablesRequest\x12\x1a\n\x12\x65lementInstanceKey\x18\x01 \x01(\x03\x12\x11\n\tvariables\x18\x02 \x01(\t\x12\r\n\x05local\x18\x03 \x01(\x08\"#\n\x14SetVariablesResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\"\xa0\x04\n\x1cModifyProcessInstanceRequest\x12\x1a\n\x12processInstanceKey\x18\x01 \x01(\x03\x12`\n\x14\x61\x63tivateInstructions\x18\x02 \x03(\x0b\x32\x42.gateway_protocol.ModifyProcessInstanceRequest.ActivateInstruction\x12\x62\n\x15terminateInstructions\x18\x03 \x03(\x0b\x32\x43.gateway_protocol.ModifyProcessInstanceRequest.TerminateInstruction\x1a\xae\x01\n\x13\x41\x63tivateInstruction\x12\x11\n\telementId\x18\x01 \x01(\t\x12\"\n\x1a\x61ncestorElementInstanceKey\x18\x02 \x01(\x03\x12`\n\x14variableInstructions\x18\x03 \x03(\x0b\x32\x42.gateway_protocol.ModifyProcessInstanceRequest.VariableInstruction\x1a\x39\n\x13VariableInstruction\x12\x11\n\tvariables\x18\x01 \x01(\t\x12\x0f\n\x07scopeId\x18\x02 \x01(\t\x1a\x32\n\x14TerminateInstruction\x12\x1a\n\x12\x65lementInstanceKey\x18\x01 \x01(\x03\"\x1f\n\x1dModifyProcessInstanceResponse2\xc8\x0c\n\x07Gateway\x12\x61\n\x0c\x41\x63tivateJobs\x12%.gateway_protocol.ActivateJobsRequest\x1a&.gateway_protocol.ActivateJobsResponse\"\x00\x30\x01\x12z\n\x15\x43\x61ncelProcessInstance\x12..gateway_protocol.CancelProcessInstanceRequest\x1a/.gateway_protocol.CancelProcessInstanceResponse\"\x00\x12\\\n\x0b\x43ompleteJob\x12$.gateway_protocol.CompleteJobRequest\x1a%.gateway_protocol.CompleteJobResponse\"\x00\x12z\n\x15\x43reateProcessInstance\x12..gateway_protocol.CreateProcessInstanceRequest\x1a/.gateway_protocol.CreateProcessInstanceResponse\"\x00\x12\x98\x01\n\x1f\x43reateProcessInstanceWithResult\x12\x38.gateway_protocol.CreateProcessInstanceWithResultRequest\x1a\x39.gateway_protocol.CreateProcessInstanceWithResultResponse\"\x00\x12\x65\n\rDeployProcess\x12&.gateway_protocol.DeployProcessRequest\x1a\'.gateway_protocol.DeployProcessResponse\"\x03\x88\x02\x01\x12\x65\n\x0e\x44\x65ployResource\x12\'.gateway_protocol.DeployResourceRequest\x1a(.gateway_protocol.DeployResourceResponse\"\x00\x12P\n\x07\x46\x61ilJob\x12 .gateway_protocol.FailJobRequest\x1a!.gateway_protocol.FailJobResponse\"\x00\x12Y\n\nThrowError\x12#.gateway_protocol.ThrowErrorRequest\x1a$.gateway_protocol.ThrowErrorResponse\"\x00\x12\x65\n\x0ePublishMessage\x12\'.gateway_protocol.PublishMessageRequest\x1a(.gateway_protocol.PublishMessageResponse\"\x00\x12h\n\x0fResolveIncident\x12(.gateway_protocol.ResolveIncidentRequest\x1a).gateway_protocol.ResolveIncidentResponse\"\x00\x12_\n\x0cSetVariables\x12%.gateway_protocol.SetVariablesRequest\x1a&.gateway_protocol.SetVariablesResponse\"\x00\x12S\n\x08Topology\x12!.gateway_protocol.TopologyRequest\x1a\".gateway_protocol.TopologyResponse\"\x00\x12k\n\x10UpdateJobRetries\x12).gateway_protocol.UpdateJobRetriesRequest\x1a*.gateway_protocol.UpdateJobRetriesResponse\"\x00\x12z\n\x15ModifyProcessInstance\x12..gateway_protocol.ModifyProcessInstanceRequest\x1a/.gateway_protocol.ModifyProcessInstanceResponse\"\x00\x42,\n!io.camunda.zeebe.gateway.protocolP\x00Z\x05./;pbb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
193
28
  end
194
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
195
32
  end
196
33
 
197
34
  module Zeebe::Client::GatewayProtocol
@@ -203,6 +40,7 @@ module Zeebe::Client::GatewayProtocol
203
40
  CompleteJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CompleteJobRequest").msgclass
204
41
  CompleteJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CompleteJobResponse").msgclass
205
42
  CreateProcessInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceRequest").msgclass
43
+ ProcessInstanceCreationStartInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ProcessInstanceCreationStartInstruction").msgclass
206
44
  CreateProcessInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceResponse").msgclass
207
45
  CreateProcessInstanceWithResultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceWithResultRequest").msgclass
208
46
  CreateProcessInstanceWithResultResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceWithResultResponse").msgclass
@@ -234,4 +72,9 @@ module Zeebe::Client::GatewayProtocol
234
72
  UpdateJobRetriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesResponse").msgclass
235
73
  SetVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.SetVariablesRequest").msgclass
236
74
  SetVariablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.SetVariablesResponse").msgclass
75
+ ModifyProcessInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest").msgclass
76
+ ModifyProcessInstanceRequest::ActivateInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest.ActivateInstruction").msgclass
77
+ ModifyProcessInstanceRequest::VariableInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest.VariableInstruction").msgclass
78
+ ModifyProcessInstanceRequest::TerminateInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest.TerminateInstruction").msgclass
79
+ ModifyProcessInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceResponse").msgclass
237
80
  end
@@ -156,6 +156,21 @@ module Zeebe::Client::GatewayProtocol
156
156
  # INVALID_ARGUMENT:
157
157
  # - retries is not greater than 0
158
158
  rpc :UpdateJobRetries, ::Zeebe::Client::GatewayProtocol::UpdateJobRetriesRequest, ::Zeebe::Client::GatewayProtocol::UpdateJobRetriesResponse
159
+ #
160
+ # Modifies the process instance. This is done by activating and/or terminating specific elements of the instance.
161
+ #
162
+ # Errors:
163
+ # NOT_FOUND:
164
+ # - no process instance exists with the given key
165
+ #
166
+ # FAILED_PRECONDITION:
167
+ # - trying to activate element inside of a multi-instance
168
+ #
169
+ # INVALID_ARGUMENT:
170
+ # - activating or terminating unknown element
171
+ # - ancestor of element for activation doesn't exist
172
+ # - scope of variable is unknown
173
+ rpc :ModifyProcessInstance, ::Zeebe::Client::GatewayProtocol::ModifyProcessInstanceRequest, ::Zeebe::Client::GatewayProtocol::ModifyProcessInstanceResponse
159
174
  end
160
175
 
161
176
  Stub = Service.rpc_stub_class
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.17.0'.freeze
4
+ VERSION = '0.18.0'.freeze
5
5
  end
6
6
  end
data/proto/gateway.proto CHANGED
@@ -98,6 +98,23 @@ message CreateProcessInstanceRequest {
98
98
  // "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
99
99
  // valid argument, as the root of the JSON document is an array and not an object.
100
100
  string variables = 4;
101
+ // List of start instructions. If empty (default) the process instance
102
+ // will start at the start event. If non-empty the process instance will apply start
103
+ // instructions after it has been created
104
+ repeated ProcessInstanceCreationStartInstruction startInstructions = 5;
105
+ }
106
+
107
+ message ProcessInstanceCreationStartInstruction {
108
+
109
+ // future extensions might include
110
+ // - different types of start instructions
111
+ // - ability to set local variables for different flow scopes
112
+
113
+ // for now, however, the start instruction is implicitly a
114
+ // "startBeforeElement" instruction
115
+
116
+ // element ID
117
+ string elementId = 1;
101
118
  }
102
119
 
103
120
  message CreateProcessInstanceResponse {
@@ -254,7 +271,7 @@ message FailJobRequest {
254
271
  // this is particularly useful if a job runs out of retries and an incident is raised,
255
272
  // as it this message can help explain why an incident was raised
256
273
  string errorMessage = 3;
257
- // the backoff timeout for the next retry
274
+ // the backoff timeout (in ms) for the next retry
258
275
  int64 retryBackOff = 4;
259
276
  }
260
277
 
@@ -386,6 +403,48 @@ message SetVariablesResponse {
386
403
  int64 key = 1;
387
404
  }
388
405
 
406
+ message ModifyProcessInstanceRequest {
407
+ // the key of the process instance that should be modified
408
+ int64 processInstanceKey = 1;
409
+ // instructions describing which elements should be activated in which scopes,
410
+ // and which variables should be created
411
+ repeated ActivateInstruction activateInstructions = 2;
412
+ // instructions describing which elements should be terminated
413
+ repeated TerminateInstruction terminateInstructions = 3;
414
+
415
+ message ActivateInstruction {
416
+ // the id of the element that should be activated
417
+ string elementId = 1;
418
+ // the key of the ancestor scope the element instance should be created in;
419
+ // set to -1 to create the new element instance within an existing element
420
+ // instance of the flow scope
421
+ int64 ancestorElementInstanceKey = 2;
422
+ // instructions describing which variables should be created
423
+ repeated VariableInstruction variableInstructions = 3;
424
+ }
425
+
426
+ message VariableInstruction {
427
+ // JSON document that will instantiate the variables for the root variable scope of the
428
+ // process instance; it must be a JSON object, as variables will be mapped in a
429
+ // key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
430
+ // "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
431
+ // valid argument, as the root of the JSON document is an array and not an object.
432
+ string variables = 1;
433
+ // the id of the element in which scope the variables should be created;
434
+ // leave empty to create the variables in the global scope of the process instance
435
+ string scopeId = 2;
436
+ }
437
+
438
+ message TerminateInstruction {
439
+ // the id of the element that should be terminated
440
+ int64 elementInstanceKey = 1;
441
+ }
442
+ }
443
+
444
+ message ModifyProcessInstanceResponse {
445
+
446
+ }
447
+
389
448
  service Gateway {
390
449
  /*
391
450
  Iterates through all known partitions round-robin and activates up to the requested
@@ -573,4 +632,23 @@ service Gateway {
573
632
  */
574
633
  rpc UpdateJobRetries (UpdateJobRetriesRequest) returns (UpdateJobRetriesResponse) {
575
634
  }
635
+
636
+ /*
637
+ Modifies the process instance. This is done by activating and/or terminating specific elements of the instance.
638
+
639
+ Errors:
640
+ NOT_FOUND:
641
+ - no process instance exists with the given key
642
+
643
+ FAILED_PRECONDITION:
644
+ - trying to activate element inside of a multi-instance
645
+
646
+ INVALID_ARGUMENT:
647
+ - activating or terminating unknown element
648
+ - ancestor of element for activation doesn't exist
649
+ - scope of variable is unknown
650
+ */
651
+ rpc ModifyProcessInstance (ModifyProcessInstanceRequest) returns (ModifyProcessInstanceResponse) {
652
+
653
+ }
576
654
  }
data/zeebe-client.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
  s.require_paths = ['lib']
19
19
 
20
- s.required_ruby_version = '>= 2.5'
20
+ s.required_ruby_version = '>= 2.7'
21
21
 
22
22
  s.add_runtime_dependency 'grpc', '~> 1.32'
23
23
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency 'grpc-tools', '~> 1.32'
27
27
  s.add_development_dependency 'rake'
28
28
  s.add_development_dependency 'rspec'
29
- s.add_development_dependency 'rubocop', '~> 1.26.1'
29
+ s.add_development_dependency 'rubocop', '~> 1.28.2'
30
30
  s.add_development_dependency 'rubocop-rake'
31
31
  s.add_development_dependency 'rubocop-rspec'
32
32
  s.add_development_dependency 'solargraph'
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.17.0
4
+ version: 0.18.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: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.26.1
103
+ version: 1.28.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.26.1
110
+ version: 1.28.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -157,7 +157,7 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - ".github/dependabot.yml"
160
+ - ".github/renovate.json5"
161
161
  - ".github/workflows/ci.yml"
162
162
  - ".gitignore"
163
163
  - ".rubocop.yml"
@@ -190,14 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: '2.5'
193
+ version: '2.7'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.3.7
200
+ rubygems_version: 3.4.1
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Zeebe Client
@@ -1,9 +0,0 @@
1
- ---
2
- version: 2
3
- updates:
4
- - package-ecosystem: bundler
5
- directory: "/"
6
- schedule:
7
- interval: monthly
8
- time: '17:00'
9
- open-pull-requests-limit: 99