schedule
schedule copied to clipboard
Resource or condition is not working?
// Define a set of tasks
var testTasks = [
{id: 1, duration: 60},
{id: 2, duration: 30, dependsOn: [1], resources: ['A']},
{id: 3, duration: 30, dependsOn: [1], resources: [['A','B']]}
];
// Define a set of resources
var testResources = [
{id: 'A'},
{id: 'B'}
];
var testS = schedule.create(testTasks, testResources, null, new Date());
Task id3 need resource A or B. I want to be scheduled task id2 and id3 going simultaneously. But only resource A is used. Why?