Index: lams_central/src/flash/org/lamsfoundation/lams/authoring/Activity.as =================================================================== diff -u -r872b8eba2b557fce4b937dbf86eefb8537cc598b -rbacd04a1d6c07d72e2216c0085f37f9c45cfdcc1 --- lams_central/src/flash/org/lamsfoundation/lams/authoring/Activity.as (.../Activity.as) (revision 872b8eba2b557fce4b937dbf86eefb8537cc598b) +++ lams_central/src/flash/org/lamsfoundation/lams/authoring/Activity.as (.../Activity.as) (revision bacd04a1d6c07d72e2216c0085f37f9c45cfdcc1) @@ -15,7 +15,7 @@ public static var SCHEDULE_GATE_ACTIVITY_TYPE:Number = 4; public static var PERMISSION_GATE_ACTIVITY_TYPE:Number = 5; public static var PARALLEL_ACTIVITY_TYPE:Number = 6; - public static var OPTIONS_ACTIVITY_TYPE:Number = 7; + public static var OPTIONAL_ACTIVITY_TYPE:Number = 7; public static var SEQUENCE_ACTIVITY_TYPE:Number = 8; * static final variables indicating the the category of activities @@ -58,7 +58,7 @@ public static var SCHEDULE_GATE_ACTIVITY_TYPE:Number = 4; public static var PERMISSION_GATE_ACTIVITY_TYPE:Number = 5; public static var PARALLEL_ACTIVITY_TYPE:Number = 6; - public static var OPTIONS_ACTIVITY_TYPE:Number = 7; + public static var OPTIONAL_ACTIVITY_TYPE:Number = 7; public static var SEQUENCE_ACTIVITY_TYPE:Number = 8; /******************************************************************/ @@ -205,6 +205,12 @@ } } + public function isOptionalActivity():Boolean{ + if (_activityTypeID == OPTIONAL_ACTIVITY_TYPE){ + return true; + } + } + /** * Populates all the fields in this activity from a dto object contaning the following fields * NB: This is not very clever, if the field in the dto is blank then the value is overwritten in the class...