Little oz2
Little oz2

Reputation: 1

Chaining Problem - PlanningListVariable dynamic duration

I am currently using a @PlanningListVariable with @PreviousElementShadowVariable and @NextElementShadowVariable which is working fine, however I would like timefold to calculate the duration (each customer requires X amount of time per week across Y number of visits, this needs to be allocated across the staff) however when I add a @PlanningVariable onto the class with @PreviousElementShadowVariable and @NextElementShadowVariable it doesn't compile and says "has no entityClass configured and because there are multiple in the entityClassSet it cannot be deduced automatically".

Is what i'm doing not possible in this way? and would need to go to the CHAINED variable and VariableListener route?

Upvotes: 0

Views: 109

Answers (1)

List variable doesn't support co-habitation with any other genuine planning variable - that's the reason why you're seeing the error. But that's not a problem, because you don't actually want a genuine planning variable for this - you want a cascading update shadow variable.

Upvotes: 0

Related Questions