<?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 Dynamic REST Endpoints in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-rest-endpoints/m-p/160250#M114232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what I'd like add to Activiti are 'dynamic REST endpoints' within a process engine's life-time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me elaborate on that topic first:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add new elements to the set of 'Activiti BPMN symbols'. That itself is not a huge problem since the editor provides this feature pretty much ootb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, if the engine executed/parsed such an extended diagram (and its new symbols), I'd like to add new endpoints dynamically which could then be consumed by REST clients.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for instance, after parsing a certain symbol, the endpoint '&lt;/SPAN&gt;&lt;A href="http://localhost:8192/activiti/services/cars" rel="nofollow noopener noreferrer"&gt;http://localhost:8192/activiti/services/cars&lt;/A&gt;&lt;SPAN&gt;' should be available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently Activiti provides a (static) REST API for querying deployments/diagrams etc. and provides a stand-alone module for deployment: activiti-rest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I cannot really use that one since it's not in the same context as e.g. the activiti-explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One would have to add the endpoint *after* a certain diagram is parsed, and I don't see how that could be achieved while the two are segregated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;According to Tomcat's documentation there's 'cross-context dispatching', but 'm not really sure if that's feasible in this context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be a reasonable approach in this scenario? Maybe creating a new (activiti) module and sharing its code in the depending project (e.g. activiti-explorer) would be a good solution. Even though I'm not sure how I could hold an instance of that server/restlet since it'll be instanced by the servlet-container (after startup), but I'd have to have an instance because I need to create new endpoints dynamically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Apr 2014 15:05:42 GMT</pubDate>
    <dc:creator>thensgens</dc:creator>
    <dc:date>2014-04-27T15:05:42Z</dc:date>
    <item>
      <title>Dynamic REST Endpoints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-rest-endpoints/m-p/160250#M114232</link>
      <description>Hello,what I'd like add to Activiti are 'dynamic REST endpoints' within a process engine's life-time.Let me elaborate on that topic first:I want to add new elements to the set of 'Activiti BPMN symbols'. That itself is not a huge problem since the editor provides this feature pretty much ootb.Now, i</description>
      <pubDate>Sun, 27 Apr 2014 15:05:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-rest-endpoints/m-p/160250#M114232</guid>
      <dc:creator>thensgens</dc:creator>
      <dc:date>2014-04-27T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic REST Endpoints</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-rest-endpoints/m-p/160251#M114233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, let's take a step back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, I want to extend the activiti modeler (add new custom activities). In order to get these new elements to work, I'd have to extend the engine (runtime, parser, deployer) itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked into the code for quite a while now, but it still seems to be rather complicated at the moment. Is there any documentation besides the 'User Guide' and the (rather) short 'Developers Guide' (&lt;/SPAN&gt;&lt;A href="http://docs.codehaus.org/display/ACT/Developers+Guide" rel="nofollow noopener noreferrer"&gt;http://docs.codehaus.org/display/ACT/Developers+Guide&lt;/A&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From my understanding I'd have to extend the XMLConverter and the BPMNModel itself, in order to have a correct runtime representation of the new elements (during/after the deployment procedure).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently, the BPMNParseHandlers (and the '…Behavior classes' for that matter) are solely relevant for runtime purposes. They'd have to adjusted as well if one wants to add&amp;nbsp; the possibility of running these processes later on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be very helpful if anyone could provide an overview of the relevant classes/packages for this use case in particular.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 12:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-rest-endpoints/m-p/160251#M114233</guid>
      <dc:creator>thensgens</dc:creator>
      <dc:date>2014-05-05T12:43:31Z</dc:date>
    </item>
  </channel>
</rss>

