<?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: Eclipse Examples in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71833#M46577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those errors are easily fixed by importing the missing *.jars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just rightclick on the project, click on properties and then on "Java Build Path". Open the Libraries View and there on the right side click on "Add external JARs". In the popup window navigate to your workspace/activiti-engine-examples/libs-runtime folder and add all the jars in there to the project. That&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should resolve the errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Dec 2011 19:18:18 GMT</pubDate>
    <dc:creator>lisama</dc:creator>
    <dc:date>2011-12-04T19:18:18Z</dc:date>
    <item>
      <title>Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71832#M46576</link>
      <description>Hi, after my previous posts, i started reading the user manual … and … i got stuck on setting my eclipse to work with the examples provided. I followed the steps:1. Downloaded Activiti-5.82. Downloaded Eclipse3. In Eclipse I Clicked File -&amp;gt; Import -&amp;gt; Existing Projects into Workspace4. Browsed</description>
      <pubDate>Sun, 04 Dec 2011 17:49:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71832#M46576</guid>
      <dc:creator>santa1</dc:creator>
      <dc:date>2011-12-04T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71833#M46577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those errors are easily fixed by importing the missing *.jars.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just rightclick on the project, click on properties and then on "Java Build Path". Open the Libraries View and there on the right side click on "Add external JARs". In the popup window navigate to your workspace/activiti-engine-examples/libs-runtime folder and add all the jars in there to the project. That&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should resolve the errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 19:18:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71833#M46577</guid>
      <dc:creator>lisama</dc:creator>
      <dc:date>2011-12-04T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71834#M46578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I´ve tried to do as you said. But right after that, i looked for the libs … the bad thing is, that my activiti-cxf-examples is missing required library -&amp;gt; libs-runtime/commons-lang-2.4.jar. This lib i havent found in any af the hierarchy of activiti 5.8. The mentioned lib is one of the 51 i´m missing. Weren´t they suppose to be in the archive of activiti-5.8 ? All packed and no additional downloading required ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 17:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71834#M46578</guid>
      <dc:creator>santa1</dc:creator>
      <dc:date>2011-12-05T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71835#M46579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, so i manually downloaded all of the missing, but now i´ve got suck on AbstractWebServiceTaskTest.java, where it say´s that the "method destroy() is undefined for type Server"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 18:24:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71835#M46579</guid>
      <dc:creator>santa1</dc:creator>
      <dc:date>2011-12-05T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71836#M46580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have no such error, did you maybe accidentally removed the import?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;import org.apache.cxf.endpoint.Server;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 19:11:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71836#M46580</guid>
      <dc:creator>lisama</dc:creator>
      <dc:date>2011-12-05T19:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Eclipse Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71837#M46581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No the import is there, and i havent done no erasing … imported the project and these errors came up. Beside of that .. i have another question … i followed the ten minute tutorial … in the last point we create something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import java.util.List;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.HistoryService;&lt;BR /&gt;import org.activiti.engine.ProcessEngine;&lt;BR /&gt;import org.activiti.engine.ProcessEngineConfiguration;&lt;BR /&gt;import org.activiti.engine.RepositoryService;&lt;BR /&gt;import org.activiti.engine.RuntimeService;&lt;BR /&gt;import org.activiti.engine.TaskService;&lt;BR /&gt;import org.activiti.engine.history.HistoricProcessInstance;&lt;BR /&gt;import org.activiti.engine.impl.test.PluggableActivitiTestCase;&lt;BR /&gt;import org.activiti.engine.runtime.ProcessInstance;&lt;BR /&gt;import org.activiti.engine.task.Task;&lt;BR /&gt;import org.activiti.engine.repository.Deployment;&lt;BR /&gt;&lt;BR /&gt;public class TenMinuteTutorial {&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; public static void main(String[] args) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create Activiti process engine&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createStandaloneProcessEngineConfiguration()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get Activiti services&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepositoryService repositoryService = processEngine.getRepositoryService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RuntimeService runtimeService = processEngine.getRuntimeService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Deploy the process definition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService.createDeployment()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addClasspathResource("FinancialReportProcess.bpmn20.xml")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .deploy();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Start a process instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String procId = runtimeService.startProcessInstanceByKey("financialReport").getId();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the first task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskService taskService = processEngine.getTaskService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Task&amp;gt; tasks = taskService.createTaskQuery().taskCandidateGroup("accountancy").list();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Task task : tasks) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Following task is available for accountancy group: " + task.getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // claim it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskService.claim(task.getId(), "fozzie");&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; // Verify Fozzie can now retrieve the task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tasks = taskService.createTaskQuery().taskAssignee("fozzie").list();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Task task : tasks) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Task for fozzie: " + task.getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Complete the task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskService.complete(task.getId());&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; System.out.println("Number of tasks for fozzie: " &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; + taskService.createTaskQuery().taskAssignee("fozzie").count());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Retrieve and claim the second task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tasks = taskService.createTaskQuery().taskCandidateGroup("management").list();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Task task : tasks) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Following task is available for accountancy group: " + task.getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskService.claim(task.getId(), "kermit");&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; // Completing the second task ends the process&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Task task : tasks) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskService.complete(task.getId());&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; // verify that the process is actually finished&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HistoryService historyService = processEngine.getHistoryService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HistoricProcessInstance historicProcessInstance = &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; historyService.createHistoricProcessInstanceQuery().processInstanceId(procId).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("Process instance end time: " + historicProcessInstance.getEndTime());&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;how do i test it ? … or better … how do i test more activiti-engine exapmples … or even better … how to play with the activiti-in-action examples ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 08:51:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eclipse-examples/m-p/71837#M46581</guid>
      <dc:creator>santa1</dc:creator>
      <dc:date>2011-12-07T08:51:59Z</dc:date>
    </item>
  </channel>
</rss>

