<?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: How to access fields in java service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107281#M75132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's what I was afraid of. Oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Ronald.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 16:08:18 GMT</pubDate>
    <dc:creator>sk8192</dc:creator>
    <dc:date>2012-11-14T16:08:18Z</dc:date>
    <item>
      <title>How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107279#M75130</link>
      <description>If I have the following task definition:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="myServiceTask" name="My Service" activiti:expression="#{myService.myMethod(execution)}" activiti:resultVariableName="result"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="testField"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;amp;</description>
      <pubDate>Mon, 12 Nov 2012 23:03:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107279#M75130</guid>
      <dc:creator>sk8192</dc:creator>
      <dc:date>2012-11-12T23:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107280#M75131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't afaik when using expressions… Put the 'field' as a param in the extression and it will be passed in you method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 18:24:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107280#M75131</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-11-13T18:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107281#M75132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's what I was afraid of. Oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Ronald.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 16:08:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107281#M75132</guid>
      <dc:creator>sk8192</dc:creator>
      <dc:date>2012-11-14T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107282#M75133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ronald is right, you can't use field-injection on activiti:expression (since the expression resolves to a method-call and NOT a callable object. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't you just pass in the arguments you want in the method-call expression itself?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 10:40:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107282#M75133</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-11-16T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107283#M75134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I mentioned as well, but internally we got the feedback that this is 'less intuitive' for the some people in the designer. But having the designer construct an expression based on 'fields' where fields are put in the method call in the order they are in would help a little, but the business people still would need to know the order of the parameters…&amp;nbsp; This limits the use of custom components in the designer drastically… (unfortunately)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 12:01:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107283#M75134</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-11-16T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to access fields in java service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107284#M75135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As the activiti:expression functionality requires knowledge of the context of the application and it's beans/methods, I don't see an immediate use for Business-analysts. If people (devs) want to offer well-know building-blocks for analysts/other people to use, I see these solutions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; Using a JavaDelegate with field Injection (which in turn, can delegate to one or more bean/method-calls hiding complexity) OR &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- A custom designer-extension (with the correct form on it, which generates a delegate-method call with correct parameters) more feasible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So creating a method-call at design-time based on fields seems to be a very exotic use case and error-prone, imho. Nevertheless, it's indeed confusing that you can combine fields with activiti:expression and activiti:delegateExpression and ideally the "fields" should disappear from the UI in these cases&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 12:41:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-fields-in-java-service-task/m-p/107284#M75135</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-11-16T12:41:01Z</dc:date>
    </item>
  </channel>
</rss>

