Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Add variables to ThrowError RPC #323

Closed
jwulf opened this issue Jun 19, 2023 · 0 comments · Fixed by #324
Closed

Add variables to ThrowError RPC #323

jwulf opened this issue Jun 19, 2023 · 0 comments · Fixed by #324

Comments

@jwulf
Copy link
Member

jwulf commented Jun 19, 2023

gRPC documentation: https://docs.camunda.io/docs/apis-tools/grpc/#throwerror-rpc

message ThrowErrorRequest {
  // the unique job identifier, as obtained when activating the job
  int64 jobKey = 1;
  // the error code that will be matched with an error catch event
  string errorCode = 2;
  // an optional error message that provides additional context
  string errorMessage = 3;
  // JSON document that will instantiate the variables at the local scope of the
  // error catch event that catches the thrown error; it must be a JSON object, as variables will be mapped in a
  // key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
  // "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
  // valid argument, as the root of the JSON document is an array and not an object.
  string variables = 4;
}
jwulf added a commit that referenced this issue Jun 22, 2023
@jwulf jwulf mentioned this issue Jun 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant