# Create process

Creating a BiometridStandard process, provides the developer with a *processId* that he can use to associate with a specific user.

```swift
BiometridStandard.getInstance().createProcess(callback: self)
```

## Implementation example

```swift
import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, InitializationCallback {

    let BIOMETRIDSTANDARD_SERVER_URL = "https://biometrid.com/"
    let BIOMETRIDSTANDARD_API_APP = "375edc52-d2cd-31d6-b353-iu3yd2c789"
    let BIOMETRIDSTANDARD_API_CREDENTIAL = "e8564df-aea7-11e7-b283-04012a0b9901"

    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
       BiometridStandard.getInstance().initialize(url: BIOMETRIDSTANDARD_SERVER_URL, app: BIOMETRIDSTANDARD_API_APP, credential: BIOMETRIDSTANDARD_API_CREDENTIAL, language: .English, customHeaders: customHeaders, callback: self)
    }
    
    @IBAction func createBtn(_ sender: Any) {
        BiometridStandard.getInstance().createProcess(callback: self)
    }
    
    func initializeCallback(status: Bool, error: Errors?) {
        print("status init", status)
        if error != nil {
            print(error)
            return
        }
    }
    
    func processCreateCallback(status: Bool, processId: String?, error: Errors?) {
        print("status", status)
        if error != nil {
            print(error?.rawValue)
            return
        }
        print(processId)
    }
}

```

## Callback params

<table data-header-hidden><thead><tr><th width="228">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Parameter</td><td>Description</td></tr><tr><td>status: <strong>Bool</strong></td><td>Method request status</td></tr><tr><td>processId: <strong>String?</strong></td><td>Process id created</td></tr><tr><td>error: <strong>Errors</strong></td><td>Errors associated enum</td></tr></tbody></table>
