lib/event-list.js
function (scheduledEventId) {
      var i;
      for (i = 0; i < this._events.length; i++) {
         var evt = this._events[i];
         if (evt.eventId === scheduledEventId) {
            return evt.activityTaskScheduledEventAttributes.activityId;
         }
      }
      return false;
   }
function (scheduledEventId) {
      var i;
      for (i = 0; i < this._events.length; i++) {
         var evt = this._events[i];
         if (evt.eventId === scheduledEventId) {
            return evt.activityTaskScheduledEventAttributes.activityId;
         }
      }
      return false;
   }
function ( scheduledEventId ) { var i ; for ( i = 0 ; i < this . _events . length ; i ++ ) { var evt = this . _events [ i ] ; if ( evt . eventId === scheduledEventId ) { return evt . activityTaskScheduledEventAttributes . activityId ; } } return false ; }
Return the activityId given the scheduledEventId
@param {String} scheduledEventId
@returns {String} activityId - The activityId if found, false otherwise
Return the activityId given the scheduledEventId