What is a workflows context?
856044Aug 2 2011 — edited Aug 3 2011We've working on a custom script that overwrites the default UCM workflow approve method. Instead of that, we sign the document digitally, check it into the workflow and then call approve on it. The problem is the following: workflow exit steps will not start when call APPROVE_WORKFLOW ( Executing service WORKFLOW_APPROVE with parameters {dID=263814, wfRejectMessage=999999999999999999999, dDocName=UCM_263186, inQueueRedirect=1, curStepName=Digiallkirjastamine}
) ourselves.
I had the idea of triggering the exit event myself, however I keep on running into the error "Script function wfUpdateMetaData not allowed outside a workflow computation context. Script function wfUpdateMetaData not allowed outside a workflow computation context. Script function wfUpdateMetaData not allowed outside a workflow computation context. [ Details ]".
Any ideas are welcome.