---
description: This section contains the necessary methods to get previous step.
---

# Get previous step

The following method provides information about all the previous step in the specified process token.

```java
BiometridOn.getInstance().getPreviousSteps(String process_token, OnProcessCallback callback);
```

## Callback params

| getPreviousStep Callback | Callback                     |
| ------------------------ | ---------------------------- |
| Boolean status           | Status of request            |
| StepType s               | Current step from process    |
| JsonObject json          | JsonObject data from request |
| Errors e                 | Errors object                |

## Implementation example

```java
public class ExampleActivity extends Activity implements OnProcessCallback {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);

        BiometridOn.getInstance().getPreviousSteps("PROCESS_TOKEN", this); 
    }

    @Override
    public void onPreviousStepsCallback(boolean status, StepType s, JsonObject json, Errors e) {

    }

    ...
}
```
