Skip to content

Conversation

@sadilchamishka
Copy link
Contributor

@sadilchamishka sadilchamishka commented Aug 19, 2025

Copilot AI review requested due to automatic review settings August 19, 2025 01:37
Copy link
Contributor

Copilot AI left a 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.

sadilchamishka and others added 3 commits August 19, 2025 07:12
…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]>
@sadilchamishka
Copy link
Contributor Author

@sadilchamishka sadilchamishka merged commit abd8210 into wso2-extensions:main Aug 19, 2025
2 checks passed
Malith-19 pushed a commit to Malith-19/identity-workflow that referenced this pull request Sep 4, 2025
Malith-19 pushed a commit to Malith-19/identity-workflow that referenced this pull request Sep 4, 2025
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.

3 participants