<?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 Regole ed avvio workflow automatico in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/regole-ed-avvio-workflow-automatico/m-p/40574#M21690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sto cercando di impostare una regola per una folder del repository di un sito, che mi faccia partire un workflow in automatico (ogni volta che un documento viene creato , inserito o aggiornato in quella folder)…vedi immagine allegata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Il problema è che nel momento in cui eseguo una delle azioni sopra descritte, non succede niente…….forse sbaglio qualcosa…..ma non so cosa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Se avete qualche idea….grazie.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 11:01:01 GMT</pubDate>
    <dc:creator>gnomo84</dc:creator>
    <dc:date>2014-04-15T11:01:01Z</dc:date>
    <item>
      <title>Regole ed avvio workflow automatico</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/regole-ed-avvio-workflow-automatico/m-p/40574#M21690</link>
      <description>Ciao.Sto cercando di impostare una regola per una folder del repository di un sito, che mi faccia partire un workflow in automatico (ogni volta che un documento viene creato , inserito o aggiornato in quella folder)…vedi immagine allegata.Il problema è che nel momento in cui eseguo una delle azioni</description>
      <pubDate>Tue, 15 Apr 2014 11:01:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/regole-ed-avvio-workflow-automatico/m-p/40574#M21690</guid>
      <dc:creator>gnomo84</dc:creator>
      <dc:date>2014-04-15T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regole ed avvio workflow automatico</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/regole-ed-avvio-workflow-automatico/m-p/40575#M21691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Il workflow semplice che tenti di aggiungere è il content-centric workflow che ti permette di spostare il contenuto in revisione all'interno di uno spazio specifico. Questa tipologia di workflow non assegna task a nessuno ma permette solamente di avere un modo per spostare i contenuti a seguito di un azione.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Per poter far partire workflow avanzati, ovvero sugli utenti (o advanced workflow), devi utilizzare uno script Javascript da inserire all'interno del Dizionario dei dati/Script e che poi venga richiamato dalla regola tramite l'azione "Esegui Script".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lo script potrebbe essere qualcosa del genere:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "activiti$wf:adhoc";&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "Il seguente documento è stato inserito/modificato. Per favore da revisionare entro 3 giorni.";&lt;BR /&gt;workflow.parameters["bpm:assignee"] = "admin"; // utente assegnatario del task&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 3);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate; &lt;BR /&gt;workflow.execute(document);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spero ti aiuti a risolvere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 08:39:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/regole-ed-avvio-workflow-automatico/m-p/40575#M21691</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2014-05-16T08:39:09Z</dc:date>
    </item>
  </channel>
</rss>

