[ 
https://issues.apache.org/jira/browse/SCXML-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780824#comment-16780824
 ] 

Woonsan Ko commented on SCXML-286:
----------------------------------

Hi [~diptendu],

According to your description, it doesn't look like a bug, but sounds like a 
good question.
Could you please ask the question again in the "Commons User List" \[1\]?
And prefix your message title with "[SCXML] ".

Regards,

Woonsan

\[1\] http://commons.apache.org/mail-lists.html

> <assign> tag usage location error
> ---------------------------------
>
>                 Key: SCXML-286
>                 URL: https://issues.apache.org/jira/browse/SCXML-286
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: I am using Apache Commons SCXML version 2 
> commons-scxml2-2.0-M1.jar.
>            Reporter: Diptendu Dutta
>            Priority: Major
>
> I have this state machine description:
>  
> {{<scxml xmlns="http://www.w3.org/2005/07/scxml"; version="1.0" 
> initial="Start"> }}
> {{<datamodel> }}
> {{   <data expr="true" id="VarBool"/> }}
> {{   <data expr="1" id="VarInt"/> }}
> {{   <data id="currentResponse" expr="&quot;Sorry I do not understand!&quot;" 
> /> }}
> {{</datamodel> }}
> {{<state id="Start"> }}
> {{   <onentry> }}
> {{     <log expr="'Start'" /> }}
> {{   </onentry> }}
> {{   <transition event="what-is-my-name" target="WhatIsMyName" />   }}
> {{   <transition event="current-weather" target="CurrentWeather" /> </state> 
> }}
> {{<state id="WhatIsMyName"> }}
> {{   <onentry> <log expr="'What is my name'" /> }}
> {{   <assign location="currentResponse" expr="&quot;Your name is 
> noted!&quot;" /> }}
> {{   </onentry> }}
> {{   <transition target="Start" /> </state> }}
> When the state _WhatIsMyName_ becomes active then I am getting this error:
>  
> {{INFO: transition (event = what-is-my-name, cond = null, from = /Start, to = 
> /WhatIsMyName) Feb 28, 2019 9:04:53 PM 
> org.apache.commons.scxml2.SCXMLExecutionContext execute INFO: null: What is 
> my name Feb 28, 2019 9:04:53 PM 
> org.apache.commons.scxml2.env.SimpleErrorReporter handleErrorMessage 
> {color:#FF0000}WARNING: EXPRESSION_ERROR (evalLocation('currentResponse'): 
> java.lang.String cannot be cast to org.w3c.dom.Node): Expression error inside 
> /WhatIsMyName{color} Feb 28, 2019 9:04:53 PM 
> org.apache.commons.scxml2.env.SimpleSCXMLListener onEntry INFO: enter 
> /WhatIsMyName }}
>  
> I am using Apache Commons SCXML version 2 commons-scxml2-2.0-M1.jar.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to