Where can I find the condition that pushes an item which is pending approval to the approval table? In our workflow, we only have approvals in one specific phase. But this does not seem to be the only rule.
But I'm not sure what I am looking for in this. I found this line regarding the current phase but don't see anything else which would help.
if exists("current.phase", $L.file) then (current.phase in $L.log=current.phase in $L.file)
The problem was that approvallog table contained a record which was in a phase in which No approvals were set for in the PD.
Please let me know if there is anywhere else to check.