Skip to main content
satheeshrajam0003
Participating Frequently
Sep 2, 2022 4:36 PM UTC
Solved

How to find task status by taskId

I dont want to create task report and queryprocessanalytics to do get the status. Is there any other easy way of getting it? 

9 replies

stefanhelzle0001
Brainy
Sep 2, 2022 4:59 PM UTC

That is the default way of doing this. Is there a specific reason you want to avoid this?

satheeshrajam0003
Participating Frequently
Sep 2, 2022 5:35 PM UTC

I need this feature in various part of my applications. So looking for an direct function (may be supported by some plugins). 

stefanhelzle0001
Brainy
Sep 2, 2022 5:38 PM UTC

I would create a process report and an expression which returns that status for a given task id. May I ask where you get that task id from?

What is your overall use case?

Inspiring
Sep 3, 2022 4:47 AM UTC

The easiest way of doing this is by using Task Report and queryprocessanalytics functions. You can create a task report which will be generic report with All task Context and from the report you can get the status based on taskID, You can create seperate expression rule which will take taskId as an input and in that expression rule you can use queryProcessAnalytics function and it will return the status of the particular taskId.

shikhat
Inspiring
Sep 4, 2022 9:01 AM UTC

Use Gettaskstatus function and pass task id

satheeshrajam0003
Participating Frequently
Sep 4, 2022 12:21 PM UTC

Can you name the plugin that has the function? 

shikhat
shikhatAnswer
Inspiring
Sep 4, 2022 12:57 PM UTC