Hello, good morning.
I’m currently working with Resource Utilization and the hour consumption logic behaves correctly based on assigned resources. However, we’ve encountered a scheduling scenario where hour allocation should depend on conditions shared between different resource types.
Scenario
We have two resource types:
Center → Available 24h/day
Staff (two individuals):
Staff A → morning shift
Staff B → afternoon shift
Night hours have no Staff, but the Center remains available 24h.
Requirement
We need to determine whether the Center should consume hours when no Staff is present.
Time period Staff available? Should the Center consume hours?
Morning Yes Yes
Afternoon Yes Yes
Night No Only if Center is allowed to operate alone
Ideally, we would need some kind of rule such as:
center.canOperateAlone = true | false
So that the Center only generates hours when Staff is present — unless a task explicitly allows the Center to work by itself.
Important note
One solution we have explored is generating a "synthetic" calendar in the backend.
We process the resource availability, build a custom calendar matching the scenario (Center hours allowed only if Staff overlaps), and then apply that calendar to the task.
However, in our setup we are not working with task calendars, but resource calendars — so this approach feels more like a workaround than a native solution.
Question
Is there a built-in way or recommended extension point to:
- Define conditional hour allocation based on the presence/overlap of other resources, and/or
- Apply rules that modify resource hour calculation without generating artificial calendars?Any guidance or best practice would be very helpful.
Thanks!