def get_task_by_resourceuri_and_taskId(component_type, resource_uri, task_id, ipaddr, port):
 task_uri_constant = urihelper.singletonURIHelperInstance.getUri(component_type, 'task')
 (s, h) = service_json_request(ipaddr, port, 'GET', task_uri_constant.format(resource_uri, task_id), None)
 if (not s):
  return None
 o = json_decode(s)
 return o

def get_task_by_resourceuri_and_taskId ( component_type , resource_uri , task_id , ipaddr , port ) : task_uri_constant = urihelper . singletonURIHelperInstance . getUri ( component_type , 'task' ) ( s , h ) = service_json_request ( ipaddr , port , 'GET' , task_uri_constant . format ( resource_uri , task_id ) , None ) if ( not s ) : return None o = json_decode ( s ) return o
returns the single task details .