Get Taskruntime
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
ivy.log.info("Startzeit Task "+in.startTaskTime);
It is written in a script step behind the task whilst in.nummer the case nubmer is to get the last entry
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));