<?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 How to pass extra parameters as a part of the properties set for activiti components? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213351#M166481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a requirement wherein I need to pass extra parameters,eg-serverName,serverId,etc.. along with the properties of the activiti components and parse them to get their values in the POJO classes(ExecutionListeners/TaskListeners,etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest how do I achieve it and also is there any API which I can leverage rather than parsing the XML directly to get hold of these extra parameters that I am passing along with the default component properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 05:59:48 GMT</pubDate>
    <dc:creator>himangshu_chowd</dc:creator>
    <dc:date>2016-04-20T05:59:48Z</dc:date>
    <item>
      <title>How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213351#M166481</link>
      <description>I have a requirement wherein I need to pass extra parameters,eg-serverName,serverId,etc.. along with the properties of the activiti components and parse them to get their values in the POJO classes(ExecutionListeners/TaskListeners,etc).Please suggest how do I achieve it and also is there any API whi</description>
      <pubDate>Wed, 20 Apr 2016 05:59:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213351#M166481</guid>
      <dc:creator>himangshu_chowd</dc:creator>
      <dc:date>2016-04-20T05:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213352#M166482</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;use extension elements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnCustomExtensions" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#bpmnCustomExtensions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. (how activiti is using extensions)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="theTask" name="make profit"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:customResource activiti:name="businessAdministrator"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resourceAssignmentExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;formalExpression&amp;gt;user(kermit), group(management)&amp;lt;/formalExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/resourceAssignmentExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:customResource&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;extension elements are parsed into the BPMN model in memory so you can easily access them in runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:11:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213352#M166482</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-20T06:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213353#M166483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I donot see a property titled "extensionElements" for any of the components in the Activiti modeler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also is there an API to access the values set using these extensions or we need to directly parse it from the BPMN2.0 xml?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:27:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213353#M166483</guid>
      <dc:creator>himangshu_chowd</dc:creator>
      <dc:date>2016-04-20T06:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213354#M166484</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;BLOCKQUOTE class="jive-quote"&gt;Also is there an API to access the values set using these extensions or we need to directly parse it from the BPMN2.0 xml?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;extension elements are stored in &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.bpmn.model.BaseElement#extensionElements&lt;/CODE&gt;&lt;SPAN&gt;after that you can get this extension elements in e.g. &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.bpmn.parser.handler.ServiceTaskParseHandler#executeParse&lt;/CODE&gt;&lt;SPAN&gt;(serviceTask has extension elements in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I donot see a property titled "extensionElements" for any of the components in the Activiti modeler.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I do not know whether editor supports extensionElements. But it should be possible to add them (we did it in our product).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:49:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213354#M166484</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-20T06:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213355#M166485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok so please have a look at the code below and advise me if I'm going wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.delegateExecution=execution;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BpmnParser bpmnParser= new BpmnParser();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BpmnParse bpmnParse= new BpmnParse(bpmnParser);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BaseElement bE=null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new BaseElement() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public BaseElement clone() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return bE.clone();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceTaskParseHandler s=new ServiceTaskParseHandler();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.parse(bpmnParse, bE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This executionListener is bound to a ServiceTask in the modeler. Now are you saying that if somehow I'm able to add the extension elements to the components then this is the way to parse it??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not please correct my understanding.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 08:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213355#M166485</guid>
      <dc:creator>himangshu_chowd</dc:creator>
      <dc:date>2016-04-20T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass extra parameters as a part of the properties set for activiti components?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213356#M166486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No … this is totally not the way to go in a service task. Unless I'm missing the question here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get the BpmnModel for your process definition. get the particular ServiceTask, then get the extension elements.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-extra-parameters-as-a-part-of-the-properties-set-for/m-p/213356#M166486</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-20T14:24:11Z</dc:date>
    </item>
  </channel>
</rss>

