<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Is it possible to analyze process runtime in Axon.ivy Designer?</title><link>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer</link><description>&lt;p&gt;Hi,
I try to get statistic information out of the designer form certain projects like total porcessduration and I wonder if there are not some examples how to do so. I have connected a MySQL Database to store such information for further usage.
Maybe someone can help me?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 16 Jun 2016 16:20:24 -0400</lastBuildDate><item><title>Comment by Reto Weiss on Gabriele's answer</title><link>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer#1818</link><description>&lt;p&gt;The executor() method was introduced in version 6.1. That's why my query does not work. Your solution does the same and works also with older versions.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 16 Jun 2016 16:20:24 -0400</pubDate><guid>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer#1818</guid></item><item><title>Answer by Gabriele</title><link>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer/1817</link><description>&lt;p&gt;Hi Reto, 
Thank's for your help, unfortunately the statement you have posted doesn't work. But I was successful with try and error and found a query that provides the average time for one instance of my process:
ivy.log.info("runtime" + ivy.wf.getCaseQueryExecutor().getRecordset(CaseQuery.create().aggregate().avgBusinessRuntime()));
or the time of all instances in a sum
ivy.log.info("runtimeSum" + ivy.wf.getCaseQueryExecutor().getRecordset(CaseQuery.create().aggregate().sumBusinessRuntime()));&lt;/p&gt;
&lt;p&gt;Regards
Gabriele&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gabriele</dc:creator><pubDate>Thu, 16 Jun 2016 14:06:29 -0400</pubDate><guid>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer/1817</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer/1808</link><description>&lt;p&gt;Not sure if I understand you question correct. With the following script you get the avarage business runtime of all process instances that were executed:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import ch.ivyteam.ivy.workflow.query.CaseQuery;
Object result = CaseQuery.create().aggregate().avgBusinessRuntime().executor().firstValue();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Have a look at the CaseQuery and aggregate function there are a lot of additional functions available. There is also a TaskQuery to aggregate runtime data of tasks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 14 Jun 2016 17:37:31 -0400</pubDate><guid>https://answers.axonivy.com/questions/1804/is-it-possible-to-analyze-process-runtime-in-axon-ivy-designer/1808</guid></item></channel></rss>