custom service being called from a workflowand
the issue is every time the file is checked in for the first timeyou probably can't use LatestReleased. Therefore, I'd try if Specific with dID, or Latest with dDocName will work.
jiri.machotka wrote:I tried using all the permutations and combinations,but it does not seem to work for any of them.
See the description of the service's parameters: http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#BABFDEFH
Namely, RevisionSelectionMethod: The revision selection method.
If present, dDocName must be present. The value of this variable is the method used to compute a dID from the specified dDocName. Its value can be Specific, Latest, or LatestReleased.
If the value is Specific, the dDocName is ignored, and dID is required and is used to get a rendition. If the value is Latest, the latest revision of the content item is used to compute the dID. If the value is LatestReleased, the latest released revision of the content item is used to compute the dID.
Since you mentioned thatcustom service being called from a workflowandthe issue is every time the file is checked in for the first timeyou probably can't use LatestReleased. Therefore, I'd try if Specific with dID, or Latest with dDocName will work.
It is also possible that your service is called too early (during checkin of the first revision of an item that will end up in a workflow). Would you mind adding a description what you want to achieve and when/how your service is called?
jiri.machotka wrote:Thanks Jiri,
At this level, you should be able to call GET_FILE with no issues.
The only logical explanation I can find is that the identifier you provide is not correct. You can verify it quite easily from GUI
- check-in a new item
- from workflow revision, navigate to Content Information
- get Content ID (dDocName)
- in the browser change the URL to something like ?IdcService=GET_FILE&dDocName=gotten dDocName&RevisionSelectionMethod=Latest
- and it should work (at least it worked for me)
If you change the dDocName (e.g. delete few characters), you will get the error.
jiri.machotka wrote:Jiri,The point here is ,currently there are 0 reviewers defined for this workflow currentlyIt means you have no items in an active workflow. Therefore, it should be no big deal to add a user like 'weblogic' as the only reviewer for a while :-)
jiri.machotka wrote:Regarding the user permissions,I'm trying with the UCM admin user only so permissions should not be an issue.I'm not able to understand why the revision is not getting downloaded to the external folder when the same parameters are being passed from the Java Code.
So, you are stating that if you execute the GET_FILE service via a http request, it works, but if you do it from your custom service, with the exactly same parameters, it fails with the error mentioned earlier. Just to eliminate another obvious cause: are you sure that a user you use the other time is authorized to read the item?
Otherwise, it looks very, very strange.
The only other thing I can think of that there is something in the binder, what causes the other call to fail. Could you verify values in the binder? One helpful article how to do that can be found here: https://blogs.oracle.com/kyle/entry/page_debugging_easier_in_ucm_11g