<?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: Custom service task type, loaded through Java SPI in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202120#M155250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have just discovered that the implementation of SyncWebServiceClientFactory could be configured at process engine configuration level. So, if I write my own implementation of SyncWebServiceClientFactory, I will be able to invoke my Petals services as '##WebService'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this is the best way. Moreover, the process definitions will be more portable. They can be deployed to use real web-services or to use Petals services. Only the configuration of the process engine will be to update, and put the right JARs in the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: The process engine configuration must be completed to be able to set the implementation of SyncWebServiceClientFactory to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 08:28:12 GMT</pubDate>
    <dc:creator>cdeneux</dc:creator>
    <dc:date>2014-12-10T08:28:12Z</dc:date>
    <item>
      <title>Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202115#M155245</link>
      <description>Hi all,I'm working on the contribution mentionned here: http://forums.activiti.org/content/how-extend-activiti-my-own-service-task-implementation.I have successfully updated the engine. I do the same thing for the send task type. And it works fine with Mule, Camel and Shell service task and send tas</description>
      <pubDate>Mon, 01 Dec 2014 14:02:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202115#M155245</guid>
      <dc:creator>cdeneux</dc:creator>
      <dc:date>2014-12-01T14:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202116#M155246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Should I create a version 5.17.0 of 'activiti-bpmn-extensions' ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the type is enumerated, yes. It's nice for users to be able to select it if they want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, that XSD isnt used when using the engine itself. Where did you get the exception?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:06:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202116#M155246</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-05T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202117#M155247</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;Please find below the stack trace where the exception occurs. It's when validating the process definition. FYI the service task 'archiverLaDemandeService' is declared as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;serviceTask id="archiverLaDemandeService"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Petals service invocation #1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activiti:type="petals"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="interfaceName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;{&lt;A href="http://petals.ow2.org/samples/se-bpmn/archivageService}archivage" rel="nofollow noopener noreferrer"&gt;http://petals.ow2.org/samples/se-bpmn/archivageService}archivage&lt;/A&gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is expected because 'petals' is not a valid value for 'activiti:type'. 'petals' is my own implementation of a service task type loaded through java SPI. If I disable the validation on deployment, this error disappear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To be able to propose to few expert users/projects to write their own service task type implementation, 'activiti:type' should be defined as a simple 'xsd:string' without enumeration constraint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;GRAVE: Service Unit 'BpmnComponentTest' failed to deploy&lt;BR /&gt;org.activiti.engine.ActivitiException: Errors while parsing:&lt;BR /&gt;[Validation set: 'activiti-executable-process' | Problem: 'activiti-servicetask-invalid-type'] : Invalid or unsupported service task type - [Extra info : processDefinitionId = vacationRequest | processDefinitionName = Vacation request |&amp;nbsp; | id = archiverLaDemandeService |&amp;nbsp; | activityName = Petals service invocation #1 | ] ( line: 83, column: 4)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:215)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:112)&lt;BR /&gt; at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:50)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:106)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:1)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;BR /&gt; at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:78)&lt;BR /&gt; at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:156)&lt;BR /&gt; at org.ow2.petals.activitibpmn.ActivitiSuManager.deployBpmnModels(ActivitiSuManager.java:431)&lt;BR /&gt; at org.ow2.petals.activitibpmn.ActivitiSuManager.doDeploy(ActivitiSuManager.java:143)&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 08:20:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202117#M155247</guid>
      <dc:creator>cdeneux</dc:creator>
      <dc:date>2014-12-08T08:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202118#M155248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, yes and no. I do see your use case. But I don't think custom service tasks need the type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The activiti:type is just a shorthand for the activiti:class anyway, so why would users need that, instead of using the class approach directly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 13:47:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202118#M155248</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-08T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202119#M155249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are right, I think that the 'activiti:type' is not the right approach. Perhaps can you help me to choose the best one? I'm also investigating a way similar to 'implementation="##WebService"'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to be able to invoke natively Petals ESB services from Activiti. A Petals ESB service is similar to a web-service but without the SOAP layer, requests and replies are XML messages, not Java beans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the same model as 'activiti:type', I think to implement a dynamically load of 'implementation' based on Java SPI. Now, only '##WebService' should be loaded like this. So, I can write another implementation value: 'implementation=##PetalsService' that can be run into an Activiti running in Petals ESB. I think that the same validation problem should occurs because of the enumeration defined for "tImplementation" in Semantic.xsd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think about this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christophe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 14:35:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202119#M155249</guid>
      <dc:creator>cdeneux</dc:creator>
      <dc:date>2014-12-08T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom service task type, loaded through Java SPI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202120#M155250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have just discovered that the implementation of SyncWebServiceClientFactory could be configured at process engine configuration level. So, if I write my own implementation of SyncWebServiceClientFactory, I will be able to invoke my Petals services as '##WebService'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this is the best way. Moreover, the process definitions will be more portable. They can be deployed to use real web-services or to use Petals services. Only the configuration of the process engine will be to update, and put the right JARs in the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: The process engine configuration must be completed to be able to set the implementation of SyncWebServiceClientFactory to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:28:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-service-task-type-loaded-through-java-spi/m-p/202120#M155250</guid>
      <dc:creator>cdeneux</dc:creator>
      <dc:date>2014-12-10T08:28:12Z</dc:date>
    </item>
  </channel>
</rss>

