-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(engine): Populating process instance id in jobs #4334
base: master
Are you sure you want to change the base?
Conversation
@yanavasileva, |
Hi @punitdarira, Thank you for raising this pull request and showing interest in our product.
Why you need the field there? The
In Cockpit, we display all job logs with the specific Lastly, don't forget to cover the made changes with test cases. Hope that helps you to continue with the contribution. Best, |
Hi Yana, Line 93 in 3f6cb30
The above line gets invoked from Regarding tests, can you please guide whether we should go for new test file for AbstractBatchJobHandler where we simply mock or do we deploy a bpmn file in a test case and check whether instance and definition ids are set? |
I missed that, however, in debug mode and in general the historic job logs doesn't inherit the process definition id from the batch job entity. At the moment, I can't say why is that. So we need to understand why and fix it eventually.
I think we can add a test case(s) to existing classes that test batch execution. Here's an example of single invocation test for set variables we have at the moment: https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/SetVariablesBatchTest.java#L673-L695. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed above, the pull request needs more work.
Hi Yana, |
related to #4205