code: 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;
     }
docs: Return the activityId given the scheduledEventId
  @param {String} scheduledEventId
  @returns {String} activityId - The activityId if found, false otherwise