Hi,
Background, below code snippet is from a Procedure that we call when our lifecycle goes into “Published” state. We are trying to call a custom method “MycDocPublisher” with arguments to perform our task.
This Procedure was working fine with 22.4 and jdk11 (javax) but is failing after upgrade to 25.2 and jdk17 (Jakarta). WE have validations in our java method to verify the arguments, I removed all the arguments and still the method return q0.
Below is the API that we are trying to run. I added the Write statements to log the error or msgs.
cmd = "apply," + sessionID + ",NULL,DO_METHOD,METHOD,S,MycDocPublisher," + _
"ARGUMENTS,S,-docbase_name " + docbaseName + " -user " + UserName + _
" -ticket " + ticket + " -objectId " + objectID + " -tempFile " + tempFile + " - validateAttr FALSE"
colID = DmAPIGet(cmd)
Write #2, "Command is : ", cmd
Write #2, "Returned from MycDocPublisher colID: ", colID
'analyse the result of the MycDocPublisher method
cmd = "next," + sessionID + "," + colID
If DmAPIExec(cmd) Then
cmd = "get," + sessionID + "," + colID + ",method_return_val"
retVal = DmAPIGet(cmd)
Write #2, "retVal value is : ", retVal
Below is the output of this log file
"Command is : ","apply,s0,NULL,DO_METHOD,METHOD,S,MycDocPublisher,ARGUMENTS,S,-docbase_name m_corpdocbase -user docadmin -ticket <value of ticket> -objectId 09008d5c8022e91b -tempFile /cfo/Documentum/docoffice/psa1234 -validateAttr FALSE"
"Returned from MycDocPublisher colID: ","q0"
"retVal value is : ","0"