Get started > Out-of-the-box business rules > Reservation process - Business rules

Reservation process - Business rules

All processes

In the out-of-the-box reservations workflow, the rules detailed for each of the following events apply to all processes.

Before change

Condition Service Management actions
Phase is Close, and Reserved device is not empty

Device Phase = Prepare

Phase is Close, and Reserved infrastructure & peripheral is not empty

Infrastructure & peripheral Phase = Prepare

After change

Condition Service Management actions
Phase is Close, and Reserved device is not empty

Device Phase = In use

Phase is Close, and Reserved infrastructure & peripheral is not empty

Infrastructure & peripheral Phase = In use

Reserved for is empty

Reserved for = the first (in order listed) of the following which is not empty:

  • Requested for of Request

  • Current user

Phase is Close or Cancel, and Reserved device is not empty

Reserved device = false

Phase is Close or Cancel, and Reserved infrastructure & peripheral is not empty

Reserved infrastructure & peripheral = false

Display label is empty, and For Request is not empty Display label = Reservation For Request + Request ID + Request Display label
Another infrastructure & peripheral is selected Reserved device = false
Another device is selected Reserved infrastructure & peripheral = false
Start date is empty Start date = now
End date is empty End date = now + 30 days
None Validate: either (but not both) Reserved device = true, or Reserved infrastructure & peripheral = true

Rendering

Condition Service Management actions
None

Show Device list with these filters:

  • Phase = In stock

  • Reserved = false

None

Show infrastructure & peripheral list with these filters:

  • Phase = In stock

  • Reserved = false

After applying changes

Condition Service Management actions

All of the following are true:

  • Phase = Active

  • Reserved for is not empty

  • Reserved device is not empty

  • Start date is not empty

  • End date is not empty

Send notification to Reserved for

All of the following are true:

  • Phase = Canceled

  • Reserved for is not empty

  • Reserved device is not empty

  • Start date is not empty

  • End date is not empty

Send notification to Reserved for

All of the following are true:

  • Phase = Active

  • Reserved for is not empty

  • Reserved infrastructure & peripheral is not empty

  • Start date is not empty

  • End date is not empty

Send notification to Reserved for

All of the following are true:

  • Phase = Canceled

  • Reserved for is not empty

  • Reserved infrastructure & peripheral is not empty

  • Start date is not empty

  • End date is not empty

Send notification to Reserved for

Metaphases and phases

In the out-of-the-box reservations workflow, the following rules apply to the indicated metaphase or phase.

Active phase

Event Condition Service Management action
After change Reserved device is not empty Reserved = true for requested device
After change Reserved infrastructure & peripheral is not empty Reserved = true for requested infrastructure & peripheral
Per schedule End date is not empty Automatically cancel reservation when End date is reached

Ended phase

Event Condition Service Management action
After change Reserved device is not empty Create a relationship between the values of Reserved device and Reserved for fields
After change Reserved infrastructure & peripheral is not empty Create a relationship between the values of Reserved infrastructure & peripheral and Reserved for fields