<?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: Activiti webapp modeler - stencliset complexItems in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176003#M129133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the exact issue you're getting (stack trace/ JS-error)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 14:35:06 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-08-06T14:35:06Z</dc:date>
    <item>
      <title>Activiti webapp modeler - stencliset complexItems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/175999#M129129</link>
      <description>Hello community!I'm working on a customized version of the Activiti webapp explorer &amp;amp; modeler for the enterprise where i'm working in.I have to say that i'm much more skilled in c# than java, but i wanted to take this challenge anyway (i'm the unique developer).One of the requestes and one of th</description>
      <pubDate>Mon, 28 Jul 2014 15:42:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/175999#M129129</guid>
      <dc:creator>elvan121</dc:creator>
      <dc:date>2014-07-28T15:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti webapp modeler - stencliset complexItems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176000#M129130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how could I gain the attention of somebody?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elvan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 09:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176000#M129130</guid>
      <dc:creator>elvan121</dc:creator>
      <dc:date>2014-08-04T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti webapp modeler - stencliset complexItems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176001#M129131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you need the lists populated from external sources you either need to make the stencilset dynamic - generated on the server every time a new diagram is opened, merging in possible values from te external source in the JSON you return.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach is bit harder (if you need fresh data every time you want to have the user select a value): you need to add a property-handeler to the oryx javascript, to handle rendering a custom editor for those properties. You can open up a custom ExtJS popup and do http-call from there. Again, this is not trivial and requires you to dive deep into the Oryx JS…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 08:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176001#M129131</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-08-06T08:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti webapp modeler - stencliset complexItems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176002#M129132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, my problem is not to about getting a stencilsets populated with data from other sources, but is related in getting the values in the property window and setting them properly in the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In short terms is a problem which is present into the modeler and not yet resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The case for reproduce the problem are as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add a new simple custom property, it works properly. The property window inside the modeler show the title and assign the value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"name":"swRes",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"properties": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "id":"swRes",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "type":"Choice",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "title":"Software resources ID",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "title_de":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "description":"Software resources IDs needed to accomplish the task",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "description_de":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "value":"",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "optional":true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "items" : [ { "id": "1", "value": "1", "title": "SW1" }, { "id": "2", "value": "2", "title": "SW2" }, { "id": "3", "value": "3", "title": "SW3" }]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add a new complex custom property composed by complexItems and Items (as shown in the first post), the modeler show inside the value instead of the title and save the diagram at the end without problem. This problem is reproducible using&amp;nbsp; the property called "Assignments" which is related to the User Task. I based my custom complex property on this property actually (named usertaskassignment)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have deeply dived into extjs and oryx and found out these lines which are repeated in several part of the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var optionTmpl = new Ext.Template('&amp;lt;option value="{value}"&amp;gt;{value}&amp;lt;/option&amp;gt;');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; items.each(function(value){ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; optionTmpl.append(select, {value:value.value()}); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've changed to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var optionTmpl = new Ext.Template('&amp;lt;option value="{value}"&amp;gt;{title}&amp;lt;/option&amp;gt;');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; items.each(function(value){ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; optionTmpl.append(select, {value:value.value(), title:value.title()}); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Made those changes the modeler manage the titles and values, showing correctly the titles. At the time of saving the modeler return error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where else should i look to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards and thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elvan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 10:06:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176002#M129132</guid>
      <dc:creator>elvan121</dc:creator>
      <dc:date>2014-08-06T10:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti webapp modeler - stencliset complexItems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176003#M129133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the exact issue you're getting (stack trace/ JS-error)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-modeler-stencliset-complexitems/m-p/176003#M129133</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-08-06T14:35:06Z</dc:date>
    </item>
  </channel>
</rss>

