<?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: newbie using Activiti 6 and Springboot 2.0.1 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25388#M11002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;discovered activiti-spring dependency for pom.xml&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808080;"&gt;&amp;lt;!-- Activiti worwflow start --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.activiti&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;activiti-engine&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;${activiti.version}&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.activiti&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;activiti-spring&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;${activiti.version}&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808080;"&gt;&amp;lt;!-- Activiti worwflow end --&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;added @Bean's to Application.java&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808080;"&gt;/*&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * Activiti workflow configuration start&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * remove from here to end if not required&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;CommandLineRunner init(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;RepositoryService repositoryService,&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;RuntimeService runtimeService,&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;TaskService taskService) {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return new &lt;/SPAN&gt;CommandLineRunner() {&lt;BR /&gt; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;run(String... strings) &lt;SPAN style="color: #000080; font-weight: bold;"&gt;throws &lt;/SPAN&gt;Exception {&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of process definitions : "&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt; &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;repositoryService&lt;/SPAN&gt;.createProcessDefinitionQuery().count());&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of tasks : " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;taskService&lt;/SPAN&gt;.createTaskQuery().count());&lt;BR /&gt; &lt;SPAN style="color: #660e7a;"&gt;runtimeService&lt;/SPAN&gt;.startProcessInstanceByKey(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"oneTaskProcess"&lt;/SPAN&gt;);&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of tasks after process start: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;taskService&lt;/SPAN&gt;.createTaskQuery().count());&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;SpringProcessEngineConfiguration processEngineConfiguration() {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return new &lt;/SPAN&gt;SpringProcessEngineConfiguration();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;ProcessEngineFactoryBean processEngine() {&lt;BR /&gt; ProcessEngineFactoryBean factoryBean = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ProcessEngineFactoryBean();&lt;BR /&gt; factoryBean.setProcessEngineConfiguration(processEngineConfiguration());&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;factoryBean;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;RepositoryService repositoryService() {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getRepositoryService();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean &lt;/SPAN&gt;RuntimeService runtimeService(){&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getRuntimeService();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean &lt;/SPAN&gt;TaskService taskService(){&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getTaskService();&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="color: #808080;"&gt;/*&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * Activiti workflow configuration end&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * remove to here from start if not required&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;API App not starting but errors not clear yet - suspect the run() method isn't appropriate in this app&lt;BR /&gt;&lt;BR /&gt;Process finished with exit code 0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 10:19:57 GMT</pubDate>
    <dc:creator>listert</dc:creator>
    <dc:date>2018-07-06T10:19:57Z</dc:date>
    <item>
      <title>newbie using Activiti 6 and Springboot 2.0.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25387#M11001</link>
      <description>HiI'm finding it difficult to configure Activiti into a Spingboot application api.First of all is it a viable thing to embed Activiti into an API type application for use within that application or should Activiti be run standalone - we are not going Activiti 7 while its in early release stages.The</description>
      <pubDate>Thu, 05 Jul 2018 16:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25387#M11001</guid>
      <dc:creator>listert</dc:creator>
      <dc:date>2018-07-05T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: newbie using Activiti 6 and Springboot 2.0.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25388#M11002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;discovered activiti-spring dependency for pom.xml&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808080;"&gt;&amp;lt;!-- Activiti worwflow start --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.activiti&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;activiti-engine&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;${activiti.version}&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;org.activiti&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;activiti-spring&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;${activiti.version}&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;version&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808080;"&gt;&amp;lt;!-- Activiti worwflow end --&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;added @Bean's to Application.java&lt;/P&gt;&lt;P style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808080;"&gt;/*&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * Activiti workflow configuration start&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * remove from here to end if not required&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;CommandLineRunner init(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;RepositoryService repositoryService,&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;RuntimeService runtimeService,&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;final &lt;/SPAN&gt;TaskService taskService) {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return new &lt;/SPAN&gt;CommandLineRunner() {&lt;BR /&gt; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;run(String... strings) &lt;SPAN style="color: #000080; font-weight: bold;"&gt;throws &lt;/SPAN&gt;Exception {&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of process definitions : "&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt; &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;repositoryService&lt;/SPAN&gt;.createProcessDefinitionQuery().count());&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of tasks : " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;taskService&lt;/SPAN&gt;.createTaskQuery().count());&lt;BR /&gt; &lt;SPAN style="color: #660e7a;"&gt;runtimeService&lt;/SPAN&gt;.startProcessInstanceByKey(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"oneTaskProcess"&lt;/SPAN&gt;);&lt;BR /&gt; System.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;out&lt;/SPAN&gt;.println(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Number of tasks after process start: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a;"&gt;taskService&lt;/SPAN&gt;.createTaskQuery().count());&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;SpringProcessEngineConfiguration processEngineConfiguration() {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return new &lt;/SPAN&gt;SpringProcessEngineConfiguration();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;ProcessEngineFactoryBean processEngine() {&lt;BR /&gt; ProcessEngineFactoryBean factoryBean = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ProcessEngineFactoryBean();&lt;BR /&gt; factoryBean.setProcessEngineConfiguration(processEngineConfiguration());&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;factoryBean;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;RepositoryService repositoryService() {&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getRepositoryService();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean &lt;/SPAN&gt;RuntimeService runtimeService(){&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getRuntimeService();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Bean &lt;/SPAN&gt;TaskService taskService(){&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;processEngine().getProcessEngineConfiguration().getTaskService();&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="color: #808080;"&gt;/*&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * Activiti workflow configuration end&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; * remove to here from start if not required&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; */&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;API App not starting but errors not clear yet - suspect the run() method isn't appropriate in this app&lt;BR /&gt;&lt;BR /&gt;Process finished with exit code 0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 10:19:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25388#M11002</guid>
      <dc:creator>listert</dc:creator>
      <dc:date>2018-07-06T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: newbie using Activiti 6 and Springboot 2.0.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25389#M11003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;removed run ijn favour of component&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;WorkflowService {&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;RepositoryService &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;repositoryService&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;ProcessEngine &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;processEngine&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;RuntimeService &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;runtimeService&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;ProcessInstance getProcessInstance(String name) {&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;runtimeService&lt;/SPAN&gt;.startProcessInstanceByKey(name);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Getting a SQL error, looking for org.h2.driver although config is set for oracle.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE style="font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808000;"&gt;@Value&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"${spring.datasource.url}"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;url&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Value&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"${spring.datasource.username}"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;username&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Value&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"${spring.datasource.password}"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;password&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;@Value&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"${spring.datasource.driver-class-name}"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;driver&lt;/SPAN&gt;;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #808000;"&gt;@Bean&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;@Primary&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;DataSource dataSource() {&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;return &lt;/SPAN&gt;DataSourceBuilder&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;SPAN&gt;create&lt;/SPAN&gt;()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .url(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;url&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .driverClassName(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"oracle.jdbc.OracleDriver"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;//this.driver)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.username(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;username&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .password(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;password&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .build();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;WorflowCntroller&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private final &lt;/SPAN&gt;WorkflowService &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;workflowService&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;WorkflowController(WorkflowService workflowService) {&lt;BR /&gt; Assert.&lt;SPAN&gt;notNull&lt;/SPAN&gt;(workflowService, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"workflowService must not be null!"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;workflowService &lt;/SPAN&gt;= workflowService;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt; Error creating bean with name 'workflowController' defined in file [C:\\Javawork\\org\\org-api\\target\\classes\\com\\santech\\gcb\\org\\controller\\WorkflowController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workflowService': Unsatisfied dependency expressed through field 'processEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database. Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: &lt;STRONG&gt;java.lang.ClassNotFoundException: org.h2.Driver&lt;/STRONG&gt;\r\n### The error may exist in org/activiti/db/mapping/entity/Property.xml\r\n### The error may involve org.activiti.engine.impl.persistence.entity.PropertyEntityImpl.selectDbSchemaVersion\r\n### The error occurred while executing a query\r\n### Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: org.h2.Driver","logger_name":"org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext","thread_name":"restartedMain","level":"WARN","level_value":30000}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;PRE style="font-size: 11.3pt;"&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 11.3pt;"&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25389#M11003</guid>
      <dc:creator>listert</dc:creator>
      <dc:date>2018-07-09T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: newbie using Activiti 6 and Springboot 2.0.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25390#M11004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added pom dependency&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;com.h2database&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;groupId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;h2&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;artifactId&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;dependency&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;now logging error&lt;BR /&gt;&lt;BR /&gt;Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: \"java.net.ConnectException: Connection refused: connect: localhost\" [90067-197]\r\n### The error may exist in org/activiti/db/mapping/entity/Property.xml\r\n### The error may involve org.activiti.engine.impl.persistence.entity.PropertyEntityImpl.selectDbSchemaVersion\r\n### The error occurred while executing a query\r\n### Cause: org.h2.jdbc.JdbcSQLException: Connection is broken: \"java.net.ConnectException: Connection refused: connect: localhost\" [90067-197]","logger_name":"org.springframework.boot.web.servlet.context&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:51:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/newbie-using-activiti-6-and-springboot-2-0-1/m-p/25390#M11004</guid>
      <dc:creator>listert</dc:creator>
      <dc:date>2018-07-09T10:51:35Z</dc:date>
    </item>
  </channel>
</rss>

