cpf.documentGetState( doc as String ) as String?
Determine the document's current state, if any.
const cpf = require('/MarkLogic/cpf/cpf'); cpf.documentGetState('/myDocs/example.xml');