# ServerlessFunction

```
package com.collager.trillo.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.collager.trillo.pojo.Result;
import com.collager.trillo.pojo.RuntimeContext;
import com.collager.trillo.pojo.ScriptParameter;

public class ServerlessFunction implements TrilloFunction, Loggable {
  
  protected RuntimeContext rtContext;
  
  protected List<Result> failedResults = null;
  protected int failedCount = 0;
  protected int successCount = 0;
  
  protected Result criticalFailureResult = null;
  
  public long getIdOfUser() {
    return rtContext.getIdOfUser();
  }
  public String getUserId() {
    return rtContext.getUserId();
  }
  public String getFirstName() {
    return rtContext.getFirstName();
  }
  public String getLastName() {
    return rtContext.getLastName();
  }
  public String getFullName() {
    return rtContext.getFullName();
  }
  public String getEmail() {
    return rtContext.getEmail();
  }
  public String getOrgName() {
    return rtContext.getOrgName();
  }
  public String getAppName() {
    return rtContext.getAppName();
  }
  public String getExternalId() {
    return rtContext.getExternalId();
  }
  public String getRole() {
    return rtContext.getRole();
  }
  public String getUserOrgName() {
    return rtContext.getUserOrgName();
  }
  public boolean isEmailVerified() {
    return rtContext.isEmailVerified();
  }
  public String getTenantId() {
    return rtContext.getTenantId();
  }
  public String getTenantName() {
    return rtContext.getTenantName();
  }
  public long getUserOrgId() {
    return rtContext.getUserOrgId();
  }
  public String getPictureUrl() {
    return rtContext.getPictureUrl();
  }
  public Object getV() {
    return rtContext.getV();
  }
  public String getTaskName() {
    return rtContext.getTaskName();
  }
  public long getExecutionId() {
    return rtContext.getExecutionId();
  }
  
}


```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trillo.gitbook.io/trillo-workbench-lessons/appendixes/serverlessfunction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
