Anshul Gangwar created SCXML-204:
------------------------------------

             Summary: Invoker is not getting called twice from the same state
                 Key: SCXML-204
                 URL: https://issues.apache.org/jira/browse/SCXML-204
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.9
         Environment: Java 1.6, apache commons SCXML v0.9
            Reporter: Anshul Gangwar
            Priority: Minor


Hi, 
First I am a newbie for this site and for SCXML as well. I am not sure whether 
my concern is actually a bug. Below is my problem description:

I have used SCXML for maintaining state machine in my project. I have used the 
Invoker to perform some activity each time the transition to the state,for 
which invoker is defined, is performed.

Issue is coming when invoker is called twice from same state. 

For example, from State "A" event "TEMP" is fired, then it moves to state "B". 
And as soon as it enters the state "B" invoker is called and callback method 
invoke() of Invoker class is being called.

<state id="A">
    <transition event="TEMP" target="B"></transition>
</state>

<state id="B">
    <invoke src="INVOKER" targettype="invoker-req">
        <transition event="FAIL" target="A"></transition>
        <transition event="SUCC" target="C"></transition>
    </invoke>
</state>

Problem is coming when event "TEMP" is fired again from State A and then 
Invoker is not getting called. invoke() method is never called again. Can the 
invoker be called only once?

Please let me know how can I call the invoker/invoke() again. I am not getting 
much help on internet.

Thanks in advance.




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to