<?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 JUnit: execution does not exist in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54973#M32938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have created my first process as a copy of the groovy examples and when I run the JUnit test with the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; @Deployment&lt;BR /&gt;&amp;nbsp; public void testMyProcess() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int[] inputArray = new int[] {1, 2, 3, 4, 5};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey("myProcess", CollectionUtil.singletonMap("inputArray", inputArray));&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Execution execution : runtimeService.createExecutionQuery().list()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(String.format("[EXECUTION %s] %s", execution.getId(), execution.getProcessInstanceId()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer result = (Integer) runtimeService.getVariable(pi.getId(), "y");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals(2, result.intValue());&lt;BR /&gt;&amp;nbsp; }&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;it fails with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;org.activiti.engine.ActivitiException: execution 5 doesn't exist&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.cmd.GetExecutionVariableCmd.execute(GetExecutionVariableCmd.java:49)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.RuntimeServiceImpl.getVariable(RuntimeServiceImpl.java:97)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.braintribe.bpm.samples.DemoTest.testMyProcess(DemoTest.java:22)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestCase.runTest(TestCase.java:168)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.test.PvmTestCase.runTest(PvmTestCase.java:75)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestCase.runBare(TestCase.java:134)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.test.AbstractActivitiTestCase.runBare(AbstractActivitiTestCase.java:89)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult$1.protect(TestResult.java:110)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult.runProtected(TestResult.java:128)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult.run(TestResult.java:113)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestCase.run(TestCase.java:124)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestSuite.runTest(TestSuite.java:232)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestSuite.run(TestSuite.java:227)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;which is correct because&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.createExecutionQuery().list()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;does not pass anything back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is if I did miss a setting to keep the process alive (I copied all the files from the groovy example and just changed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;created a new process myself)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; regards, Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. sorry for asking that simple questions, I am new to the topic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jun 2011 15:38:18 GMT</pubDate>
    <dc:creator>christoph_retti</dc:creator>
    <dc:date>2011-06-25T15:38:18Z</dc:date>
    <item>
      <title>JUnit: execution does not exist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54973#M32938</link>
      <description>Hi, I have created my first process as a copy of the groovy examples and when I run the JUnit test with the code&amp;nbsp; @Deployment&amp;nbsp; public void testMyProcess() {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int[] inputArray = new int[] {1, 2, 3, 4, 5};&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey("myProcess", CollectionU</description>
      <pubDate>Sat, 25 Jun 2011 15:38:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54973#M32938</guid>
      <dc:creator>christoph_retti</dc:creator>
      <dc:date>2011-06-25T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: JUnit: execution does not exist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54974#M32939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your process have any 'wait' states in it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your process runs from start -&amp;gt; end with only automatic steps, then there will be no runtime process instances (nor executions) in the database (since your process is already done).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 07:32:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54974#M32939</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-06-27T07:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: JUnit: execution does not exist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54975#M32940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, my process does only contain one scriting and one service task (see the picture below), so everything is automatic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do so that the process will be persisted between some automatic steps?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; c&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 08:40:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54975#M32940</guid>
      <dc:creator>christoph_retti</dc:creator>
      <dc:date>2011-08-16T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: JUnit: execution does not exist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54976#M32941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process will only persist when it encounters a wait-state (eg. usertask, signaltask). When the process starts and encounters no wait-states until the end, no trace is left behind in the runtime-database. The history however, will contain a HistoricProcessInstance entry for your process (use the HistoryService)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 11:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54976#M32941</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-16T11:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: JUnit: execution does not exist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54977#M32942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For persistence between automatic steps, vote for &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-126" rel="nofollow noopener noreferrer"&gt;ACT-126&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 12:26:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/junit-execution-does-not-exist/m-p/54977#M32942</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-16T12:26:27Z</dc:date>
    </item>
  </channel>
</rss>

