×
Toggle navigation
Download
Documentation
Tutorial
Q & A
Team
Search
We have switched to
https://community.axonivy.com
. This page remains read-only. Post new questions in our new forum.
Questions
Tags
Users
Badges
Unanswered
Revision history[
back
]
3
20.10.2016 at 14:57
Reguel Wermelinger
9.4k
●
3
●
19
●
58
TaskQuery query = TaskQuery.create().where().name().isEqual("Task1Name").groupBy().endTimestamp(); ITask task =
ivy.wf.getTaskQueryExecutor().getFirstResult(query);
ivy.wf.getTaskQueryExecutor().getFirstResult(query) as ITask;
long taskRuntimeMillis = task.getEndTimestamp().getTime() - task.getStartTimestamp().getTime(); ivy.log.info("task runtime: "+taskRuntimeMillis);
2
20.10.2016 at 11:26
Reguel Wermelinger
9.4k
●
3
●
19
●
58
TaskQuery query = TaskQuery.create().where().name().isEqual("Task1Name").groupBy().endTimestamp(); ITask task = ivy.wf.getTaskQueryExecutor().getFirstResult(query); long taskRuntimeMillis =
task.getEndTimestamp.getTime()
task.getEndTimestamp().getTime()
-
task.getStartTimestamp.getTime();
task.getStartTimestamp().getTime();
ivy.log.info("task runtime: "+taskRuntimeMillis);
1
20.10.2016 at 11:25
Reguel Wermelinger
9.4k
●
3
●
19
●
58
TaskQuery query = TaskQuery.create().where().name().isEqual("Task1Name").groupBy().endTimestamp(); ITask task = ivy.wf.getTaskQueryExecutor().getFirstResult(query); long taskRuntimeMillis = task.getEndTimestamp.getTime() - task.getStartTimestamp.getTime(); ivy.log.info("task runtime: "+taskRuntimeMillis);
×