Yes, It can be done. Please go through the REST API V3 reference to retrieve task status in CDI.
This might be an old method used by Power Center Developers. Not sure if it really helps you.
You can create a tag file once the task complete successfully. This event before the start of the new DI task will look for this file. if it exists it triggers, else it will not trigger.
Hope this helps.
Raghavendra Rao S K
Capture the run_id of the taskflow by using a command task and assignment task and writing it to a file.
Have another taskflow to read the run_id and use IICS API V2 to find the latest status on Run_ID.