zeebe-client 0.18.0 → 0.20.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: ca85b164178d216344933c4d88d6ae05ef1bb5df987a503ad46477478c439b72
4
- data.tar.gz: 8c5e6680400c30023b2bfd5d31c80d6905a8ef039ddf55d2916db4aa986c0a5d
3
+ metadata.gz: 6193e7d161a1b0cce3494d267cd79e086c5466f10fd7b18b04324434ccd99364
4
+ data.tar.gz: 646e895d11d8fa6e3e6d16abb3a6aa470dff5eab33ed4be18e0f01d435a4941c
5
5
  SHA512:
6
- metadata.gz: 63295bff1a47f01dc42848c69ca9e5d1d17fe47ed30d95bb11a3bdaf2133363667f6911402f75c80bd4669362f7ae04c2b0318fe2f26cd64a20f3f396ed8a3d2
7
- data.tar.gz: 48408911f4afe911d716f7ac86736b07ee16c705492ca1a9e2b2784b13667485b98305fdcf7099643edc1fd1a7776543d40aceb3755e1e46b68fe06725694c03
6
+ metadata.gz: a939bee05654c409b31379d725e06c39713840fc419c7541ce0555f90bfb8266bb10f98abeaba48e9fc2711e33341729e79017382df46cbd8aff446c3de7f4e8
7
+ data.tar.gz: 2b5109c205ff51add561b04d605c98e31d423c62c875718bb111d719d11b44f52ff273f7f40690afa575827408fafb7d2f244a9fab5bcaa0b3032c62165924bf
@@ -16,16 +16,18 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  ruby-version:
19
- - '2.7'
20
19
  - '3.0'
21
20
  - '3.1'
21
+ - '3.2'
22
22
  steps:
23
- - uses: actions/checkout@v3
23
+ - uses: actions/checkout@v4
24
+
24
25
  - name: Set up Ruby ${{ matrix.ruby-version }}
25
26
  uses: ruby/setup-ruby@v1
26
27
  with:
27
28
  ruby-version: ${{ matrix.ruby-version }}
28
29
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30
+
29
31
  - name: Test
30
32
  run: |
31
33
  bundle exec rake ci
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ inherit_mode:
4
4
  - Exclude
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: '2.7'
7
+ TargetRubyVersion: '3.0'
8
8
  NewCops: enable
9
9
  Exclude:
10
10
  - 'examples/*'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0 (January 19th, 2024)
4
+
5
+ - add support for [Zeebe 8.4.0](https://github.com/camunda/zeebe/releases/tag/8.4.0)
6
+
7
+ ## 0.19.0 (June 5th, 2023)
8
+
9
+ - add support for [Zeebe 8.2.5](https://github.com/camunda/zeebe/releases/tag/8.2.5)
10
+ - support Ruby 3.2
11
+ - drop EOL Ruby 2.7
12
+
3
13
  ## 0.18.0 (June 5th, 2023)
4
14
 
5
15
  - add support for [Zeebe 8.1.12](https://github.com/camunda/zeebe/releases/tag/8.1.12)
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.1.12
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:8.4.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 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.1.12'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:8.4.0'
17
17
  sleep(10)
18
18
  end
19
19
 
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
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"
8
+ descriptor_data = "\n\x13proto/gateway.proto\x12\x10gateway_protocol\"u\n\x1aStreamActivatedJobsRequest\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\x15\n\rfetchVariable\x18\x05 \x03(\t\x12\x11\n\ttenantIds\x18\x06 \x03(\t\"\xa1\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\x12\x11\n\ttenantIds\x18\x07 \x03(\t\"D\n\x14\x41\x63tivateJobsResponse\x12,\n\x04jobs\x18\x01 \x03(\x0b\x32\x1e.gateway_protocol.ActivatedJob\"\xba\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\x12\x10\n\x08tenantId\x18\x0e \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\"\xdf\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\x12\x10\n\x08tenantId\x18\x06 \x01(\t\"<\n\'ProcessInstanceCreationStartInstruction\x12\x11\n\telementId\x18\x01 \x01(\t\"\x93\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\x12\x10\n\x08tenantId\x18\x05 \x01(\t\"\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\"\xb0\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\x12\x10\n\x08tenantId\x18\x06 \x01(\t\"g\n\x17\x45valuateDecisionRequest\x12\x13\n\x0b\x64\x65\x63isionKey\x18\x01 \x01(\x03\x12\x12\n\ndecisionId\x18\x02 \x01(\t\x12\x11\n\tvariables\x18\x03 \x01(\t\x12\x10\n\x08tenantId\x18\x04 \x01(\t\"\xd0\x02\n\x18\x45valuateDecisionResponse\x12\x13\n\x0b\x64\x65\x63isionKey\x18\x01 \x01(\x03\x12\x12\n\ndecisionId\x18\x02 \x01(\t\x12\x14\n\x0c\x64\x65\x63isionName\x18\x03 \x01(\t\x12\x17\n\x0f\x64\x65\x63isionVersion\x18\x04 \x01(\x05\x12\x1e\n\x16\x64\x65\x63isionRequirementsId\x18\x05 \x01(\t\x12\x1f\n\x17\x64\x65\x63isionRequirementsKey\x18\x06 \x01(\x03\x12\x16\n\x0e\x64\x65\x63isionOutput\x18\x07 \x01(\t\x12?\n\x12\x65valuatedDecisions\x18\x08 \x03(\x0b\x32#.gateway_protocol.EvaluatedDecision\x12\x18\n\x10\x66\x61iledDecisionId\x18\t \x01(\t\x12\x16\n\x0e\x66\x61ilureMessage\x18\n \x01(\t\x12\x10\n\x08tenantId\x18\x0b \x01(\t\"\xab\x02\n\x11\x45valuatedDecision\x12\x13\n\x0b\x64\x65\x63isionKey\x18\x01 \x01(\x03\x12\x12\n\ndecisionId\x18\x02 \x01(\t\x12\x14\n\x0c\x64\x65\x63isionName\x18\x03 \x01(\t\x12\x17\n\x0f\x64\x65\x63isionVersion\x18\x04 \x01(\x05\x12\x14\n\x0c\x64\x65\x63isionType\x18\x05 \x01(\t\x12\x16\n\x0e\x64\x65\x63isionOutput\x18\x06 \x01(\t\x12;\n\x0cmatchedRules\x18\x07 \x03(\x0b\x32%.gateway_protocol.MatchedDecisionRule\x12\x41\n\x0f\x65valuatedInputs\x18\x08 \x03(\x0b\x32(.gateway_protocol.EvaluatedDecisionInput\x12\x10\n\x08tenantId\x18\t \x01(\t\"P\n\x16\x45valuatedDecisionInput\x12\x0f\n\x07inputId\x18\x01 \x01(\t\x12\x11\n\tinputName\x18\x02 \x01(\t\x12\x12\n\ninputValue\x18\x03 \x01(\t\"T\n\x17\x45valuatedDecisionOutput\x12\x10\n\x08outputId\x18\x01 \x01(\t\x12\x12\n\noutputName\x18\x02 \x01(\t\x12\x13\n\x0boutputValue\x18\x03 \x01(\t\"}\n\x13MatchedDecisionRule\x12\x0e\n\x06ruleId\x18\x01 \x01(\t\x12\x11\n\truleIndex\x18\x02 \x01(\x05\x12\x43\n\x10\x65valuatedOutputs\x18\x03 \x03(\x0b\x32).gateway_protocol.EvaluatedDecisionOutput\"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\"X\n\x15\x44\x65ployResourceRequest\x12-\n\tresources\x18\x01 \x03(\x0b\x32\x1a.gateway_protocol.Resource\x12\x10\n\x08tenantId\x18\x02 \x01(\t\")\n\x08Resource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\"j\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\x12\x10\n\x08tenantId\x18\x03 \x01(\t\"\x86\x02\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\x12.\n\x04\x66orm\x18\x04 \x01(\x0b\x32\x1e.gateway_protocol.FormMetadataH\x00\x42\n\n\x08Metadata\"\x7f\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\x12\x10\n\x08tenantId\x18\x05 \x01(\t\"\xbe\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\x12\x10\n\x08tenantId\x18\x07 \x01(\t\"\xc0\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\x12\x10\n\x08tenantId\x18\x06 \x01(\t\"h\n\x0c\x46ormMetadata\x12\x0e\n\x06\x66ormId\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x0f\n\x07\x66ormKey\x18\x03 \x01(\x03\x12\x14\n\x0cresourceName\x18\x04 \x01(\t\x12\x10\n\x08tenantId\x18\x05 \x01(\t\"p\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\x12\x11\n\tvariables\x18\x05 \x01(\t\"\x11\n\x0f\x46\x61ilJobResponse\"_\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\x12\x11\n\tvariables\x18\x04 \x01(\t\"\x14\n\x12ThrowErrorResponse\"\x89\x01\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\x12\x10\n\x08tenantId\x18\x06 \x01(\t\"7\n\x16PublishMessageResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x10\n\x08tenantId\x18\x02 \x01(\t\"-\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\":\n\x17UpdateJobTimeoutRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x0f\n\x07timeout\x18\x02 \x01(\x03\"\x1a\n\x18UpdateJobTimeoutResponse\"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\x1dModifyProcessInstanceResponse\"\xf0\x02\n\x1dMigrateProcessInstanceRequest\x12\x1a\n\x12processInstanceKey\x18\x01 \x01(\x03\x12T\n\rmigrationPlan\x18\x02 \x01(\x0b\x32=.gateway_protocol.MigrateProcessInstanceRequest.MigrationPlan\x1a\x94\x01\n\rMigrationPlan\x12\"\n\x1atargetProcessDefinitionKey\x18\x01 \x01(\x03\x12_\n\x13mappingInstructions\x18\x02 \x03(\x0b\x32\x42.gateway_protocol.MigrateProcessInstanceRequest.MappingInstruction\x1a\x46\n\x12MappingInstruction\x12\x17\n\x0fsourceElementId\x18\x01 \x01(\t\x12\x17\n\x0ftargetElementId\x18\x02 \x01(\t\" \n\x1eMigrateProcessInstanceResponse\",\n\x15\x44\x65leteResourceRequest\x12\x13\n\x0bresourceKey\x18\x01 \x01(\x03\"\x18\n\x16\x44\x65leteResourceResponse\"Q\n\x16\x42roadcastSignalRequest\x12\x12\n\nsignalName\x18\x01 \x01(\t\x12\x11\n\tvariables\x18\x02 \x01(\t\x12\x10\n\x08tenantId\x18\x03 \x01(\t\"8\n\x17\x42roadcastSignalResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x10\n\x08tenantId\x18\x02 \x01(\t2\xdb\x11\n\x07Gateway\x12\x61\n\x0c\x41\x63tivateJobs\x12%.gateway_protocol.ActivateJobsRequest\x1a&.gateway_protocol.ActivateJobsResponse\"\x00\x30\x01\x12g\n\x13StreamActivatedJobs\x12,.gateway_protocol.StreamActivatedJobsRequest\x1a\x1e.gateway_protocol.ActivatedJob\"\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\x12k\n\x10\x45valuateDecision\x12).gateway_protocol.EvaluateDecisionRequest\x1a*.gateway_protocol.EvaluateDecisionResponse\"\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\x12}\n\x16MigrateProcessInstance\x12/.gateway_protocol.MigrateProcessInstanceRequest\x1a\x30.gateway_protocol.MigrateProcessInstanceResponse\"\x00\x12k\n\x10UpdateJobTimeout\x12).gateway_protocol.UpdateJobTimeoutRequest\x1a*.gateway_protocol.UpdateJobTimeoutResponse\"\x00\x12\x65\n\x0e\x44\x65leteResource\x12\'.gateway_protocol.DeleteResourceRequest\x1a(.gateway_protocol.DeleteResourceResponse\"\x00\x12h\n\x0f\x42roadcastSignal\x12(.gateway_protocol.BroadcastSignalRequest\x1a).gateway_protocol.BroadcastSignalResponse\"\x00\x42,\n!io.camunda.zeebe.gateway.protocolP\x00Z\x05./;pbb\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
@@ -32,6 +32,7 @@ rescue TypeError => e
32
32
  end
33
33
 
34
34
  module Zeebe::Client::GatewayProtocol
35
+ StreamActivatedJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.StreamActivatedJobsRequest").msgclass
35
36
  ActivateJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivateJobsRequest").msgclass
36
37
  ActivateJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivateJobsResponse").msgclass
37
38
  ActivatedJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ActivatedJob").msgclass
@@ -44,6 +45,12 @@ module Zeebe::Client::GatewayProtocol
44
45
  CreateProcessInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceResponse").msgclass
45
46
  CreateProcessInstanceWithResultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceWithResultRequest").msgclass
46
47
  CreateProcessInstanceWithResultResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.CreateProcessInstanceWithResultResponse").msgclass
48
+ EvaluateDecisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.EvaluateDecisionRequest").msgclass
49
+ EvaluateDecisionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.EvaluateDecisionResponse").msgclass
50
+ EvaluatedDecision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.EvaluatedDecision").msgclass
51
+ EvaluatedDecisionInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.EvaluatedDecisionInput").msgclass
52
+ EvaluatedDecisionOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.EvaluatedDecisionOutput").msgclass
53
+ MatchedDecisionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.MatchedDecisionRule").msgclass
47
54
  DeployProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DeployProcessRequest").msgclass
48
55
  ProcessRequestObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ProcessRequestObject").msgclass
49
56
  DeployProcessResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DeployProcessResponse").msgclass
@@ -54,6 +61,7 @@ module Zeebe::Client::GatewayProtocol
54
61
  ProcessMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ProcessMetadata").msgclass
55
62
  DecisionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DecisionMetadata").msgclass
56
63
  DecisionRequirementsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DecisionRequirementsMetadata").msgclass
64
+ FormMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.FormMetadata").msgclass
57
65
  FailJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.FailJobRequest").msgclass
58
66
  FailJobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.FailJobResponse").msgclass
59
67
  ThrowErrorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ThrowErrorRequest").msgclass
@@ -70,6 +78,8 @@ module Zeebe::Client::GatewayProtocol
70
78
  Partition::PartitionBrokerHealth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.Partition.PartitionBrokerHealth").enummodule
71
79
  UpdateJobRetriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesRequest").msgclass
72
80
  UpdateJobRetriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesResponse").msgclass
81
+ UpdateJobTimeoutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobTimeoutRequest").msgclass
82
+ UpdateJobTimeoutResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobTimeoutResponse").msgclass
73
83
  SetVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.SetVariablesRequest").msgclass
74
84
  SetVariablesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.SetVariablesResponse").msgclass
75
85
  ModifyProcessInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest").msgclass
@@ -77,4 +87,12 @@ module Zeebe::Client::GatewayProtocol
77
87
  ModifyProcessInstanceRequest::VariableInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest.VariableInstruction").msgclass
78
88
  ModifyProcessInstanceRequest::TerminateInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceRequest.TerminateInstruction").msgclass
79
89
  ModifyProcessInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.ModifyProcessInstanceResponse").msgclass
90
+ MigrateProcessInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.MigrateProcessInstanceRequest").msgclass
91
+ MigrateProcessInstanceRequest::MigrationPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.MigrateProcessInstanceRequest.MigrationPlan").msgclass
92
+ MigrateProcessInstanceRequest::MappingInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.MigrateProcessInstanceRequest.MappingInstruction").msgclass
93
+ MigrateProcessInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.MigrateProcessInstanceResponse").msgclass
94
+ DeleteResourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DeleteResourceRequest").msgclass
95
+ DeleteResourceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.DeleteResourceResponse").msgclass
96
+ BroadcastSignalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.BroadcastSignalRequest").msgclass
97
+ BroadcastSignalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.BroadcastSignalResponse").msgclass
80
98
  end
@@ -26,6 +26,15 @@ module Zeebe::Client::GatewayProtocol
26
26
  # - maxJobsToActivate is less than 1
27
27
  rpc :ActivateJobs, ::Zeebe::Client::GatewayProtocol::ActivateJobsRequest, stream(::Zeebe::Client::GatewayProtocol::ActivateJobsResponse)
28
28
  #
29
+ # Registers client to a job stream that will stream jobs back to the client as
30
+ # they become activatable.
31
+ #
32
+ # Errors:
33
+ # INVALID_ARGUMENT:
34
+ # - type is blank (empty string, null)
35
+ # - timeout less than 1
36
+ rpc :StreamActivatedJobs, ::Zeebe::Client::GatewayProtocol::StreamActivatedJobsRequest, stream(::Zeebe::Client::GatewayProtocol::ActivatedJob)
37
+ #
29
38
  # Cancels a running process instance
30
39
  #
31
40
  # Errors:
@@ -69,6 +78,18 @@ module Zeebe::Client::GatewayProtocol
69
78
  # Behaves similarly to `rpc CreateProcessInstance`, except that a successful response is received when the process completes successfully.
70
79
  rpc :CreateProcessInstanceWithResult, ::Zeebe::Client::GatewayProtocol::CreateProcessInstanceWithResultRequest, ::Zeebe::Client::GatewayProtocol::CreateProcessInstanceWithResultResponse
71
80
  #
81
+ # Evaluates a decision. The decision to evaluate can be specified either by
82
+ # using its unique key (as returned by DeployResource), or using the decision
83
+ # ID. When using the decision ID, the latest deployed version of the decision
84
+ # is used.
85
+ #
86
+ # Errors:
87
+ # INVALID_ARGUMENT:
88
+ # - no decision with the given key exists (if decisionKey was given)
89
+ # - no decision with the given decision ID exists (if decisionId was given)
90
+ # - both decision ID and decision KEY were provided, or are missing
91
+ rpc :EvaluateDecision, ::Zeebe::Client::GatewayProtocol::EvaluateDecisionRequest, ::Zeebe::Client::GatewayProtocol::EvaluateDecisionResponse
92
+ #
72
93
  # Deploys one or more processes to Zeebe. Note that this is an atomic call,
73
94
  # i.e. either all processes are deployed, or none of them are.
74
95
  #
@@ -84,11 +105,17 @@ module Zeebe::Client::GatewayProtocol
84
105
  # Note that this is an atomic call, i.e. either all resources are deployed, or none of them are.
85
106
  #
86
107
  # Errors:
108
+ # PERMISSION_DENIED:
109
+ # - if a deployment to an unauthorized tenant is performed
87
110
  # INVALID_ARGUMENT:
88
111
  # - no resources given.
89
112
  # - if at least one resource is invalid. A resource is considered invalid if:
90
113
  # - the content is not deserializable (e.g. detected as BPMN, but it's broken XML)
91
114
  # - the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task)
115
+ # - if multi-tenancy is enabled, and:
116
+ # - a tenant id is not provided
117
+ # - a tenant id with an invalid format is provided
118
+ # - if multi-tenancy is disabled and a tenant id is provided
92
119
  rpc :DeployResource, ::Zeebe::Client::GatewayProtocol::DeployResourceRequest, ::Zeebe::Client::GatewayProtocol::DeployResourceResponse
93
120
  #
94
121
  # Marks the job as failed; if the retries argument is positive, then the job will be immediately
@@ -171,6 +198,64 @@ module Zeebe::Client::GatewayProtocol
171
198
  # - ancestor of element for activation doesn't exist
172
199
  # - scope of variable is unknown
173
200
  rpc :ModifyProcessInstance, ::Zeebe::Client::GatewayProtocol::ModifyProcessInstanceRequest, ::Zeebe::Client::GatewayProtocol::ModifyProcessInstanceResponse
201
+ #
202
+ # Migrates the process instance to the specified process definition.
203
+ # In simple terms, this is handled by updating the active element's process.
204
+ #
205
+ # Errors:
206
+ # NOT_FOUND:
207
+ # - no process instance exists with the given key, or it is not active
208
+ # - no process definition exists with the given target definition key
209
+ # - no process instance exists with the given key for the tenants the user is authorized to work with.
210
+ #
211
+ # FAILED_PRECONDITION:
212
+ # - not all active elements in the given process instance are mapped to the elements in the target process definition
213
+ # - a mapping instruction changes the type of an element or event
214
+ # - a mapping instruction refers to an unsupported element (i.e. some elements will be supported later on)
215
+ # - a mapping instruction refers to element in unsupported scenarios.
216
+ # (i.e. migration is not supported when process instance or target process elements contains event subscriptions)
217
+ #
218
+ # INVALID_ARGUMENT:
219
+ # - A `sourceElementId` does not refer to an element in the process instance's process definition
220
+ # - A `targetElementId` does not refer to an element in the target process definition
221
+ # - A `sourceElementId` is mapped by multiple mapping instructions.
222
+ # For example, the engine cannot determine how to migrate a process instance when the instructions are: [A->B, A->C].
223
+ rpc :MigrateProcessInstance, ::Zeebe::Client::GatewayProtocol::MigrateProcessInstanceRequest, ::Zeebe::Client::GatewayProtocol::MigrateProcessInstanceResponse
224
+ #
225
+ # Updates the deadline of a job using the timeout (in ms) provided. This can be used
226
+ # for extending or shortening the job deadline.
227
+ #
228
+ # Errors:
229
+ # NOT_FOUND:
230
+ # - no job exists with the given key
231
+ #
232
+ # INVALID_STATE:
233
+ # - no deadline exists for the given job key
234
+ rpc :UpdateJobTimeout, ::Zeebe::Client::GatewayProtocol::UpdateJobTimeoutRequest, ::Zeebe::Client::GatewayProtocol::UpdateJobTimeoutResponse
235
+ #
236
+ # Deletes a resource from the state. Once a resource has been deleted it cannot
237
+ # be recovered. If the resource needs to be available again, a new deployment
238
+ # of the resource is required.
239
+ #
240
+ # Deleting a process will cancel any running instances of this process
241
+ # definition. New instances of a deleted process are created using
242
+ # the lastest version that hasn't been deleted. Creating a new
243
+ # process instance is impossible when all versions have been
244
+ # deleted.
245
+ #
246
+ # Deleting a decision requirement definitions could cause incidents in process
247
+ # instances referencing these decisions in a business rule task. A decision
248
+ # will be evaluated with the latest version that hasn't been deleted. If all
249
+ # versions of a decision have been deleted the evaluation is rejected.
250
+ #
251
+ # Errors:
252
+ # NOT_FOUND:
253
+ # - No resource exists with the given key
254
+ #
255
+ rpc :DeleteResource, ::Zeebe::Client::GatewayProtocol::DeleteResourceRequest, ::Zeebe::Client::GatewayProtocol::DeleteResourceResponse
256
+ #
257
+ # Broadcasts a signal.
258
+ rpc :BroadcastSignal, ::Zeebe::Client::GatewayProtocol::BroadcastSignalRequest, ::Zeebe::Client::GatewayProtocol::BroadcastSignalResponse
174
259
  end
175
260
 
176
261
  Stub = Service.rpc_stub_class
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.18.0'.freeze
4
+ VERSION = '0.20.0'.freeze
5
5
  end
6
6
  end
data/proto/gateway.proto CHANGED
@@ -8,6 +8,22 @@ option go_package = "./;pb";
8
8
  // For a more complete documentation, refer to Zeebe documentation at:
9
9
  // https://docs.camunda.io/docs/reference/grpc
10
10
 
11
+ message StreamActivatedJobsRequest {
12
+ // the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
13
+ // type="payment-service" />)
14
+ string type = 1;
15
+ // the name of the worker activating the jobs, mostly used for logging purposes
16
+ string worker = 2;
17
+ // a job returned after this call will not be activated by another call until the
18
+ // timeout (in ms) has been reached
19
+ int64 timeout = 3;
20
+ // a list of variables to fetch as the job variables; if empty, all visible variables at
21
+ // the time of activation for the scope of the job will be returned
22
+ repeated string fetchVariable = 5;
23
+ // a list of identifiers of tenants for which to stream jobs
24
+ repeated string tenantIds = 6;
25
+ }
26
+
11
27
  message ActivateJobsRequest {
12
28
  // the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
13
29
  // type="payment-service" />)
@@ -26,6 +42,8 @@ message ActivateJobsRequest {
26
42
  // if the requestTimeout = 0, a default timeout is used.
27
43
  // if the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.
28
44
  int64 requestTimeout = 6;
45
+ // a list of IDs of tenants for which to activate jobs
46
+ repeated string tenantIds = 7;
29
47
  }
30
48
 
31
49
  message ActivateJobsResponse {
@@ -63,6 +81,8 @@ message ActivatedJob {
63
81
  // JSON document, computed at activation time, consisting of all visible variables to
64
82
  // the task scope
65
83
  string variables = 13;
84
+ // the id of the tenant that owns the job
85
+ string tenantId = 14;
66
86
  }
67
87
 
68
88
  message CancelProcessInstanceRequest {
@@ -102,6 +122,8 @@ message CreateProcessInstanceRequest {
102
122
  // will start at the start event. If non-empty the process instance will apply start
103
123
  // instructions after it has been created
104
124
  repeated ProcessInstanceCreationStartInstruction startInstructions = 5;
125
+ // the tenant id of the process definition
126
+ string tenantId = 6;
105
127
  }
106
128
 
107
129
  message ProcessInstanceCreationStartInstruction {
@@ -128,6 +150,8 @@ message CreateProcessInstanceResponse {
128
150
  // the unique identifier of the created process instance; to be used wherever a request
129
151
  // needs a process instance key (e.g. CancelProcessInstanceRequest)
130
152
  int64 processInstanceKey = 4;
153
+ // the tenant identifier of the created process instance
154
+ string tenantId = 5;
131
155
  }
132
156
 
133
157
  message CreateProcessInstanceWithResultRequest {
@@ -155,7 +179,107 @@ message CreateProcessInstanceWithResultResponse {
155
179
  // JSON document
156
180
  // consists of visible variables in the root scope
157
181
  string variables = 5;
158
-
182
+ // the tenant identifier of the process definition
183
+ string tenantId = 6;
184
+ }
185
+
186
+ message EvaluateDecisionRequest {
187
+ // the unique key identifying the decision to be evaluated (e.g. returned
188
+ // from a decision in the DeployResourceResponse message)
189
+ int64 decisionKey = 1;
190
+ // the ID of the decision to be evaluated
191
+ string decisionId = 2;
192
+ // JSON document that will instantiate the variables for the decision to be
193
+ // evaluated; it must be a JSON object, as variables will be mapped in a
194
+ // key-value fashion, e.g. { "a": 1, "b": 2 } will create two variables,
195
+ // named "a" and "b" respectively, with their associated values.
196
+ // [{ "a": 1, "b": 2 }] would not be a valid argument, as the root of the
197
+ // JSON document is an array and not an object.
198
+ string variables = 3;
199
+ // the tenant identifier of the decision
200
+ string tenantId = 4;
201
+ }
202
+
203
+ message EvaluateDecisionResponse {
204
+ // the unique key identifying the decision which was evaluated (e.g. returned
205
+ // from a decision in the DeployResourceResponse message)
206
+ int64 decisionKey = 1;
207
+ // the ID of the decision which was evaluated
208
+ string decisionId = 2;
209
+ // the name of the decision which was evaluated
210
+ string decisionName = 3;
211
+ // the version of the decision which was evaluated
212
+ int32 decisionVersion = 4;
213
+ // the ID of the decision requirements graph that the decision which was
214
+ // evaluated is part of.
215
+ string decisionRequirementsId = 5;
216
+ // the unique key identifying the decision requirements graph that the
217
+ // decision which was evaluated is part of.
218
+ int64 decisionRequirementsKey = 6;
219
+ // JSON document that will instantiate the result of the decision which was
220
+ // evaluated; it will be a JSON object, as the result output will be mapped
221
+ // in a key-value fashion, e.g. { "a": 1 }.
222
+ string decisionOutput = 7;
223
+ // a list of decisions that were evaluated within the requested decision evaluation
224
+ repeated EvaluatedDecision evaluatedDecisions = 8;
225
+ // an optional string indicating the ID of the decision which
226
+ // failed during evaluation
227
+ string failedDecisionId = 9;
228
+ // an optional message describing why the decision which was evaluated failed
229
+ string failureMessage = 10;
230
+ // the tenant identifier of the evaluated decision
231
+ string tenantId = 11;
232
+ }
233
+
234
+ message EvaluatedDecision {
235
+ // the unique key identifying the decision which was evaluated (e.g. returned
236
+ // from a decision in the DeployResourceResponse message)
237
+ int64 decisionKey = 1;
238
+ // the ID of the decision which was evaluated
239
+ string decisionId = 2;
240
+ // the name of the decision which was evaluated
241
+ string decisionName = 3;
242
+ // the version of the decision which was evaluated
243
+ int32 decisionVersion = 4;
244
+ // the type of the decision which was evaluated
245
+ string decisionType = 5;
246
+ // JSON document that will instantiate the result of the decision which was
247
+ // evaluated; it will be a JSON object, as the result output will be mapped
248
+ // in a key-value fashion, e.g. { "a": 1 }.
249
+ string decisionOutput = 6;
250
+ // the decision rules that matched within this decision evaluation
251
+ repeated MatchedDecisionRule matchedRules = 7;
252
+ // the decision inputs that were evaluated within this decision evaluation
253
+ repeated EvaluatedDecisionInput evaluatedInputs = 8;
254
+ // the tenant identifier of the evaluated decision
255
+ string tenantId = 9;
256
+ }
257
+
258
+ message EvaluatedDecisionInput {
259
+ // the id of the evaluated decision input
260
+ string inputId = 1;
261
+ // the name of the evaluated decision input
262
+ string inputName = 2;
263
+ // the value of the evaluated decision input
264
+ string inputValue = 3;
265
+ }
266
+
267
+ message EvaluatedDecisionOutput {
268
+ // the id of the evaluated decision output
269
+ string outputId = 1;
270
+ // the name of the evaluated decision output
271
+ string outputName = 2;
272
+ // the value of the evaluated decision output
273
+ string outputValue = 3;
274
+ }
275
+
276
+ message MatchedDecisionRule {
277
+ // the id of the matched rule
278
+ string ruleId = 1;
279
+ // the index of the matched rule
280
+ int32 ruleIndex = 2;
281
+ // the evaluated decision outputs
282
+ repeated EvaluatedDecisionOutput evaluatedOutputs = 3;
159
283
  }
160
284
 
161
285
  message DeployProcessRequest {
@@ -186,6 +310,8 @@ message DeployProcessResponse {
186
310
  message DeployResourceRequest {
187
311
  // list of resources to deploy
188
312
  repeated Resource resources = 1;
313
+ // the tenant id of the resources to deploy
314
+ string tenantId = 2;
189
315
  }
190
316
 
191
317
  message Resource {
@@ -200,6 +326,8 @@ message DeployResourceResponse {
200
326
  int64 key = 1;
201
327
  // a list of deployed resources, e.g. processes
202
328
  repeated Deployment deployments = 2;
329
+ // the tenant id of the deployed resources
330
+ string tenantId = 3;
203
331
  }
204
332
 
205
333
  message Deployment {
@@ -211,6 +339,8 @@ message Deployment {
211
339
  DecisionMetadata decision = 2;
212
340
  // metadata of a deployed decision requirements
213
341
  DecisionRequirementsMetadata decisionRequirements = 3;
342
+ // metadata of a deployed form
343
+ FormMetadata form = 4;
214
344
  }
215
345
  }
216
346
 
@@ -225,6 +355,8 @@ message ProcessMetadata {
225
355
  // the resource name (see: ProcessRequestObject.name) from which this process was
226
356
  // parsed
227
357
  string resourceName = 4;
358
+ // the tenant id of the deployed process
359
+ string tenantId = 5;
228
360
  }
229
361
 
230
362
  message DecisionMetadata {
@@ -244,6 +376,8 @@ message DecisionMetadata {
244
376
  // the assigned key of the decision requirements graph that this decision is
245
377
  // part of
246
378
  int64 decisionRequirementsKey = 6;
379
+ // the tenant id of the deployed decision
380
+ string tenantId = 7;
247
381
  }
248
382
 
249
383
  message DecisionRequirementsMetadata {
@@ -260,6 +394,22 @@ message DecisionRequirementsMetadata {
260
394
  // the resource name (see: Resource.name) from which this decision
261
395
  // requirements was parsed
262
396
  string resourceName = 5;
397
+ // the tenant id of the deployed decision requirements
398
+ string tenantId = 6;
399
+ }
400
+
401
+ message FormMetadata {
402
+ // the form ID, as parsed during deployment; together with the
403
+ // versions forms a unique identifier for a specific form
404
+ string formId = 1;
405
+ // the assigned form version
406
+ int32 version = 2;
407
+ // the assigned key, which acts as a unique identifier for this form
408
+ int64 formKey = 3;
409
+ // the resource name
410
+ string resourceName = 4;
411
+ // the tenant id of the deployed form
412
+ string tenantId = 5;
263
413
  }
264
414
 
265
415
  message FailJobRequest {
@@ -273,6 +423,12 @@ message FailJobRequest {
273
423
  string errorMessage = 3;
274
424
  // the backoff timeout (in ms) for the next retry
275
425
  int64 retryBackOff = 4;
426
+ // JSON document that will instantiate the variables at the local scope of the
427
+ // job's associated task; it must be a JSON object, as variables will be mapped in a
428
+ // key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
429
+ // "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
430
+ // valid argument, as the root of the JSON document is an array and not an object.
431
+ string variables = 5;
276
432
  }
277
433
 
278
434
  message FailJobResponse {
@@ -285,6 +441,12 @@ message ThrowErrorRequest {
285
441
  string errorCode = 2;
286
442
  // an optional error message that provides additional context
287
443
  string errorMessage = 3;
444
+ // JSON document that will instantiate the variables at the local scope of the
445
+ // error catch event that catches the thrown error; it must be a JSON object, as variables will be mapped in a
446
+ // key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
447
+ // "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
448
+ // valid argument, as the root of the JSON document is an array and not an object.
449
+ string variables = 4;
288
450
  }
289
451
 
290
452
  message ThrowErrorResponse {
@@ -303,11 +465,15 @@ message PublishMessageRequest {
303
465
  // the message variables as a JSON document; to be valid, the root of the document must be an
304
466
  // object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
305
467
  string variables = 5;
468
+ // the tenant id of the message
469
+ string tenantId = 6;
306
470
  }
307
471
 
308
472
  message PublishMessageResponse {
309
473
  // the unique ID of the message that was published
310
474
  int64 key = 1;
475
+ // the tenant id of the message
476
+ string tenantId = 2;
311
477
  }
312
478
 
313
479
  message ResolveIncidentRequest {
@@ -380,6 +546,16 @@ message UpdateJobRetriesRequest {
380
546
  message UpdateJobRetriesResponse {
381
547
  }
382
548
 
549
+ message UpdateJobTimeoutRequest {
550
+ // the unique job identifier, as obtained from ActivateJobsResponse
551
+ int64 jobKey = 1;
552
+ // the duration of the new timeout in ms, starting from the current moment
553
+ int64 timeout = 2;
554
+ }
555
+
556
+ message UpdateJobTimeoutResponse {
557
+ }
558
+
383
559
  message SetVariablesRequest {
384
560
  // the unique identifier of a particular element; can be the process instance key (as
385
561
  // obtained during instance creation), or a given element, such as a service task (see
@@ -445,6 +621,58 @@ message ModifyProcessInstanceResponse {
445
621
 
446
622
  }
447
623
 
624
+ message MigrateProcessInstanceRequest {
625
+ // key of the process instance to migrate
626
+ int64 processInstanceKey = 1;
627
+ // the migration plan that defines target process and element mappings
628
+ MigrationPlan migrationPlan = 2;
629
+
630
+ message MigrationPlan {
631
+ // the key of process definition to migrate the process instance to
632
+ int64 targetProcessDefinitionKey = 1;
633
+ // the mapping instructions describe how to map elements from the source process definition to the target process definition
634
+ repeated MappingInstruction mappingInstructions = 2;
635
+ }
636
+
637
+ message MappingInstruction {
638
+ // the element id to migrate from
639
+ string sourceElementId = 1;
640
+ // the element id to migrate into
641
+ string targetElementId = 2;
642
+ }
643
+ }
644
+
645
+ message MigrateProcessInstanceResponse {
646
+
647
+ }
648
+
649
+ message DeleteResourceRequest {
650
+ // The key of the resource that should be deleted. This can either be the key
651
+ // of a process definition, the key of a decision requirements definition or the key of a form.
652
+ int64 resourceKey = 1;
653
+ }
654
+
655
+ message DeleteResourceResponse {
656
+
657
+ }
658
+
659
+ message BroadcastSignalRequest {
660
+ // The name of the signal
661
+ string signalName = 1;
662
+ // the signal variables as a JSON document; to be valid, the root of the document must be an
663
+ // object, e.g. { "a": "foo" }. [ "foo" ] would not be valid.
664
+ string variables = 2;
665
+ // the id of the tenant that owns the signal.
666
+ string tenantId = 3;
667
+ }
668
+
669
+ message BroadcastSignalResponse {
670
+ // the unique ID of the signal that was broadcasted.
671
+ int64 key = 1;
672
+ // the tenant id of the signal that was broadcasted.
673
+ string tenantId = 2;
674
+ }
675
+
448
676
  service Gateway {
449
677
  /*
450
678
  Iterates through all known partitions round-robin and activates up to the requested
@@ -460,6 +688,18 @@ service Gateway {
460
688
  rpc ActivateJobs (ActivateJobsRequest) returns (stream ActivateJobsResponse) {
461
689
  }
462
690
 
691
+ /*
692
+ Registers client to a job stream that will stream jobs back to the client as
693
+ they become activatable.
694
+
695
+ Errors:
696
+ INVALID_ARGUMENT:
697
+ - type is blank (empty string, null)
698
+ - timeout less than 1
699
+ */
700
+ rpc StreamActivatedJobs (StreamActivatedJobsRequest) returns (stream ActivatedJob) {
701
+ }
702
+
463
703
  /*
464
704
  Cancels a running process instance
465
705
 
@@ -515,6 +755,21 @@ service Gateway {
515
755
  rpc CreateProcessInstanceWithResult (CreateProcessInstanceWithResultRequest) returns (CreateProcessInstanceWithResultResponse) {
516
756
  }
517
757
 
758
+ /*
759
+ Evaluates a decision. The decision to evaluate can be specified either by
760
+ using its unique key (as returned by DeployResource), or using the decision
761
+ ID. When using the decision ID, the latest deployed version of the decision
762
+ is used.
763
+
764
+ Errors:
765
+ INVALID_ARGUMENT:
766
+ - no decision with the given key exists (if decisionKey was given)
767
+ - no decision with the given decision ID exists (if decisionId was given)
768
+ - both decision ID and decision KEY were provided, or are missing
769
+ */
770
+ rpc EvaluateDecision (EvaluateDecisionRequest) returns (EvaluateDecisionResponse) {
771
+ }
772
+
518
773
  /*
519
774
  Deploys one or more processes to Zeebe. Note that this is an atomic call,
520
775
  i.e. either all processes are deployed, or none of them are.
@@ -536,11 +791,17 @@ service Gateway {
536
791
  Note that this is an atomic call, i.e. either all resources are deployed, or none of them are.
537
792
 
538
793
  Errors:
794
+ PERMISSION_DENIED:
795
+ - if a deployment to an unauthorized tenant is performed
539
796
  INVALID_ARGUMENT:
540
797
  - no resources given.
541
798
  - if at least one resource is invalid. A resource is considered invalid if:
542
799
  - the content is not deserializable (e.g. detected as BPMN, but it's broken XML)
543
800
  - the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task)
801
+ - if multi-tenancy is enabled, and:
802
+ - a tenant id is not provided
803
+ - a tenant id with an invalid format is provided
804
+ - if multi-tenancy is disabled and a tenant id is provided
544
805
  */
545
806
  rpc DeployResource (DeployResourceRequest) returns (DeployResourceResponse) {
546
807
  }
@@ -651,4 +912,77 @@ service Gateway {
651
912
  rpc ModifyProcessInstance (ModifyProcessInstanceRequest) returns (ModifyProcessInstanceResponse) {
652
913
 
653
914
  }
915
+
916
+ /*
917
+ Migrates the process instance to the specified process definition.
918
+ In simple terms, this is handled by updating the active element's process.
919
+
920
+ Errors:
921
+ NOT_FOUND:
922
+ - no process instance exists with the given key, or it is not active
923
+ - no process definition exists with the given target definition key
924
+ - no process instance exists with the given key for the tenants the user is authorized to work with.
925
+
926
+ FAILED_PRECONDITION:
927
+ - not all active elements in the given process instance are mapped to the elements in the target process definition
928
+ - a mapping instruction changes the type of an element or event
929
+ - a mapping instruction refers to an unsupported element (i.e. some elements will be supported later on)
930
+ - a mapping instruction refers to element in unsupported scenarios.
931
+ (i.e. migration is not supported when process instance or target process elements contains event subscriptions)
932
+
933
+ INVALID_ARGUMENT:
934
+ - A `sourceElementId` does not refer to an element in the process instance's process definition
935
+ - A `targetElementId` does not refer to an element in the target process definition
936
+ - A `sourceElementId` is mapped by multiple mapping instructions.
937
+ For example, the engine cannot determine how to migrate a process instance when the instructions are: [A->B, A->C].
938
+ */
939
+ rpc MigrateProcessInstance (MigrateProcessInstanceRequest) returns (MigrateProcessInstanceResponse) {
940
+
941
+ }
942
+
943
+ /*
944
+ Updates the deadline of a job using the timeout (in ms) provided. This can be used
945
+ for extending or shortening the job deadline.
946
+
947
+ Errors:
948
+ NOT_FOUND:
949
+ - no job exists with the given key
950
+
951
+ INVALID_STATE:
952
+ - no deadline exists for the given job key
953
+ */
954
+ rpc UpdateJobTimeout (UpdateJobTimeoutRequest) returns (UpdateJobTimeoutResponse) {
955
+ }
956
+
957
+ /*
958
+ Deletes a resource from the state. Once a resource has been deleted it cannot
959
+ be recovered. If the resource needs to be available again, a new deployment
960
+ of the resource is required.
961
+
962
+ Deleting a process will cancel any running instances of this process
963
+ definition. New instances of a deleted process are created using
964
+ the lastest version that hasn't been deleted. Creating a new
965
+ process instance is impossible when all versions have been
966
+ deleted.
967
+
968
+ Deleting a decision requirement definitions could cause incidents in process
969
+ instances referencing these decisions in a business rule task. A decision
970
+ will be evaluated with the latest version that hasn't been deleted. If all
971
+ versions of a decision have been deleted the evaluation is rejected.
972
+
973
+ Errors:
974
+ NOT_FOUND:
975
+ - No resource exists with the given key
976
+
977
+ */
978
+ rpc DeleteResource (DeleteResourceRequest) returns (DeleteResourceResponse) {
979
+
980
+ }
981
+
982
+ /*
983
+ Broadcasts a signal.
984
+ */
985
+ rpc BroadcastSignal (BroadcastSignalRequest) returns (BroadcastSignalResponse) {
986
+
987
+ }
654
988
  }
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.7'
20
+ s.required_ruby_version = '>= 3.0'
21
21
 
22
22
  s.add_runtime_dependency 'grpc', '~> 1.32'
23
23
 
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.18.0
4
+ version: 0.20.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: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -190,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: '2.7'
193
+ version: '3.0'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="