<?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: Programatically create a Process which has a ServiceTask calling my Java Service in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135024#M94766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also tried to change the value of the serviceTask.setImplementation to something crap (not a valid package+class name) and I got no issues, so the process doesn't seem to care about it at all&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;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 14:39:44 GMT</pubDate>
    <dc:creator>viggo_navarsete</dc:creator>
    <dc:date>2013-07-03T14:39:44Z</dc:date>
    <item>
      <title>Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135021#M94763</link>
      <description>Hi,I'm trying to extend on the example found here: http://stacktrace.be/blog/2013/03/dynamic-process-creation-and-deployment-in-100-lines/I have made my own service, MyService which implements the JavaDelegate interface. Currently I'm only doing a System.out.println from this class, but I'm trying t</description>
      <pubDate>Wed, 03 Jul 2013 12:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135021#M94763</guid>
      <dc:creator>viggo_navarsete</dc:creator>
      <dc:date>2013-07-03T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135022#M94764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried to use the line below (and leave out the setType()):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;serviceTask.setImplementationType(ImplementationType.IMPLEMENTATION_TYPE_CLASS);&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, make sure you add a sequence-flow from task2 to serviceTask and one from serviceTask to end, to make sure the process-flow includes the service-task…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 13:35:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135022#M94764</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-03T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135023#M94765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for update! It certainly helped using the setImplementationType the way you described, I also missed the wiring you noted. BUT, now when I run the test, it runs green, the generated PNG contains all three tasks, BUT in my class implementing the JavaDelegate I both log a message and throw a UnsupportedOperation, but nothing fails, and nothing is logged, which makes me believe it's not called at all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class MyJavaService implements JavaDelegate {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final Logger logger = LoggerFactory.getLogger(MyJavaService.class);&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 void execute(DelegateExecution de) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("CALLING MyJavaService");&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new UnsupportedOperationException("Not supported yet."); &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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the unit test I run: &lt;/SPAN&gt;&lt;A href="http://pastie.org/private/hcfkouxlulvaeos7nxr2xa" rel="nofollow noopener noreferrer"&gt;http://pastie.org/private/hcfkouxlulvaeos7nxr2xa&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 14:20:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135023#M94765</guid>
      <dc:creator>viggo_navarsete</dc:creator>
      <dc:date>2013-07-03T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135024#M94766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also tried to change the value of the serviceTask.setImplementation to something crap (not a valid package+class name) and I got no issues, so the process doesn't seem to care about it at all&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;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 14:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135024#M94766</guid>
      <dc:creator>viggo_navarsete</dc:creator>
      <dc:date>2013-07-03T14:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135025#M94767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realized that since the two first tasks were user tasks, they probably need some user interaction(!) in order for the process to go from task 1 to task 2, and hence the third task which I added (a ServiceTask) would never be called/executed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I switched the order of the tasks so that the ServiceTask was the first one, and it was called&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;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I consider this question as answered! (but, is it possible to simulate user interaction programatically as well? Maybe not a valid use case for it, but just curious..)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:09:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135025#M94767</guid>
      <dc:creator>viggo_navarsete</dc:creator>
      <dc:date>2013-07-03T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically create a Process which has a ServiceTask calling my Java Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135026#M94768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, use the TaskService to query for taks (createTaskQuery()) and complete them (or any other action you might want to do). I suggest you do a quick read through the Javadocs of our services, so you get an overview of the possibilities of the API…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 08:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programatically-create-a-process-which-has-a-servicetask-calling/m-p/135026#M94768</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-04T08:09:08Z</dc:date>
    </item>
  </channel>
</rss>

