bunkat / schedule

Automatically schedules tasks, work items, meetings, reservations, etc. Schedule takes into account working hours, holidays/days off, people's work schedule/vacation time, as well as task dependencies.
http://bunkat.github.io/schedule/
MIT License
427 stars 87 forks source link

Resource or condition is not working? #17

Open dokechin opened 6 years ago

dokechin commented 6 years ago
      // 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?