-
Notifications
You must be signed in to change notification settings - Fork 6
Delete pending approval tasks when workflow request is deleted #23
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
Delete pending approval tasks when workflow request is deleted #23
Conversation
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.
Pull Request Overview
This PR implements functionality to delete pending approval tasks when a workflow request is deleted, ensuring proper cleanup of related resources. The implementation adds a new method to selectively delete only tasks in pending states (READY, RESERVED, BLOCKED) rather than all approval tasks.
- Adds a new SQL query to delete pending approval tasks with specific status filtering
- Implements the deletion logic through the DAO, service implementation, and interface layers
- Provides proper error handling and parameter validation for the new functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| WorkflowEngineConstants.java | Adds SQL query constant for deleting pending approval tasks with status filter |
| ApprovalTaskDAOImpl.java | Implements the database operation to delete pending approval tasks |
| ApprovalTaskDAO.java | Defines the interface method for deleting pending approval tasks |
| ApprovalTaskServiceImpl.java | Implements the service layer method with validation |
| ApprovalTaskService.java | Declares the service interface method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...kflow.engine/src/main/java/org/wso2/carbon/identity/workflow/engine/ApprovalTaskService.java
Outdated
Show resolved
Hide resolved
...ine/src/main/java/org/wso2/carbon/identity/workflow/engine/internal/dao/ApprovalTaskDAO.java
Outdated
Show resolved
Hide resolved
…ava/org/wso2/carbon/identity/workflow/engine/internal/dao/ApprovalTaskDAO.java Co-authored-by: Copilot <[email protected]>
…ava/org/wso2/carbon/identity/workflow/engine/ApprovalTaskService.java Co-authored-by: Copilot <[email protected]>
|
Integration Test - https://github.com/sadilchamishka/product-is/actions/runs/17057346775 |
…release v1.0.11
…for next development iteration
Purpose
Related Issues