Notifications
Announcements
No record found.
public void updateHeaderStatus() { boolean allProcessed = true; ITRequestEqLine itRequestEqLine; while select Status from itRequestEqLine where itRequestEqLine.ITRequestId == this.ITRequestId { if (itRequestEqLine.Status == WorkflowLineStatusCFM::InReview || itRequestEqLine.Status == WorkflowLineStatusCFM::Draft) { allProcessed = false; break; } } ITRequestEqHeader header; select forUpdate header where header.ITRequestId == this.ITRequestId; if (header.RecId) { ttsBegin; header.Status = allProcessed ? WorkflowHeaderStatusCFM::Closed : WorkflowHeaderStatusCFM::Open; header.update(); ttsCommit; } }
protected void updateHeaderStatus() { // Is there any open line? ITRequestEqLine requestEqLineOpen; select firstonly RecId from requestEqLineOpen where requestEqLineOpen.ITRequestId == itRequestId && ( requestEqLineOpen.Status == WorkflowLineStatusCFM::InReview || requestEqLineOpen.Status == WorkflowLineStatusCFM::Draft)); if (!requestEqLineOpen.RecId) { // Mark the header closed ttsbegin; ITRequestEqHeader header = ITRequestEqHeader::find(itRequestId, true); header.Status = WorkflowHeaderStatusCFM::Closed; header.update(); ttscommit; } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 669 Super User 2025 Season 2
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 384 Most Valuable Professional