public void setModelByText ( String model ) { try { InputStream is = new ByteArrayInputStream ( model . getBytes ( ) ) ; this . model = SCXMLParser . parse ( new InputSource ( is ) , null , customActionsFromTagExtensions ( ) ) ; this . setStateMachine ( this . model ) ; } catch ( IOException | SAXException | ModelException e ) { e . printStackTrace ( ) ; } }
Sets the SCXML model with a string