Fixed
Details
Assignee
Deepak PansheriyaDeepak PansheriyaReporter
Deepak PansheriyaDeepak PansheriyaFix versions
Priority
Major
Details
Details
Assignee
Deepak Pansheriya
Deepak PansheriyaReporter
Deepak Pansheriya
Deepak PansheriyaFix versions
Priority
Created January 28, 2025 at 5:11 AM
Updated 3 days ago
Resolved February 24, 2025 at 9:08 AM
If we throw exception from approveIt, then Approval workflow terminated and not report any error to user.
This cause user to think that it approved as request removed from workflow activities.
Steps to Produce.
As ApproveIt validation only possible to implement in Model class, for producing issue, used change event and make sure that exception thrown from same block of code.
Environment setup
Login to system tenant and import 2pack Loading file... . This 2pack add approval workflow supports into purchase order.
Download and extract Loading file... . This zip has plugin adding event handler which throw exception when purchase order description is empty while approving perchase order. either install binary added in plugin folder using osgi console or add source code in eclipse.
Test Step
Login with GardenUser in Garden world tenant.
Create purchase order keeping description blank.
Complete PO. This should show suspended message.
Login as GardenAdmin and open workflow activities.
it should show Activities to approve purchase order. Select it.
On Answer, Select Yes and then click on ok button.
Expected result: It should show error message “
Must provide approval comments in description
" and workflow activity should show thereActual result : No error reported and workflow activities disappear from approver’s queue. Workflow process is terminated
I tested the fix and creating PR for same.