<?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 Issues Running BPMN 2.0 HelloWorld on MySQL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39589#M21103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I installed the Eclipse designer and run a hello world example it can run smoothly. And I configure the database from h2 to mysql the example can run smoothly and no error occurs but I can not find any record in the mysql database when I run the process in the eclipse.The steps I perform is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Complete the hello world BPMN with eclipse designer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.generate the unit test example with ecplise designer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.run the unit test&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The hello world can run correctly,when I deploy the hello world according to activiti expro I can find the process record in the mysql ,but I can not find any record in mysql database, when I run the process in the eclipse , How can I configure eclipse so that I can store the process detail in the mysql database? I change the activiti.cfg.xml to the following and put it in the src/test/java but it does not work &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Database configurations –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseType" value="mysql" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcUrl" value="jdbc:mysql://localhost:3306/activiti?autoReconnect=true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcDriver" value="com.mysql.jdbc.Driver" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcUsername" value="activiti" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcPassword" value="activiti" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 06:30:05 GMT</pubDate>
    <dc:creator>zicongwang</dc:creator>
    <dc:date>2011-02-22T06:30:05Z</dc:date>
    <item>
      <title>Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39589#M21103</link>
      <description>Hi all,&amp;nbsp; I installed the Eclipse designer and run a hello world example it can run smoothly. And I configure the database from h2 to mysql the example can run smoothly and no error occurs but I can not find any record in the mysql database when I run the process in the eclipse.The steps I perform is</description>
      <pubDate>Tue, 22 Feb 2011 06:30:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39589#M21103</guid>
      <dc:creator>zicongwang</dc:creator>
      <dc:date>2011-02-22T06:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39590#M21104</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 recommend putting the activiti.cfg.xml in src/test/resources and check if there are more activiti.cfg.xml files on your test-classpath…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 08:28:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39590#M21104</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-22T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39591#M21105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah,I have put the activiti.cfg.xml in src/test/resources,but the same issue occurs, I can not get any record from mysql database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I recommend putting the activiti.cfg.xml in src/test/resources and check if there are more activiti.cfg.xml files on your test-classpath…&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:53:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39591#M21105</guid>
      <dc:creator>zicongwang</dc:creator>
      <dc:date>2011-02-22T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39592#M21106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your test leave resources behind? If you use the @Deployment in your tests, the deployment is cascade deleted after the test is finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you cant to be absolutely sure you're using the DB you want, you can add something like this in your test to check:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Assert.assertEquals("mysql", activitiRule.get((ProcessEngineImpl)activitiRule.getProcessEngine()).getProcessEngineConfiguration().getDatabaseType());&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 07:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39592#M21106</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-23T07:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39593#M21107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I add the code to the test and can get the result that I use the mysql&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;CODE&gt;Assert.assertEquals("mysql", activitiRule.get((ProcessEngineImpl)activitiRule.getProcessEngine()).getProcessEngineConfiguration().getDatabaseType());&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;I use the @Deployment in my test that may caused the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do not use @Deployment , Any other way to replace it so that I can run the test correctly and can also get the result in the mysql databse?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does your test leave resources behind? If you use the @Deployment in your tests, the deployment is cascade deleted after the test is finished.&lt;BR /&gt;&lt;BR /&gt;If you cant to be absolutely sure you're using the DB you want, you can add something like this in your test to check:&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Assert.assertEquals("mysql", activitiRule.get((ProcessEngineImpl)activitiRule.getProcessEngine()).getProcessEngineConfiguration().getDatabaseType());&lt;BR /&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 02:19:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39593#M21107</guid>
      <dc:creator>zicongwang</dc:creator>
      <dc:date>2011-02-24T02:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39594#M21108</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;AFAIK there is nothing wrong with your unit-test, you can check everything you want in the test-method using assertions and afterwards your data is cleaned up, so other tests get a clean DB again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to leave things behind, you shouldn't use the @Deployment annotation, but just manually deploy the process-definition in the beginnin of your test, without removing it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;activitiRule.getProcessEngine().getRepositoryService().createDeployment()…&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 08:29:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39594#M21108</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-24T08:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Running BPMN 2.0 HelloWorld on MySQL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39595#M21109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can just call repositoryService.createDeployment().addClasspathResource("your-process').deploy()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That will not clean up your test afterwards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 08:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-running-bpmn-2-0-helloworld-on-mysql/m-p/39595#M21109</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-02-24T08:38:00Z</dc:date>
    </item>
  </channel>
</rss>

