<?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 Workflow parameters in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-parameters/m-p/253353#M206483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to start a workflow whit a script executed when a document is putted into folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi have some problems with the parameter settings of workflow (document in this example is "static"):&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;var document = space.childByNamePath("Document.doc");&lt;BR /&gt;workflow.parameters.workflowName = "activiti$activitiParallelReview";&lt;BR /&gt;&lt;BR /&gt;var l=document.assocs["drp:Revisori"].length;&lt;BR /&gt;for(i=0; i&amp;lt;l; i++)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; var user=document.assocs["drp:Revisori"][i].properties.userName;&lt;BR /&gt;&amp;nbsp; workflow.parameters["bpm:assignees"]=document.assocs["drp:Revisori"];&lt;BR /&gt;}&lt;BR /&gt;workflow.parameters.requiredApprovationPercent=100;&lt;BR /&gt;workflow.parameters["bpm:approveDestination"] = "/Siti/drp/documentLibrary/Approvati";&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;/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;SPAN&gt;1. I set &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;workflow.parameters.requiredApprovationPercent=100;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; but when the wf start I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Required Approval percent: 50"&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHY?&amp;nbsp; :!:&amp;nbsp; Is the workflow.parameters.requiredApprovationPercent wrong parameter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How I can activate email notification for workflow via script? Exist a parameter to set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. How can I attach to workflow the document uploaded in folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. there is a place where I can find specifications of workflow parameters???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone want to help me I am very grateful!!&amp;nbsp; :roll:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 07:56:39 GMT</pubDate>
    <dc:creator>agz</dc:creator>
    <dc:date>2012-08-29T07:56:39Z</dc:date>
    <item>
      <title>Workflow parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-parameters/m-p/253353#M206483</link>
      <description>Hi all,I need to start a workflow whit a script executed when a document is putted into folder.Hi have some problems with the parameter settings of workflow (document in this example is "static"):var workflow = actions.create("start-workflow");var document = space.childByNamePath("Document.doc");wor</description>
      <pubDate>Wed, 29 Aug 2012 07:56:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-parameters/m-p/253353#M206483</guid>
      <dc:creator>agz</dc:creator>
      <dc:date>2012-08-29T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-parameters/m-p/253354#M206484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did you checked with the workflowmodel that property which you are referring is same as which you are setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is fetching the default value from the workflow model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name of property in the model and in parameter should match exactly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:55:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-parameters/m-p/253354#M206484</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-08-29T09:55:44Z</dc:date>
    </item>
  </channel>
</rss>

