I am assuming you are using 'Run Cloud Task' step in the CAI process to call the DI task. This step provides a
couple of parameters such as Wait for Task to Complete , Max Wait :
If these properties do not help in this use case, one approach I am thinking of is setting up a service connector to call the cloud task using IICS REST API and then using this service connector in the CAI process. Here is a KB article which demonstrates this approach:
I suggest you try this approach and see if it works. For details on available REST APIs, please refer to this link:
Hope this help.
Taskflow API is designed to give RunId as soon as it triggers the taskflow. In this case, we have two options:
>Please use RunCloudTask step in CAI process and directly call the MappingTask etc. There we have an option to configure wait(Wait for Task to Complete , Max Wait).
>If you want to use Taskflow, please use runajobcli utility to trigger it. This utility has an option to wait for the taskflow completion:
Command: cli.bat runAJobCli -t TASKFLOW -un <taskflow name> -w true
Let us know if you have any questions.