In Oneflow, it is possible to create contracts with the following durations:
- No duration
- Single period
- Recurring
- Recurring with two periods.
When the contract is signed, it gets a secondary lifecycle state.
The lifecycle state keeps track of the contract status: awaiting, active, or ended. There are also composite states, or substates, for canceled (for active) and terminated (for ended).
In this article, we will consider all the contract duration settings combinations and their impact on the contract lifecycle.
Note:
Depending on the selected contract duration, settings marked as not allowed in the tables below will be disabled in the Oneflow application UI. However, when setting parameters that are not allowed for this type of contract using the API, the system will generate an error 400 (bad request).
No duration
A typical case of a contract with no duration is an employment contract in which only a start date can be set:
Available settings
The table below shows all the settings allowed for a contract with no duration in the Oneflow application UI:
Allowed | Description | |
Duration | | This setting is not allowed for contracts with no duration. |
Notice period | This setting is not allowed for contracts with no duration. | |
Start date | You can set the start date. See more in the Contract start date options chapter. | |
End date | This setting is not allowed for contracts with no duration. | |
Initial duration | This setting is not allowed for contracts with no duration. |
Impact on the contract start and end
For contracts with no duration, the following combinations of the contract settings are possible:
Combo | Start date | Contract starts | Description |
A | On the start date | The contract with a start date will start according to the start date specified in the contract. | |
B | At the time of signing | The contract with no start date specified will start only when the contract is signed. |
Lifecycle development
Depending on the settings combinations described in the table above, the contract lifecycle state will change accordingly:
Combo | Awaiting | Active | Ended | Description |
A | Before start date | Never* | Never* | When a start date is specified, the contract will be in the Awaiting state before the start date and will get neither Active nor Ended status. |
B | Never | Never | Never | Contracts with no start date will always be Active. |
*Note:
Contracts with no duration and no start_date are similar to not adding the duration box.
Single period
A single-period contract is a contract that is valid between a specific start and an end date or a period after the start date:
Available settings
The table below shows all the settings allowed for a contract with a single period in the Oneflow application UI:
Allowed | Description | |
Duration | You can set the contract duration. | |
Notice period | This setting is not allowed for contracts with a single period. | |
Start date | You can set the contract start date. | |
End date | You can set the contract end date. | |
Initial duration | This setting is not allowed for contracts with a single period. |
Settings combinations
Duration | Start date | End date | Description | |
- | For a contract with a specified duration, it’s possible to set a start date, whereas the end date option will be unavailable. | |||
Start date | - | For a contract with a specified start date, it’s possible to specify the duration or the contract's end date. | ||
End date | - | For a contract with the specified end date, it is only possible to select a start date, whereas the duration option will be unavailable. |
Impact on the contract start and end
For contracts with a single period, the following combinations of the contract settings are possible:
Lifecycle development
Depending on the settings combinations described in the table above, the contract lifecycle state will change accordingly:
Combo | Awaiting | Active | Ended |
A | Never | Immediately after signing the contract. | After the contract duration has elapsed or if the contract is manually terminated. |
B | Before the start date | After the start date, until the duration has elapsed. | After the contract duration has elapsed or if the contract is manually terminated. |
C | Before the start date | After the start date, until the end date. | After the contract end date or if the contract is manually terminated. |
D | Never | Immediately after signing the contract, until the end date. | After the contract end date or if the contract is manually terminated. |
Note:
Only the owner-side party can manually terminate the contract.
Recurring
Recurring contracts automatically renew once the contract period is over unless the contract is canceled during the notice period.
Available settings
The table below shows all the settings allowed for a recurring contract via the Oneflow application UI.
Settings combinations
For recurring contracts, the following settings are possible:
Note:
The Duration and Notice period settings are not shown in the table as they are mandatory and should always be used.
Impact on the contract start and end
For recurring contracts, the following combinations of the contract settings are possible:
Note:
The Notice period always works the same regardless of other settings.
Lifecycle development
Depending on the settings combinations described in the table above, the contract lifecycle state will change accordingly:
Contract termination
If a recurring contract is terminated, the following applies:
Notice period always works the same, regardless of other settings.
If a contract party cancels the contract before the notice period, there will be no new periods, and the contract will expire at the end of the current period.
If a contract party cancels the contract after the start of the notice period, there will be another period after which the contract will end.
If the owner-side party manually terminates the contract, it ends immediately.
Recurring with two periods
Recurring contracts with two periods are only valid for two periods. When the first contract period is over, the contract is automatically renewed unless the contract is canceled during the notice period. After the second period, the contract is no longer renewed.
Available settings
The table below shows all the settings allowed for a recurring contract with two periods via the Oneflow application UI.
Setting combinations
For recurring contracts with two periods, the following settings are possible:
Note:
The Notice period setting is not shown in the table as it is mandatory and should always be used.
Impact on the contract start and end
For recurring contracts with two periods, the following combinations of the contract settings are possible:
Lifecycle development
Depending on the settings combinations described in the table above, the contract lifecycle state will change accordingly:
Contract termination
If a recurring contract with two periods is terminated, the following applies:
Notice period always works the same, regardless of other settings.
For the initial period:
If a contract party cancels the contract before the notice period, there will be no new periods, and the contract will expire at the end of the first period.
If a contract party cancels the contract after the start of the notice period, the contract will be renewed for the second period.
For the second period:
If a contract party cancels the contract during the second period, the contract will be active during the time equal to the notice period, after which the contract will end.
If the owner-side party manually terminates the contract, it ends immediately.