Skip to main content

8. Groups Function

GroupsNot started

1.0 Create Group records for new Homeroom record


PurposeWhen a Newnew homeroom is added, the group records in PEMS are created.

TriggerRuns only one time, when the new homeroom record is added.

Conditionshomeroom status field is active.

SequenceThis 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
 

 

GroupsNot started

2.0 Create Group records when a curriculum record has been activated

note: do not allow new curriculum records to be created with status = active, default must be draft.


PurposeWhen a new curriculum record has been added, a group recordrecords needsneed to be createdmade for all active homerooms.

TriggerRuns whenever the status field in the curriculum records.record has been changed to 'active'

Conditionscurriculum status field has been changed from any value to active.

SequenceThis 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
 

 

GroupsNot started

3.0 Deactivate Group when home room is deactivated or Curriculum is deactivated

note: 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.

TriggerRuns 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.

TYrOR

Homeroom status field has been changed to inactive


SequenceThis 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