<?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 Exception when assign workflow to assignees in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205057#M158187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;right now I am working on alfresco share preview 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no build in workflow that can assign multiple assignees, so i should do it by myself, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is such code in assign_workflow.post.json.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Get the workflow definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var workflowDefinition = workflow.getDefinitionByName(workflowName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Create the workflow package to contain the file nodes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var workflowPackage = workflow.createPackage();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (assignees.length == 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflowParameters["bpm:assignee"] = assignees[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflowParameters["bpm:assignees"] = assignees;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var workflowPath = workflowDefinition.startWorkflow(workflowPackage, workflowParameters);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so when there multiple assignees, it will assign all the assignees array to workflowParameters["bpm:assignees"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//process define&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;start-state name="start"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;task name="wf:submitAdhocTask" swimlane="initiator"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;transition name="" to="adhoc"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/start-state&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//model define&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type name="wf:submitAdhocTask"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;parent&amp;gt;bpm:startTask&amp;lt;/parent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="wf:notifyMe"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type&amp;gt;d:boolean&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;default&amp;gt;false&amp;lt;/default&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/properties&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;aspect&amp;gt;bpm:assignees&amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the buildin adhoc workflow only have a mandatory aspect that accept one assignee, so I change the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;aspect&amp;gt;bpm:assignee&amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;aspect&amp;gt;bpm:assignees&amp;lt;/aspect&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/mandatory-aspects&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and when I try to assign workflow to multiple assignees, it will cause a cast class exception —–arraylist exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tries many method to find out the problem, but i failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what can i do to figure out the problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;anyone knows where the alfresco convert javascript array into java arraylist and then save into repository ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where is the class that actually do these kind of work locate in ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2009 12:42:50 GMT</pubDate>
    <dc:creator>zengqingyi12</dc:creator>
    <dc:date>2009-04-30T12:42:50Z</dc:date>
    <item>
      <title>Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205057#M158187</link>
      <description>right now I am working on alfresco share preview 2.there is no build in workflow that can assign multiple assignees, so i should do it by myself, there is such code in assign_workflow.post.json.js// Get the workflow definitionvar workflowDefinition = workflow.getDefinitionByName(workflowName);// Cre</description>
      <pubDate>Thu, 30 Apr 2009 12:42:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205057#M158187</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2009-04-30T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205058#M158188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I've not tested it, the following line in the original code looks a bit odd:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#57:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assignees[i] = [people.getPerson(assignees[i])];&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;I suspect you need to remove the array brackets around the right-hand side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 15:27:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205058#M158188</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-04-30T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205059#M158189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, you are right, when i debug the code the original code will form such a array[[],[],[]]&amp;nbsp; , and I think the jpdm need a [ , ] array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i remove the bracket, it still can not assign adhoc to multiple assignees,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you please help me ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 16:03:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205059#M158189</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2009-04-30T16:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205060#M158190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's the new exception after the code change? Same one..?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 21:09:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205060#M158190</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-04-30T21:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205061#M158191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that the adhoc model has cached or other reasons, i still cann't find the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is another exception:&amp;nbsp;&amp;nbsp;&amp;nbsp; bpm:assignee is not defined.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What a strange problem! I do never change the bpmmodel's definition!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could you please tell me how alfresco communicate with jboss workflow ? just use jpdl ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 00:10:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205061#M158191</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2009-05-01T00:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205062#M158192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you redeploy the workflow? Note that in-flight workflows won't be updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the wiki notes on the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Workflow_Console" rel="nofollow noopener noreferrer"&gt;Workflow Console&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/WorkflowAdministration#Redeploying_a_Process_Definition" rel="nofollow noopener noreferrer"&gt;Workflow Administration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 07:16:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205062#M158192</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-05-01T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when assign workflow to assignees</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205063#M158193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much, that's exactly where the problem is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 04:42:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-assign-workflow-to-assignees/m-p/205063#M158193</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2009-05-04T04:42:32Z</dc:date>
    </item>
  </channel>
</rss>

