Questions Tagged With taskruntimehttps://answers.axonivy.com/tags/taskruntime/?type=rss&user=Gabrielequestions tagged <span class="tag">taskruntime</span>enWed, 19 Oct 2016 11:21:13 -0400Get Taskruntimehttps://answers.axonivy.com/questions/2118/get-taskruntime<p>Hello, I need to know the runtime of a task in a running process. I found a method to get a taskruntime in a process but it is not that easy I expected. Now my question, is there a less complicated way to get the runtime of a task? My way: It is written in the call tab of a user dialog in between 2 task symbols</p> <pre><code>ivy.log.info("Startzeit Task "+in.startTaskTime); </code></pre> <p>It is written in a script step behind the task whilst in.nummer the case nubmer is to get the last entry</p> <pre><code>TaskQuery tazk = TaskQuery.create().where().name().isEqual("Task1Name"); Recordset taskZeit = ivy.wf.getTaskQueryExecutor().getRecordset(tazk.groupBy().endTimestamp()); ivy.log.info("TaskEndeZeit2: "+taskZeit.getColumn("ENDTIMESTAMP").get(in.nummer)); </code></pre>GabrieleWed, 19 Oct 2016 11:21:13 -0400https://answers.axonivy.com/questions/2118/get-taskruntimetaskruntimeruntimetask