-
Notifications
You must be signed in to change notification settings - Fork 198
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
Prevent overlapping state transitions in workflows #2065
Conversation
|
...c/domains/entities/hooks/mutations/useApproveTaskByIdMutation/useApproveTaskByIdMutation.tsx
Show resolved
Hide resolved
services/workflows-service/scripts/workflows/generate-base-case-level-states.ts
Outdated
Show resolved
Hide resolved
services/workflows-service/src/workflow/workflow.controller.internal.unit.test.ts
Show resolved
Hide resolved
services/workflows-service/src/workflow/workflow.service.intg.test.ts
Outdated
Show resolved
Hide resolved
services/workflows-service/src/workflow/workflow-runtime-data.repository.intg.test.ts
Show resolved
Hide resolved
services/workflows-service/src/collection-flow/controllers/collection-flow.controller.ts
Show resolved
Hide resolved
services/workflows-service/src/workflow/workflow-runtime-data.repository.ts
Outdated
Show resolved
Hide resolved
PR Description updated to latest commit (736412f) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
Type
enhancement, bug_fix
Description
WorkflowService
and related repositories to support transactions, enhancing data consistency and error handling.DEEP_MERGE_CONTEXT
event to allow deep merging of workflow context data with support for various array merge strategies.WorkflowService
.workflow-core
package for deep merging objects, supporting different strategies for merging arrays.Changes walkthrough
workflow.service.ts
Enhance Workflow Service with Transaction Support and Deep Merge
Context Event
services/workflows-service/src/workflow/workflow.service.ts
PrismaTransaction
in various methods fortransaction support.
data.
beginTransactionIfNotExistCurry
for transactional operations.DEEP_MERGE_CONTEXT
event handling for deep merging contextdata.
workflow-runtime-data.repository.ts
Update Workflow Runtime Data Repository for Transaction Support
services/workflows-service/src/workflow/workflow-runtime-data.repository.ts
deep-merge-with-options.ts
Implement Deep Merge Utility Function with Array Merge Options
packages/workflow-core/src/lib/utils/deep-merge-with-options.ts
array merge strategies.
workflow-runner.ts
Integrate Deep Merge Context Event Handling in Workflow Runner
packages/workflow-core/src/lib/workflow-runner.ts
DEEP_MERGE_CONTEXT
event handling in the workflow runner.workflow.service.intg.test.ts
Add Integration Tests for WorkflowService Enhancements
services/workflows-service/src/workflow/workflow.service.intg.test.ts
WorkflowService
.DEEP_MERGE_CONTEXT
event for various scenarios including nestedobjects and arrays.