Create method findPortFromTaskID for working with Circuit