pnp-software / cordetfw

C Implementation of a Software Framework for Service-Oriented Applications with PUS Support
Mozilla Public License 2.0
13 stars 1 forks source link

Command to Delete a Groupd with Associated Activities in Service 11 #126

Open pasetti opened 6 years ago

pasetti commented 6 years ago

Clause 6.11.6.2.2d states:

The time-based scheduling subservice shall reject any instruction to delete a time-based scheduling group if any of the following conditions occurs:

  1. that instruction refers to a group that does not exist;
  2. that instruction refers to a group that has associated activities.

This clause implies that the check on whether a group to be deleted has an associated activity is done as part of the Start Check for the deletion command. However, a few lines later, clause 6.11.6.2.2h states:

For each valid instruction to delete all time-based scheduling groups, the time-based scheduling subservice shall:

  1. for each group that has no associated activity, delete the identifier of that group;
  2. for each group that has associated activities, generate a failed execution notification for that group.

This clause instead implies that the check on whether a group to be deleted has an associated activity is done as part of the execution of the command itself.

The CORDET Extension of the PUS Framework puts the check in the Start Action of the Group Delete command (11,23).