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

chore(engine): add operation log for sync delete process instance #4028

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mboskamp
Copy link
Member

@mboskamp mboskamp commented Jan 8, 2024

Related to #3932

@mboskamp mboskamp self-assigned this Jan 8, 2024
@mboskamp mboskamp force-pushed the 3900-sync-message-correlation-op-log branch from 066b4c0 to b4382df Compare January 10, 2024 14:38
@mboskamp mboskamp force-pushed the 3900-sync-message-correlation-op-log branch from b4382df to 5939769 Compare January 19, 2024 14:27
Base automatically changed from 3900-sync-message-correlation-op-log to master January 19, 2024 14:30
@mboskamp mboskamp marked this pull request as ready for review February 23, 2024 11:07
@mboskamp mboskamp force-pushed the 3932-sync-op-log-multi-operations branch from 63d7a63 to f437d57 Compare February 23, 2024 12:04
Copy link
Member

@danielkelemen danielkelemen left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me. I left 2 hints.

Comment on lines +142 to +143
public Map<ProcessInstance, List<PropertyChange>> getPropChangesForOperation(List<ProcessInstance> results) {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

🔧 Depending on how often this will be just return null, this could be a default method in the interface.

runtimeService.deleteProcessInstance(instance1.getId(), null);

// then
UserOperationLogEntry logEntry = historyService.createUserOperationLogQuery().operationType(UserOperationLogEntry.OPERATION_TYPE_DELETE).singleResult();
Copy link
Member

Choose a reason for hiding this comment

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

🔧 Widescreen monitor ftw. You could add some line breaks 😀 (Below too.)

Suggested change
UserOperationLogEntry logEntry = historyService.createUserOperationLogQuery().operationType(UserOperationLogEntry.OPERATION_TYPE_DELETE).singleResult();
UserOperationLogEntry logEntry = historyService.createUserOperationLogQuery()
.operationType(UserOperationLogEntry.OPERATION_TYPE_DELETE)
.singleResult();

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.

None yet

2 participants