<?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 Re: Starting Activiti Workflow by Execute Script fails in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252812#M205942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, in your script you're assigning a string value to you bpm_groupAssignee variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;workflow.parameters["bpm:groupAssignee"] = "GROUP_" + siteName + "_collaborators";&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The same way you assign bpm_assignee you assigning a person object (not a string), you'll need to assign a group object to groupAssignee rather than assigning the group name string value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For that purpose:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;workflow.parameters["bpm:groupAssignee"] = people.getGroup( "GROUP_" + siteName + "_collaborators");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Try it that way… it should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2012 09:45:34 GMT</pubDate>
    <dc:creator>amandaluniz_z</dc:creator>
    <dc:date>2012-01-21T09:45:34Z</dc:date>
    <item>
      <title>Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252809#M205939</link>
      <description>[size=150]Summary[/size]Environment: Alfresco 4.0.cProblem: Error produced when a Folder Rule calls Execute Script&amp;nbsp; to start Activiti Workflow Error: 2012-01-18 19:38:03,338&amp;nbsp; ERROR [extensions.webscripts.AbstractRuntime] [http-8080-24] Exception from executeScript - redirecting to status template er</description>
      <pubDate>Thu, 19 Jan 2012 01:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252809#M205939</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-01-19T01:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252810#M205940</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;The main error is this one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Could not find property properties in class java.lang.String&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.javax.el.BeanELResolver.toBeanProperty(BeanELResolver.java:621)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.javax.el.BeanELResolver.getValue(BeanELResolver.java:298)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.javax.el.CompositeELResolver.getValue(CompositeELResolver.java:231)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.AstProperty.eval(AstProperty.java:61)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.AstProperty.eval(AstProperty.java:52)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So you trying to retrieve the "properties" property from a String object&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:55:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252810#M205940</guid>
      <dc:creator>amandaluniz_z</dc:creator>
      <dc:date>2012-01-19T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252811#M205941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to Alfresco and the Activiti workflow engine and I have been basing my work on the samples so I haven't explicitly written any code that would reference a property named "properties". Your response caused me to take a harder look at how the Script calls the Workflow and I configured a new workflow only I used the lifecycle-process.bpmn20.xml.sample that ships with Alfresco. The lifecycle-process starts a workflow with a single person Review defined as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Script assignment of workflow parameter:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; workflow.parameters["bpm:assignee"] = person;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Workflow use of parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;userTask id="reviewTask" name="Review Task" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wf:activitiReviewTask"&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The workflow &amp;lt;userTask&amp;gt; for the alfGroupReview.bpmn20.xml that fails is defined as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Script assignment of workflow parameter:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; workflow.parameters["bpm:groupAssignee"] = "GROUP_" + siteName + "_collaborators";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Workflow use of parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;userTask id="reviewTask" name="Acquire Review Task" activiti:candidateGroups="${bpm_groupAssignee.properties.authorityName}" activiti:formKey="wf:activitiReviewTask"&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I suspect that it is the &lt;/SPAN&gt;&lt;STRONG&gt;${bpm_groupAssignee.properties.authorityName}&lt;/STRONG&gt;&lt;SPAN&gt; that is causing the property "properties" error since the calling script is able to find the &lt;/SPAN&gt;&lt;EM&gt;GROUP_testbed_collaborators&lt;/EM&gt;&lt;SPAN&gt; group for use as the groupAssignee. Perhaps the workflow is unable to resolve ${bpm_groupAssignee.properties.authorityName} to the group name parameter. Or perhaps it resolves to &lt;/SPAN&gt;&lt;EM&gt;GROUP_testbed_collaborators&lt;/EM&gt;&lt;SPAN&gt; but that value is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question comes down to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;How do you pass the name of a Group as a parameter to a workflow so that it is resolved and used by the task?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 19:40:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252811#M205941</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-01-20T19:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252812#M205942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, in your script you're assigning a string value to you bpm_groupAssignee variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;workflow.parameters["bpm:groupAssignee"] = "GROUP_" + siteName + "_collaborators";&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The same way you assign bpm_assignee you assigning a person object (not a string), you'll need to assign a group object to groupAssignee rather than assigning the group name string value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For that purpose:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;workflow.parameters["bpm:groupAssignee"] = people.getGroup( "GROUP_" + siteName + "_collaborators");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Try it that way… it should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 09:45:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252812#M205942</guid>
      <dc:creator>amandaluniz_z</dc:creator>
      <dc:date>2012-01-21T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252813#M205943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adei,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;STRONG&gt;so much&lt;/STRONG&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You explanation made sense, I changed my script code and it now works properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I clearly need to spend more time understanding the script objects and Activiti objects and how to interface the two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 23:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252813#M205943</guid>
      <dc:creator>devodl</dc:creator>
      <dc:date>2012-01-21T23:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Activiti Workflow by Execute Script fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252814#M205944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best thing you can do about the workflow models is check out the workflowModel.xml file which defines the model. You can find it in alfresco/WEB-INF/classes/alfresco/model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all the properties used by the workflows such as bpm_assignee, bpm_groupAssignee, bpm_workflowDueDate, etc. are defined there… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 11:30:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-activiti-workflow-by-execute-script-fails/m-p/252814#M205944</guid>
      <dc:creator>amandaluniz_z</dc:creator>
      <dc:date>2012-01-23T11:30:45Z</dc:date>
    </item>
  </channel>
</rss>

