commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <>
Subject [jira] [Commented] (SCXML-204) Invoker is not getting called twice from the same state
Date Tue, 08 Jul 2014 13:27:04 GMT


Woonsan Ko commented on SCXML-204:


I'm not sure if this is a bug or not, but it could be more helpful if you post a question
like this in the mailing list [1].
You can post a message prefixed with "[SCXML]" to Commons User List.




> Invoker is not getting called twice from the same state
> -------------------------------------------------------
>                 Key: SCXML-204
>                 URL:
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.9
>         Environment: Java 1.6, apache commons SCXML v0.9
>            Reporter: Anshul Gangwar
>            Priority: Minor
>              Labels: newbie
> 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

View raw message