public Task getPendingTaskForWorkflow(String workflowId, String taskReferenceName) {
        return executionService.getPendingTaskForWorkflow(taskReferenceName, workflowId);
    }
Get in progress task for a given workflow id.

@param workflowId id of the workflow
@param taskReferenceName Task reference name.
@return instance of {@link Task}
core/src/main/java/com/netflix/conductor/service/TaskServiceImpl.java