Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Fusion Document Records Approval Issue
Summary:
Hi All,
We have requirement to create 2 Approvals for Document of Records which has custom DFF called "Reason". And the requirement is as follows.
- If Document Reason is "ABC" then Auto Approve
- If Document Reason is !="ABC" then LM Approval
This I configured using BPM as we have a date calculation logic here. During first couple of transactions, 2nd approval is working fine but at a later point approval attributes are disappearing from the rule and rule started misbehaving.
Rule 1 Logic :
( ( ( GetNewDoRByTransactionIdResponse.result.documentType != "Work from Home Request - Ongoing" ) && ( GetNewDoRByTransactionIdResponse.result.documentType == "Work from Home Request - Temporary" ) && ( GetNewDoRByTransactionIdResponse.result.deiAttributeNumber1 == 1 ) && ( Duration.days between(GetNewDoRByTransactionIdResponse.result.dateFrom.toGregorianCalendar(),GetNewDoRByTransactionIdResponse.result.dateTo.toGregorianCalendar()) <= 31 ) ) && ( ( GetNewDoRByTransactionIdResponse.result.deiAttribute2 contains "Local" ) || ( ( GetNewDoRByTransactionIdResponse.result.deiAttribute2 contains "ADA" ) || ( ( GetNewDoRByTransactionIdResponse.result.deiAttribute2 contains "Medical" ) || ( GetNewDoRByTransactionIdResponse.result.deiAttribute2 contains "New Hire" ) ) ) ) )