<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WCM workflow transformation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wcm-workflow-transformation/m-p/184769#M137899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Alfresco Ent 2.2.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a new workflow deployed and am working on modifying it to transform MS Word form attachments to PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me an example (java handler or javascript) of how to reference the attachment from within the workflow so that I can call the transformer?&amp;nbsp; I think I know how to do the transformation but I just don't know how to get at the attached MS Word doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 21:00:24 GMT</pubDate>
    <dc:creator>tfrith</dc:creator>
    <dc:date>2009-02-26T21:00:24Z</dc:date>
    <item>
      <title>WCM workflow transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wcm-workflow-transformation/m-p/184769#M137899</link>
      <description>I'm using Alfresco Ent 2.2.1.I've got a new workflow deployed and am working on modifying it to transform MS Word form attachments to PDF.Can anyone give me an example (java handler or javascript) of how to reference the attachment from within the workflow so that I can call the transformer?&amp;nbsp; I thin</description>
      <pubDate>Thu, 26 Feb 2009 21:00:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wcm-workflow-transformation/m-p/184769#M137899</guid>
      <dc:creator>tfrith</dc:creator>
      <dc:date>2009-02-26T21:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: WCM workflow transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wcm-workflow-transformation/m-p/184770#M137900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In WCM, each workflow has a dedicated sandbox associated with it (called, unsurprisingly, a workflow sandbox) that contains the change set that's being run through the workflow.&amp;nbsp; You can get the store id for this sandbox via the workflowPackage attribute of the WorkflowInstance object (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/workflow/WorkflowInstance.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/workflow/WorkflowInstance.html&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; Once you have that you can use the AVMSyncService (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avmsync/AVMSyncService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avmsync/AVMSyncService.html&lt;/A&gt;&lt;SPAN&gt;) to calculate what's unique to the workflow sandbox (ie. to identify the change set) and then the AVMService (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avm/AVMService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avm/AVMService.html&lt;/A&gt;&lt;SPAN&gt;) to access that content and write additional assets back into the workflow sandbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't recall off the top of my head if the WorkflowInstance object is provided by default to custom workflow tasks, but you can retrieve it easily enough via the WorkflowService (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/workflow/WorkflowService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/workflow/WorkflowService.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One word of warning: generating assets during workflow may create in-context preview problems for your content contributors, since the derived assets won't exist in the contributor's user sandbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 23:25:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wcm-workflow-transformation/m-p/184770#M137900</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2009-02-26T23:25:05Z</dc:date>
    </item>
  </channel>
</rss>

