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

[CPT] I can complete a job #25360

Open
saig0 opened this issue Nov 27, 2024 · 0 comments
Open

[CPT] I can complete a job #25360

saig0 opened this issue Nov 27, 2024 · 0 comments
Labels
component/camunda-process-test Related to the Camunda-Process-Test component kind/feature Categorizes an issue or PR as a feature, i.e. new behavior

Comments

@saig0
Copy link
Member

saig0 commented Nov 27, 2024

Description

In Camunda Process Test, I want to complete a specific job in the process test. Instead of using the API/SDK, I want to use a utility to ease the completion of jobs during a test.

Tasks

  • Define the job by its job-type, or the BPMN element id (or a generic matcher)
  • Possible job operations:
    • Complete the job
    • Throw a BPMN error

For example:

processTestContext.completeJob("element-id");
processTestContext.completeJob("element-id", variables);

processTestContext.completeJob(byJobType("job-type"));
processTestContext.completeJob(byJobType("job-type"), variables);

processTestContext.throwBpmnErrorFromJob("element-id", errorCode);
processTestContext.throwBpmnErrorFromJob("element-id", errorCode, variables);
processTestContext.throwBpmnErrorFromJob(byJobType("job-type"), errorCode);
processTestContext.throwBpmnErrorFromJob(byJobType("job-type"), errorCode, variables);

related to #19262

@saig0 saig0 added kind/feature Categorizes an issue or PR as a feature, i.e. new behavior component/camunda-process-test Related to the Camunda-Process-Test component labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/camunda-process-test Related to the Camunda-Process-Test component kind/feature Categorizes an issue or PR as a feature, i.e. new behavior
Projects
None yet
Development

No branches or pull requests

1 participant