commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artem Vovk <vovk.ar...@googlemail.com>
Subject [jexl][scxml] Change values of map in scxml
Date Mon, 13 Jun 2011 14:50:46 GMT
Hi,

	I have a data model in my scxml file, that  defined as map:
        <datamodel>
		<data id="event" expr="{'key1' : 'value1', 'key2', 'value2'}">
	</datamodel>
	
	I want to use this data as a constructor for sending data, but I need to change values in
this data:
	something like that
	<data id="event_new" expr="event_new = event, but change event[key1] to new_value ">
	Is this possible within scxml using jexl?

	Another question, that may replace this functionality, is using functions: can I define function
in scxml using jexl?


Cheers Artem
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message