8. Groups Function
| Groups | Not started |
1.0 Create Group records for new Homeroom record |
| Purpose | When a new homeroom is added, the group records in PEMS are created. | |
| Trigger | Runs only one time, when the new homeroom record is added. | |
| Conditions | homeroom status field is active. | |
| Sequence | This function runs after a new homeroom record is created | |
| Step 1 |
Find Set of all Active Curriculum records. |
|
| Step 2 |
Create a Group record for each Curriculum record. |
|
| Step 3 |
Set Homeroom = to the new homeroom record created. |
|
| END |
| Groups | Not started |
2.0 Create Group records when a curriculum record has been activatednote: do not allow new curriculum records to be created with status = active, default must be draft. |
| Purpose | When a new curriculum record has been added, group records need to be made for all active homerooms. | |
| Trigger | Runs whenever the status field in the curriculum record has been changed to 'active' | |
| Conditions | curriculum status field has been changed from any value to active. | |
| Sequence | This function runs after the curriculum status has been changed. | |
| Step 1 |
Find Set of all Active Homeroom records |
|
| Step 2 |
Create a Group record for each homeroom record |
|
| Step 3 |
Set Curriculum in the group record = to the newly activated curriculum record. |
|
| END |
| Groups | Not started |
3.0 Deactivate Group when home room is deactivated or Curriculum is deactivatednote: add active/inactive status field to Group and Homeroom |
| Purpose | #When a curriculum is not longer uses or a homeroom no longer operates, deactivate the associated group. | |
| Trigger | Runs whenever the the status field in the curriculum or homeroom record has been changed to 'inactive' | |
| Conditions |
Curriculum status field has been changed from any value to inactive. OR Homeroom status field has been changed to inactive |
|
| Sequence | This function runs after the curriculum or homeroom status has been changed. | |
| Step 1 |
Find related Group record |
|
| Step 2 |
Set Group record status to inactive. |
|
| END |
No Comments