<?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 Start Workflow and java code  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310864#M263994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a workflow that have multiple assignees (done) and launch to them, a task. When I start the workflow, I want to run a java code that makes modifications on file that the task has been assigned. How can I run this java code on "Start Workflow"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then, I want that each assignee have a task to approve (this moment, the assignees don't have task to approve, appear task done, how can I do that?), and to approve I want to run other java code. How can I make this ? Assign this java codes to workflow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know how to define bpmn too, I think some problems are because of this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 18:08:12 GMT</pubDate>
    <dc:creator>pat9rv3sousa</dc:creator>
    <dc:date>2015-11-16T18:08:12Z</dc:date>
    <item>
      <title>Start Workflow and java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310864#M263994</link>
      <description>I'm trying to create a workflow that have multiple assignees (done) and launch to them, a task. When I start the workflow, I want to run a java code that makes modifications on file that the task has been assigned. How can I run this java code on "Start Workflow"?And then, I want that each assignee</description>
      <pubDate>Mon, 16 Nov 2015 18:08:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310864#M263994</guid>
      <dc:creator>pat9rv3sousa</dc:creator>
      <dc:date>2015-11-16T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Start Workflow and java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310865#M263995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html#implement-the-external-third-party-review" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html#implement-the-external-third-party-review&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;workflow tutorial&amp;lt;/a&amp;gt; there is an ExternalReviewNotification class that shows one way to have Java code in your process get executed. The class implements the TaskListener interface. So one approach would be to have your Java class implement that interface, then add a task listener to each step in your process where you want to call the Java class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example from the tutorial calls the ExternalReviewNotification class when the task is created:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:taskListener event="create" class="com.someco.bpm.ExternalReviewNotification"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 23:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310865#M263995</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2015-11-16T23:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start Workflow and java code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310866#M263996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much Jeff!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I edit this reply because I already solve what I answer you before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have a question, in this java file, I want to access the assignees the I have on the task that I'm starting. When I click Start Workflow (to make the task) I access the java. There are one way to access the assignees in the java in this time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: in your bpmn that you have one task user and one script, this script is the listener or the external notification? I'm trying to understand why to put this script on bpmn. I Thanked very especially this last question. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 07:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-workflow-and-java-code/m-p/310866#M263996</guid>
      <dc:creator>pat9rv3sousa</dc:creator>
      <dc:date>2015-11-17T07:55:00Z</dc:date>
    </item>
  </channel>
</rss>

