static function getTaskId()

@return The Id of the Task.
559889
public static function getTaskId(){
            return new SystemCall(function (Task $Task, Scheduler $Scheduler){
                //Send the taskId to yield.
                $Task->setSendValue($Task->getTaskId());
                //Re-active the Task.
                $Scheduler->schedule($Task);
            });
        }
750783
public java.util.List<String> getTaskIds() {
        if (taskIds == null) {
            taskIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return taskIds;
    }
1326540
def get_task_ids(tids):
    
    logging.debug('raw task ids: %s' % tids)
    task_ids = []
    for raw_arg in tids:
        for bit in raw_arg.split(','):
            if '-' in bit:
                start, stop = [int(e) for e in bit.split('-')]
                task_ids.extend(range(start, stop + 1))
            else:
                task_ids.append(int(bit))
    return [e - 1 for e in set(task_ids)]
461935
public function taskSave()
    {
        $taskId = $this->getTaskId();
        $tasks = self::taskFileLoad();
        if (empty($taskId)) {
            $task_ids = array_keys($tasks);
            $this->setTaskId(array_pop($task_ids) + 1);
            $this->setTs(date('Y-m-d H:i:s'));
        }

        $tasks[$this->getTaskId()] = $this;
        return $this->taskFileSave($tasks);
    }
243222
public long getId()
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getId");
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getId", ""+messageProcessorId);
      return messageProcessorId;
   }
76592
public Task getTaskDetails(String taskId) {
        Preconditions.checkArgument(StringUtils.isNotBlank(taskId), "Task id cannot be blank");
        return protoMapper.fromProto(
                stub.getTask(TaskServicePb.GetTaskRequest.newBuilder()
                        .setTaskId(taskId)
                        .build()
                ).getTask()
        );
    }
1191898
@Trivial
    final String getName() {
        Map<String, String> execProps = getExecutionProperties();
        String taskName = execProps == null ? null : execProps.get(ManagedTask.IDENTITY_NAME);
        return taskName == null ? task.toString() : taskName;
    }
1032647
public function getTask(int $taskId)
    {
        if ( ! $this->validateId($taskId)) {
            return false;
        }

        $result = $this->get('tasks/' . $taskId);

        $status = $result->getStatusCode();
        if (200 === $status) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
507705
public Iterator<JobTaskVertex> getTaskVertices() {

		final Collection<JobTaskVertex> coll = this.taskVertices.values();

		return coll.iterator();
	}
149504
public String getComponentId(int taskId) {
        if (taskId == Constants.SYSTEM_TASK_ID) {
            return Constants.SYSTEM_COMPONENT_ID;
        } else {
            return _taskToComponent.get(taskId);
        }
    }
600738
def get_task_id(self):
        """"""
        task_id = self.json_response.get("task_id", None)
        self.logger.info("%s\t%s" % (self.request_method, self.request_url))
        return task_id
1161689
public function getStatus()
    {
        try {
            if (!$this->hasRequestParameter(self::TASK_ID_PARAM)) {
                throw new \common_exception_MissingParameter(self::TASK_ID_PARAM, $this->getRequestURI());
            }

            /** @var TaskLogInterface $taskLogService */
            $taskLogService = $this->getServiceLocator()->get(TaskLogInterface::SERVICE_ID);

            $entity = $taskLogService->getById((string) $this->getRequestParameter(self::TASK_ID_PARAM));

            $this->returnSuccess((string) $entity->getStatus());
        } catch (\Exception $e) {
            $this->returnFailure($e);
        }
    }
161904
public function getTaskById($taskId)
    {
        $result = $this->callService('GET', self::API_FS_TASK . $taskId);

        return $result->getModel(models\FileSystem\FsTask::class);
    }
378134
private AuditUtilityTask getTask(String taskName) {
        AuditUtilityTask task = null;
        for (AuditUtilityTask availTask : tasks) {
            if (availTask.getTaskName().equals(taskName)) {
                task = availTask;
            }
        }
        return task;
    }
81001
public TaskStatus getTaskStatus() {
    TaskStatusUpdate update = get(TaskStatusUpdate.class);
    if (update == null) {
      return null;
    }
    return update.getStatus();
  }
1355671
public function getProvider() {        
        if(!$this->provider) {
            $this->provider = new TaskProvider(WT_ROOT.WT_MODULES_DIR.$this->getName().'/tasks/');
        }
        return $this->provider;
    }
902880
public Task getTask()
    {
        Task task = super.getTask();
        if (task != null)
            return task;
        if (this.getScreenFieldView() != null)
            if (this.getScreenFieldView().getControl() != null)
                return (Task)this.getScreenFieldView().getControl();    // The JAppletScreen is the root task for this screen.
        return null;    //?return m_Applet;   // Never
    }