<?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: Retrieving the value of attributes in JavaTask in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104771#M73202</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;e.g. getting al process variables and filtering out the interesting ones?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;for (Entry&amp;lt;String, Object&amp;gt; me: exe.getVariables().entrySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (me.getKey().startsWith("orchestra_")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something interesting with me.getKey() and me.getValue()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Erny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 21:46:32 GMT</pubDate>
    <dc:creator>erny18031</dc:creator>
    <dc:date>2012-03-20T21:46:32Z</dc:date>
    <item>
      <title>Retrieving the value of attributes in JavaTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104770#M73201</link>
      <description>Hello: I am trying to find out if in the implementation class of the JavaTask, if there's a way to retrieve the value of attributes from the corresponding Java Task in Orchestration flow, without explicitly declaring corresponding 'Expressions' in the JavaDelegate implementation class. Details: Curr</description>
      <pubDate>Fri, 16 Mar 2012 03:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104770#M73201</guid>
      <dc:creator>jjfutt</dc:creator>
      <dc:date>2012-03-16T03:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the value of attributes in JavaTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104771#M73202</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;e.g. getting al process variables and filtering out the interesting ones?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;for (Entry&amp;lt;String, Object&amp;gt; me: exe.getVariables().entrySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (me.getKey().startsWith("orchestra_")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something interesting with me.getKey() and me.getValue()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Erny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:46:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104771#M73202</guid>
      <dc:creator>erny18031</dc:creator>
      <dc:date>2012-03-20T21:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving the value of attributes in JavaTask</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104772#M73203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for responding erny1803. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you described will definitely work if I was looking to get all the 'Process Variables'. However, that is not what I am after. In my case, we have created some custom Java Tasks (that show up with their own dedicated icons in the service palette in Eclipse Designer). Within these Java Tasks, we have defined some properties that an Orchestration creator can set at time of creating an Orchestration (see screenshot below). Then in the Java Implementation class that implements JavaDelegate interface, of ActivityBehavior interface, the documented way to get these values is to first define these attributes as 'Expressions', and then get their values using the APIs mentioned in my original message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to create a generic Java Delegate implementation that can be used for more than Custom Java Tasks. However, we'd still need to programmtically get the value of Task attrributes without declaring 'Expresssions' explicitly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestions or pointers are welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[attachment=0]service-parameters.png[/attachment]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 03:17:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-the-value-of-attributes-in-javatask/m-p/104772#M73203</guid>
      <dc:creator>jjfutt</dc:creator>
      <dc:date>2012-03-21T03:17:04Z</dc:date>
    </item>
  </channel>
</rss>

