<?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: REST, parsing definition, activity properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123939#M87238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, so you basically want the process definition xml? Isn't it easier to then just get the xml and return that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, the 5.11 will ship with a bpmn to java converter (and even json). So it might be good to wait a bit (planned release tomorrow)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 09:21:39 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-12-04T09:21:39Z</dc:date>
    <item>
      <title>REST, parsing definition, activity properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123936#M87235</link>
      <description>In REST I want to get all activities and their properties of the definition. But there is any problem for getting some parameters.I get properties from activity (instance of ActivityImpl) and there is in activity.getProperties() property "timerDeclarations".Then I try to get all parameters of this t</description>
      <pubDate>Fri, 30 Nov 2012 09:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123936#M87235</guid>
      <dc:creator>iam</dc:creator>
      <dc:date>2012-11-30T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: REST, parsing definition, activity properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123937#M87236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I really don't get what you are trying to achieve? Could you describe that first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:39:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123937#M87236</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-03T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: REST, parsing definition, activity properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123938#M87237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have process definition and I get all activities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For each activity i can get properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if one of this properties is "timerDeclarations", I want to get all parameters for this timer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;for (ActivityImpl activity : processDefinition.getActivities()) {&lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; properties = activity.getProperties();&lt;BR /&gt; for (String key: properties.keySet()) {&lt;BR /&gt;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp; if ("timerDeclarations".equals(key)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ArrayList&amp;lt;TimerDeclarationImpl&amp;gt; timerDeclarations = (ArrayList&amp;lt;TimerDeclarationImpl&amp;gt;)properties.get(key);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; for (TimerDeclarationImpl timerDeclaration: timerDeclarations) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // there I want to get expression of this timer declaration, for example is "P30D"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // but there is no getter for getting property that I need, it's private.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;SPAN&gt;What I actually do? I want to get from REST allactivities with all their properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in bpmn I have this one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; &amp;lt;intermediateCatchEvent id="timerintermediatecatchevent4" name="NO ANSWER (+3 HOUR)"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDate&amp;gt;${bpmTimer.adjust("+PT3H")}&amp;lt;/timeDate&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/intermediateCatchEvent&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt;In JSON from rest I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt; {&lt;BR /&gt;&amp;nbsp; "activityId": "timerintermediatecatchevent4",&lt;BR /&gt;&amp;nbsp; "properties": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "name": "TimerCatchEvent",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "line": 67,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "timerDeclarations": [{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "isExclusive": true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "retries": "3",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "timer-intermediate-transition",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "configuration": "timerintermediatecatchevent4"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }],&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "type": "intermediateTimer"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "x": 464,&lt;BR /&gt;&amp;nbsp; "y": 160,&lt;BR /&gt;&amp;nbsp; "width": 35,&lt;BR /&gt;&amp;nbsp; "height": 35&lt;BR /&gt; },&lt;/CODE&gt;&lt;SPAN&gt;I want to represent process definition in json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But for this timer I need one parameter more - that expression (&lt;/SPAN&gt;&lt;EM&gt;${bpmTimer.adjust("+PT3H")}&lt;/EM&gt;&lt;SPAN&gt;). Class TimerDeclarationImpl have this expression in property: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; protected Expression description;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it's protected without getter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 23:09:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123938#M87237</guid>
      <dc:creator>iam</dc:creator>
      <dc:date>2012-12-03T23:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST, parsing definition, activity properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123939#M87238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, so you basically want the process definition xml? Isn't it easier to then just get the xml and return that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, the 5.11 will ship with a bpmn to java converter (and even json). So it might be good to wait a bit (planned release tomorrow)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 09:21:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123939#M87238</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-04T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: REST, parsing definition, activity properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123940#M87239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know, probably xml it's good. But json is simplest &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; Simplest to use and looks like an object in java. I basically don't want to parse raw xml with two parts - model and graphically representation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And yes, I'll be waiting the 5.11 and converter, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 13:53:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-parsing-definition-activity-properties/m-p/123940#M87239</guid>
      <dc:creator>iam</dc:creator>
      <dc:date>2012-12-04T13:53:21Z</dc:date>
    </item>
  </channel>
</rss>

