company_assignment
Assign workers to jobs by priority, due date, and money at stake, using each worker's remaining weekly hours to prevent double-booked schedules and report staffing shortages.
Instructions
Staff every open job at once so a person's hours are given only once. Takes the jobs and worker profiles (and optionally a taxonomy and a match report; else the bundle's report is built now), orders the jobs by the plan's priority, then due date, then money at stake, and allocates each job's fit workers in rank order from what remains of their weekly hours across overlapping jobs. A job that cannot be filled is short by a stated number of hours and names who would have covered it had an earlier job not taken them, so the owner can reorder. Reports each worker's load and peak week and how many double bookings the per-job report would have made. Deterministic; read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | ||
| engine | No | ||
| operation | No | build | |
| entity_ref | No | ||
| project_id | Yes | ||
| bundle_json | No | ||
| payload_json | No | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |