Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make message chaos experiment possible #174

Merged
merged 11 commits into from
Sep 26, 2022
Merged

Make message chaos experiment possible #174

merged 11 commits into from
Sep 26, 2022

Conversation

ChrisKujawa
Copy link
Member

Before my surgery I run a new message correlation experiment, details you can find in the blog https://zeebe-io.github.io/zeebe-chaos/2022/08/31/Message-Correlation-after-Network-Partition For that experiment I had to add some new features to the zbchaos toolkit

I already opened some PR's #166 #167 but this was only part of it, so now here is everything I added to make this experiment possible.

  • Allow specifying different process models for the verify steady-state command. This is useful for other experiments, for example where I want to deploy a model with a message catch event.
  • Allow to specify the message name
  • Allow to specify variables on the process instance creation
  • Iterate over the message publish correlation key, we use now printable characters otherwise they cant be used in variables

When no filename is given we want to read the default bpmn model, where we also need to use the correct filename, otherwise the deployment will fail.
 * Await the result of the instance if flag is set
 * use process definition key to create instance
 * extract method
Previously control-characters have been used for simplicity, but this makes it hard to create variables in PI in order to correlate the message. For that we need printable characters. this commit adjustes the calculation to find correct and suitable correlation keys.
var err error

if len(fileName) == 0 {
fileName = "bpmn/one_task.bpmn"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisKujawa ChrisKujawa merged commit d20ad07 into main Sep 26, 2022
@ChrisKujawa ChrisKujawa deleted the zell-msg-chaos-exp branch September 26, 2022 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants