GET_UC_OBJECT_STATUS() through this function I can get only the statistical data of a job and a workflow.
Wrong. As I already said, it does return data on active objects if there are any objects matching the criteria, otherwise it returns statitics data.
I tested this.
A workflow that blocks:
... and shows in the statistics with a green "active" mark, as you said:
... and shows as "workflow is blocked" in the activity window:
Then I run this script against it:
gives this output:
... and "1560" is the Automic code for "workflow is blocked", which is the status from the activity window.
Hth,