Hi Adei,
I get this error when I try use the .transformDocument like this:
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var revisionSite = siteService.getSite("revision");
var publieesSite = siteService.getSite("publiees");
var documentLibraryRevision = revisionSite.getContainer("documentLibrary");
var documentLibraryPubliees = publieesSite.getContainer("documentLibrary");
var myDocument = documentLibraryRevision.childByNamePath("test.doc");
var trans = myDocument.transformDocument("application/pdf", documentLibraryPubliees);
</script>
</action>
but when I simply to the convertion and I do not try to move to another folder, It works, like this:
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var revisionSite = siteService.getSite("revision");
var publieesSite = siteService.getSite("publiees");
var documentLibraryRevision = revisionSite.getContainer("documentLibrary");
var documentLibraryPubliees = publieesSite.getContainer("documentLibrary");
var myDocument = documentLibraryRevision.childByNamePath("test.doc");
var trans = myDocument.transformDocument("application/pdf");
</script>
</action>
Do you have any idea why this is happening?
Thaank you very much,
Best Regards,
Rodrigo Araujo