Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-75

Make TriggerEvent serializable ?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8
    • 0.9
    • None
    • all

    Description

      On 7/8/08, Daniel Schwager
      > Hi Rahul,
      >
      > is it possible to make the TriggerEvent serializable ? Background: If you build
      > a component feeding events to SCXML, stored in an EventQueue (persistence),
      > the Event has to be serializable... Ah the moment, I have to create a DTO (data transferobject)
      > and save the payload and eventname in it ...)
      >
      > The EventQueue is sometimes necessary because of concurrent Events should NOT lauch concurrent
      > Instances of the same statemachine (-:
      >
      > Just a featurerequest....
      >
      <snip/>

      Yup, makes sense, I'll try to get to it later in the week. Can you
      open an improvement request in JIRA [1] as a reminder?

      We have always said that payloads should be Serializable.
      Unfortunately, the payload property in TriggerEvent is defined as an
      Object and since we don't want to change any public method signatures,
      it will be upto the developer to ensure that the payload is indeed
      Serializable (some Javadocs improvements need to be made to indicate
      that as well).

      -Rahul

      Attachments

        Activity

          People

            Unassigned Unassigned
            danny70437 Daniel Schwager
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: