141: * action: one of g_doc_action_XXXX, e.g. g_doc_action_APPROVE
142: * lock_document: pass as true if you the document should be locked
143: * before handling the logic for the action
144: * document_type: 'PO', 'PA', 'REQUISITION', or 'RELEASE'
145: * document_subtype: 'STANDARD', 'BLANKET', 'CONTRACT', 'SCHEDULED', etc.
146: * document_id: po_header_id, requisition_header_id, or po_release_id
147: * note: usually used for action history purposes
148: *
149: * The following are primarily used by workflow actions (approve, reject, etc.)
227: * doc_id : Document Header Id of the entity being canceled
228: * For document Type PO/PA, it will PO Header Id
229: * For Docuemnt Type Release, it will be release id
230: * document_type :Document Type PO/PA/Release
231: * document_subtype :Document SubType:STANDARD/PLANNED/BLANKET/..
232: * entity_id :Id of the entity being canceled, ex:
233: * Po_hedaer_id if PO Header is canceled,
234: * Line_Loctaion_id if PO shipment is canceled,
235: * entity_level :Level at which cancel action is performed ex: