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

[scxml] Thread-safety in Executor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 0.5
    • None
    • Operating System: All
      Platform: All

    • 39434

    Description

      Hi
      I am trying to send an event "connection.connected" to the state-machine which
      is in a parallel state. Look at the logs (Removed unnecessary statements), note
      the thread name at the beginning and the final transitions.

      [CALLBACK.4] Current States: [wait-for-orig-connect, wait-for-ivr-connect]
      [CALLBACK.4] Firing

      {name=connection.connected,type=3,payload=com.baypackets.simulator.sipconnector.SIPEndPoint: orig-line[100]}

      [CALLBACK.5] Firing

      {name=connection.connected,type=3,payload=com.baypackets.simulator.sipconnector.IVREndPoint: ivr-line[msml]}

      [CALLBACK.4] transition (event = connection.connected, cond = _eventdata.ID eq
      'ivr-line', from =
      /setup-call/create-call/ivr-interaction/ivr-leg/wait-for-ivr-connect, to =
      /setup-call/create-call/ivr-interaction/ivr-leg/ivr-connected)
      [CALLBACK.4] Current States: [wait-for-orig-connect, ivr-connected]
      [CALLBACK.5] Current States: [wait-for-orig-connect, wait-for-ivr-connect]
      [DATAI.0] Current States: [wait-for-orig-connect, wait-for-ivr-connect]

      Three problems:
      1. The last three lines above: the change that CALLBACK.4 did is overridden by
      CALLBACK.5.
      2. Callback 4 has a payload of type:orig-line,
      [CALLBACK.4] Firing

      {name=connection.connected,type=3,payload=com.baypackets.simulator.sipconnector.SIPEndPoint: orig-line[100]}

      But
      [CALLBACK.4] transition (event = connection.connected, cond = _eventdata.ID eq
      'ivr-line', from =
      /setup-call/create-call/ivr-interaction/ivr-leg/wait-for-ivr-connect, to =
      /setup-call/create-call/ivr-interaction/ivr-leg/ivr-connected)
      it thinks that it has an 'ivr-line'???
      3. Where did the orig line disappear??

      Attachments

        Activity

          People

            Unassigned Unassigned
            fasihullah.askiri@gmail.com Fasihullah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: