<?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: Process freeze on Shell Task with Batch and Python in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209953#M163083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for following up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not familiar enough to make jUnit test in time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I made test case files as attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And 2 findings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) No issue with Python, but "redirectError" option needed to be enabled ("true") to see output from Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The freeze issue was not from Python or calling another batch file. It seems number of lines of batch file. It is included commented out line with "rem". If the batch file has max 11 lines of code (command or comment), it seems working fine. But if it became 12 lines, it cause freeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naoki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 22:25:28 GMT</pubDate>
    <dc:creator>naoki</dc:creator>
    <dc:date>2015-06-23T22:25:28Z</dc:date>
    <item>
      <title>Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209951#M163081</link>
      <description>Hi all,I'm researching to use external REST API and thought Shell Task with Python might be good solution.If there's better way, please let me know.I've read manual here:http://www.activiti.org/userguide/#bpmnShellTaskWorking sample found at:https://github.com/Activiti/Activiti/blob/master/modules/a</description>
      <pubDate>Mon, 22 Jun 2015 21:24:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209951#M163081</guid>
      <dc:creator>naoki</dc:creator>
      <dc:date>2015-06-22T21:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209952#M163082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Naoki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you create jUnit test please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 06:09:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209952#M163082</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-06-23T06:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209953#M163083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for following up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not familiar enough to make jUnit test in time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I made test case files as attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And 2 findings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) No issue with Python, but "redirectError" option needed to be enabled ("true") to see output from Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The freeze issue was not from Python or calling another batch file. It seems number of lines of batch file. It is included commented out line with "rem". If the batch file has max 11 lines of code (command or comment), it seems working fine. But if it became 12 lines, it cause freeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naoki&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 22:25:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209953#M163083</guid>
      <dc:creator>naoki</dc:creator>
      <dc:date>2015-06-23T22:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209954#M163084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't really test this, as i'm on OSX, but it sounds very odd that the lines of commands make a difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you talking about 12 'activiti:field' entries, and then it freezes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:10:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209954#M163084</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-30T19:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209955#M163085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's windows batch file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot mention about the OS I'm using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is Windows Server 2008 R2 Enterprise. Service Pack 1. 64 bit on Intel Xenon X5670.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Are you talking about 12 'activiti:field' entries, and then it freezes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If line of batch file is 11, it is OK. But 12 lines causes freeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it seems not execute any command or no output captured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Batch file is called as following in above test code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CDATA[C:\_test2\test01.bat]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The batch file in test code was not clear of the lines. Following batch file would be same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extra empty line does not count and does not effect result. Command lines and rem lines are counted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean not only 12 lines. 12 lines or more have this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;==== OK case begin ===&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;echo test01&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 03&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 04&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 05&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 06&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 07&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 08&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 09&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;==== OK case end ===&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;==== NG case begin ===&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;echo test01&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 03&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 04&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 05&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 06&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 07&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 08&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 09&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rem line 12&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;==== NG case end ===&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks very odd. First I thought it caused by the file size of batch file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12 lines could come from the machine spec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think hundreds of lines batch file would reproduce more cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naoki&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 20:31:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209955#M163085</guid>
      <dc:creator>naoki</dc:creator>
      <dc:date>2015-06-30T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process freeze on Shell Task with Batch and Python</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209956#M163086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't think of any reason why this would happen … so I'm afraid I can't really help you right now … &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The command line call is done by the ShellActivityBehavior: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ShellActivityBehavior.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ShellActivityBehavior.java&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see anything wrong there, but maybe you can debug there and see what happens that would explain it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 11:21:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-freeze-on-shell-task-with-batch-and-python/m-p/209956#M163086</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-07T11:21:22Z</dc:date>
    </item>
  </channel>
</rss>

