<?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 Alfresco Community - Document management use case - How to in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44328#M18081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;Hi all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;I'm a newbie and I'm struggling around a use case with Alfresco Community (we would implement the scenario requirements without write any code -or with limited coding effort):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;A) In a "team site" a user upload a draft-document within a working repository folder;&lt;/SPAN&gt;&lt;BR style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;" /&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;B) An approver receives a notification email askying to approve the document uploaded; &lt;/SPAN&gt;&lt;BR style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;" /&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;C) the approved document is moved to a separate folder inside a secondary publishing site where other users (i.e. readers) can explore for published documents;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;I have already tried to built all the necessary things in two ways:&lt;/SPAN&gt;&lt;BR style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;" /&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;- using a rule-based action which move the document on upload event; the limitation I faced comes from standard workflows engaged by rules which cannot assign approvals and send them notification emails;&lt;/SPAN&gt;&lt;BR style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;" /&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;- using webscript (see attachment), I was able to assign the approvers and trigger out approval email but I wasn't able to move the approved document to publish folder on the approval event - for this last step it seems a custom workflow implementation is required;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;Which are the correct standard building blocks to satisfy this use case ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;The standard resources seems very limited and potential combinations with these building blocks appear poor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.87); background-color: #fafafa;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;function startWorkflow(assigneeGroup)&lt;BR /&gt;{&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "activiti$activitiReviewPooled";&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "Please review " + document.name;&lt;BR /&gt;workflow.parameters["bpm:groupAssignee"] = assigneeGroup;&lt;BR /&gt;workflow.parameters["bpm:approveDestination"] = "Sites/ProgettiIT/documentLibrary/Requisiti";&lt;BR /&gt;workflow.parameters["bpm:rejectDestination"] = "Sites/approvazioneprogettiit/documentLibrary/Reject";&lt;BR /&gt;workflow.parameters["bpm:sendEMailNotifications"] = true;&lt;BR /&gt;&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 7);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;return workflow.execute(document);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function main()&lt;BR /&gt;{&lt;BR /&gt;var name = document.name;&lt;BR /&gt;var siteName = document.siteShortName;&lt;BR /&gt;if (siteName == null)&lt;BR /&gt;{&lt;BR /&gt;if (logger.isLoggingEnabled())&lt;BR /&gt;logger.log("Did not start workflow as the document named " + name + " is not located within a site.");&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;var reviewGroup = "GROUP_ApprovalsGroup";&lt;BR /&gt;&lt;BR /&gt;var group = people.getGroup(reviewGroup);&lt;BR /&gt;&lt;BR /&gt;if (group != null)&lt;BR /&gt;{&lt;BR /&gt;if (logger.isLoggingEnabled())&lt;BR /&gt;logger.log("Starting pooled review and approve workflow for document named " + name + " assigned to group " + reviewGroup);&lt;BR /&gt;&lt;BR /&gt;startWorkflow(group);&lt;BR /&gt;&lt;BR /&gt;if (logger.isLoggingEnabled())&lt;BR /&gt;logger.log("Started pooled review and approve workflow for document named " + name + " assigned to group " + reviewGroup);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;else if (logger.isLoggingEnabled())&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;logger.log("Did not start workflow as the group " + reviewGroup + " could not be found.");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;main();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 15:21:10 GMT</pubDate>
    <dc:creator>etafuro</dc:creator>
    <dc:date>2018-10-01T15:21:10Z</dc:date>
    <item>
      <title>Alfresco Community - Document management use case - How to</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44328#M18081</link>
      <description>Hi all.I'm a newbie and I'm struggling around a use case with Alfresco Community (we would implement the scenario requirements without write any code -or with limited coding effort):A) In a "team site" a user upload a draft-document within a working repository folder;B) An approver receives a notifi</description>
      <pubDate>Mon, 01 Oct 2018 15:21:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44328#M18081</guid>
      <dc:creator>etafuro</dc:creator>
      <dc:date>2018-10-01T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Community - Document management use case - How to</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44329#M18082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found similarities with &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/237899-workflow-script-aprovedestination" rel="nofollow noopener noreferrer"&gt;this post&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrico.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 08:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44329#M18082</guid>
      <dc:creator>etafuro</dc:creator>
      <dc:date>2018-10-02T08:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Community - Document management use case - How to</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44330#M18083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not going to work with out of box workflow.&lt;/P&gt;&lt;P&gt;You need to create custom workflow for that.&lt;/P&gt;&lt;P&gt;How to develop custom workflow:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html" title="https://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Creating Custom Advanced Workflows in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;Contcentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2018 04:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-document-management-use-case-how-to/m-p/44330#M18083</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2018-12-22T04:56:08Z</dc:date>
    </item>
  </channel>
</rss>

