|
|
# Auction Specs |
|
|
\ No newline at end of file |
|
|
# Auction Specs
|
|
|
Every auction must have its specification.
|
|
|
Specification must be in the [deployment](https://gitlab.prozorro.sale/prozorro-sale/prozorro-deploymenthttps://gitlab.prozorro.sale/prozorro-sale/prozorro-deployment) repository and have next structure.
|
|
|
```yaml
|
|
|
{{name_of_auction}}:
|
|
|
_proc_name: {{name_of_auction}}
|
|
|
_initial_state: {{name_of_the_initial_state}}
|
|
|
{{name_of_the_state}}:
|
|
|
duration: {{duration_of_the_state}}
|
|
|
{{extra_data_of_state}}
|
|
|
```
|
|
|
`_proc_name` - using for resolving name of the auction in the [base state class](https://gitlab.prozorro.sale/prozorro-sale/auction/-/blob/master/src/prozorro_sale/auction/state_machine/base_states.py#L23)
|
|
|
`_initial_state` - name of the state which will be set on auction start.
|
|
|
`name_of_the_state` - name of the specific state which will be resolved to the state class.
|
|
|
`duration` - duration of the specific state.
|
|
|
`extra_data_of_state` - extra data, that can be used in some business logic, in bundle with [rules](Auction-Rules) |