Announcement Announcement Module
Collapse
No announcement yet.
Proposed changes to EventSequence Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proposed changes to EventSequence

    While using class EventSequence and its helper class SequenceEvent, I noticed that a few simple changes would make these classes even more powerful.

    One feature I needed: adding ordinary events to the sequence, like so:

    Code:
    var events:EventSequence = new EventSequence();
    with (events) {
      addSequenceEvent(PrincipalEvent, someArgs);
      addWithDispatcher(this, Event, [Event.COMPLETE], otherTriggers);
      dispatch();
    }
    Additionally, with our custom event framework it turns out that most of the time the triggers for the next event in a sequence can be determined from the previous event. Therefore I needed another slight change to the event sequence classes to facilitate extensions.

    See http://jira.springframework.org/brow...IONSCRIPTAS-41 with an attached patch file containing the proposed changes.

    Thoughts?
    Last edited by jfai; Mar 25th, 2009, 09:32 PM.
Working...
X