# Expensive Operations

## Instructions

Add an output parameter of `command = delay` to any output node. Leopard will then show the "thinking" graphic until it next receives a response from Teneo. When the graphic is shown Teneo automatically sends back an empty input to Teneo with a request parameter of `command=continue` .  You can then begin your expensive operation and return the response as per usual.&#x20;

<div align="left"><img src="https://4062709520-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La71Iy76rotlqbCOWoQ%2F-LjbJ2JvMZ3jJFamfdqF%2F-LjbLRUSBJ-6diZnoVZo%2Fdelay.jpg?alt=media&#x26;token=d1bd968d-1c92-4078-bcf4-22554d206d5d" alt=""></div>

Remember you can retrieve request parameters in Teneo in Pre-Processing.

{% code title="Pre-Processing script grabs command parameter and sets it as a global variable" %}

```groovy
if (engineEnvironment.getParameter("command")) {
	command = engineEnvironment.getParameter("command")
} else {
	command = ""
}
```

{% endcode %}

### Screenshots

<div align="left"><img src="https://4062709520-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La71Iy76rotlqbCOWoQ%2F-LjbHvohv250zcC9ly2A%2F-LjbInDo_YiOKG08DhXU%2FDelayLeopard.gif?alt=media&#x26;token=d2f37927-8cdf-4b79-8ce2-5e656a49de66" alt=""></div>

### Output Parameter

```
command = delay
```

##
