Issue with Custom Workflow - custom table

Rodtmclean
Member Posts: 89
I'm having some issues with a custom workflow I have developed. Approve, Reject and Delegate are all working fine. However, Cancel is only working at the first level of approval.
1. User 1 sends the document for approval to User 2 and it is possible to cancel.
2. If the amount is too high for User 2, when they approve, the approval is sent to User 3 to approve (lets say they have unlimited amounts). At this point it is not possible to cancel the document.
I have noticed that after User 2 approves in point 2 above, the workflow step instances are move to the Workflow Step Instance Archived table and there are no records in Workflow Step Instance.
The following is from Workflow Step Instance prior to User 2 approving. After User 2 has approved the workflow steps are moved to archived and there are no current ones.

Appreciate any pointers. I am currently comparing my code with purchase document workflow code but still can't see quite where I've gone wrong.
Thanks
Roddy
1. User 1 sends the document for approval to User 2 and it is possible to cancel.
2. If the amount is too high for User 2, when they approve, the approval is sent to User 3 to approve (lets say they have unlimited amounts). At this point it is not possible to cancel the document.
I have noticed that after User 2 approves in point 2 above, the workflow step instances are move to the Workflow Step Instance Archived table and there are no records in Workflow Step Instance.
The following is from Workflow Step Instance prior to User 2 approving. After User 2 has approved the workflow steps are moved to archived and there are no current ones.

Appreciate any pointers. I am currently comparing my code with purchase document workflow code but still can't see quite where I've gone wrong.
Thanks
Roddy
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions