<?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: Need some guidance on BPMN implementation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222646#M175776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;EM&gt;Is this even possible?&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;In Spring environment with bean function calls it works well enough. You can switch any particular component for mock for unit testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Is there a reasonable solution to this dilemma?&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;Camel/Mule integration and countless lines of code/params in your scripts for every piece of rest call? I don't think it's reasonable, but it's doable. Also, you can make simple helpers that call arbitrary rest service, in this case mock unit testing looks easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Is it a reasonable requirement&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;More or less it's part of business logic, but if you get requirement that something should not happen, then ask back what should process do in this case. Most restrictions like this in ruins clear business logic if they are left outside of process - most obvious outcome would be stuck process, because user is already selected, but he/she can't move process forward. You have to have plan B for every case, and it will make processes look like x-mas tree…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;We're trying to think of a reasonable way to notify the workflow that it needs to update the task's candidate user list.&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make signal/message catching events or receive tasks in parallel execution to handle this situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But why bother to notify workflow? In general case process is stored in DB waiting for user task/timer/event. You can simply update task properties outside of process - engine doesn't require you to be inside process to make changes. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2016 11:44:19 GMT</pubDate>
    <dc:creator>warper</dc:creator>
    <dc:date>2016-08-19T11:44:19Z</dc:date>
    <item>
      <title>Need some guidance on BPMN implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222645#M175775</link>
      <description>Some questions for the experts:I'm using Script Tasks (in Groovy) to call out to external services via REST.&amp;nbsp; I'd like to be able to fake out these external dependencies so I can write unit tests that can put a workflow through all of its paths without the need to stand these external services up.&amp;nbsp;</description>
      <pubDate>Fri, 19 Aug 2016 03:08:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222645#M175775</guid>
      <dc:creator>robojeff</dc:creator>
      <dc:date>2016-08-19T03:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on BPMN implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222646#M175776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;EM&gt;Is this even possible?&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;In Spring environment with bean function calls it works well enough. You can switch any particular component for mock for unit testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Is there a reasonable solution to this dilemma?&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;Camel/Mule integration and countless lines of code/params in your scripts for every piece of rest call? I don't think it's reasonable, but it's doable. Also, you can make simple helpers that call arbitrary rest service, in this case mock unit testing looks easier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Is it a reasonable requirement&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;More or less it's part of business logic, but if you get requirement that something should not happen, then ask back what should process do in this case. Most restrictions like this in ruins clear business logic if they are left outside of process - most obvious outcome would be stuck process, because user is already selected, but he/she can't move process forward. You have to have plan B for every case, and it will make processes look like x-mas tree…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;We're trying to think of a reasonable way to notify the workflow that it needs to update the task's candidate user list.&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make signal/message catching events or receive tasks in parallel execution to handle this situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But why bother to notify workflow? In general case process is stored in DB waiting for user task/timer/event. You can simply update task properties outside of process - engine doesn't require you to be inside process to make changes. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 11:44:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222646#M175776</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-19T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on BPMN implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222647#M175777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone point me to an example of how to inject mock objects into a groovy script? I'm trying to get my head around how a Spring Application would even know to scan for things to @Inject into a snippet of groovy code.&amp;nbsp; When you @ComponentScan you need to tell Spring about packages to scan for.&amp;nbsp; How does it know to go look for something embedded in an XML file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd really prefer we were able to keep all of our implementation embedded within the BPMN file, as it alleviates us of having to take down Activiti in order to deploy updated or new Java helper classes.&amp;nbsp; I don't see much out there in the Googlesphere about doing this.&amp;nbsp; Any advice on that subject?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Aug 2016 18:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222647#M175777</guid>
      <dc:creator>robojeff</dc:creator>
      <dc:date>2016-08-20T18:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on BPMN implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222648#M175778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;EM&gt;How does it know to go look for something embedded in an XML file?&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not know, it loads everything you mention in bean definitions and annotated component-scan classes. Everything you need should be already defined in spring context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unit test loads proper context (here with mocks):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@ContextConfiguration({ "classpath:META-INF/spring/test-mock-context.xml", "classpath:META-INF/spring/test-context.xml" })&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class getRegionMockTest extends SpringActivitiTestCase {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 10:18:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222648#M175778</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-22T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need some guidance on BPMN implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222649#M175779</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;I would propose to use spring beans in the groovy script. You can mock spring beans easily in the spring context.&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 14:08:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-some-guidance-on-bpmn-implementation/m-p/222649#M175779</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-08-22T14:08:39Z</dc:date>
    </item>
  </channel>
</rss>

