cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a Document to User for Editing

mdickson
Champ in-the-making
Champ in-the-making
Alfresco seems geared mainly towards review and approve type workflow. But does it lend itself to sending files to users to not only review, but to update?

I have review the adhoc and Review-Aprove Workflows, but again they seem to be targeted at reviewing documents rather than updating a document you have been sent.

Can Alfresco handle Review-Update-Approve? How would it handle the 'update' bit in the middle and where would the file be actually 'saved to' during the process?

Matt
4 REPLIES 4

davidc
Star Contributor
Star Contributor
Yes, update workflows can be supported.  I think the review process allows edit of a document in the review task.

Custom workflows may be defined.  Each task within the workflow can support its own set of actions that may be applied to documents being routed through the workflow.  A task may also allow new documents to be added to the workflow.  So, for example, a "review" task may only allow read, whilst a "collection" task may allow "new".

How would it handle the 'update' bit in the middle and where would the file be actually 'saved to' during the process?

That depends on the workflow definition.  If you send a document for review (say /Guest Home/Alfresco-tutorial.pdf) and allow update in the "review" task, then /Guest Home/Alfresco-tutorial.pdf would get updated.  This isn't necessarily required, so the workflow would typically copy the document to allow for edits during the workflow and then if approved, copy the edited document to a published folder or overwrite the original.  If the workflow is collecting new documents, new documents are added to a special folder (called the workflow package) which exists only for the lifetime of the workflow.  The workflow definition will need to copy or move the new documents from the workflow package to a repository folder at some appropriate point in the workflow (e.g. approve).

In WCM, it all becomes more sophisticated as workflows use the concept of a sandbox (a private safe area for edits) for managing the workflow package.  Unfortunately, we don't yet use this concept in the document management world, but it will come.

naveenkumar
Champ in-the-making
Champ in-the-making
Hi david,
  During workflow i want to edit my content, i need this feature in WCM.. While content approval itself i need to modify, i added the edit package in my custom workflow, when i try to edit getting below error.

javax.faces.el.EvaluationException: Exception while invoking expression #{CheckinCheckoutBean.editFile}
caused by:
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/Dml–workflow-296dad4c-73e9-11dc-86b2-5d12f97eb107:/www/avm_webapps/ROOT/Newscontent.xml

Is that possible to add Edit feature??

Thanks
Naveen

naveenkumar
Champ in-the-making
Champ in-the-making
hi david,

Can you explain this:
In WCM, it all becomes more sophisticated as workflows use the concept of a sandbox (a private safe area for edits) for managing the workflow package.

Thanks
Naveen

naveenkumar
Champ in-the-making
Champ in-the-making
Hi all,
  When i override edit_wcm_package_item_actions in wcmworkflowmodel i am able to see only the revert icon, other icons like edit,view detail icons is not seen.

Here is my code:

 <type name="wcmwf:submitDmlReviewTask">
         <parent>wcmwf:startTask</parent>
      </type>

   <type name="wcmwf:editDmlTask">
       <parent>wcmwf:workflowTask</parent>
   <overrides>       
            <property name="bpm:packageItemActionGroup">
          <default>edit_wcm_package_item_actions</default>
        </property>
       </overrides>
   </type>
          
     <type name="wcmwf:reviewDmlTask">
        <parent>wcmwf:workflowTask</parent>
         <overrides>
            <property name="bpm:packageItemActionGroup">
               <default>edit_and_remove_wcm_package_item_actions</default>
            </property>
         </overrides>
      </type>

     <type name="wcmwf:rejectedDmlTask">
       <parent>wcmwf:workflowTask</parent>
   <overrides>
       <property name="bpm:packageItemActionGroup">
               <default>edit_and_delete_wcm_package_item_actions</default>
            </property>
       </overrides>

   </type>

Any one try to add edit fetaure for a content under workflow, mainly in wcm…

Thanks
Naveen