attr  target
attr  event
attr  type
attr  delay
attr  id
attr  target
attr  event
attr  type
attr  delay
attr  id
documentHasSendActionWithIdlocationAttribute false
o.sendIdLocationString 
//Generated on Thursday, January 29, 2015 22:04:03 by the SCION SCXML compiler
(function (_x,_sessionid,_ioprocessors,In){
   var _name = 'undefined';    function getDelayInMs(delayString){
        if(typeof delayString === 'string') {
            if (delayString.slice(-2) === "ms") {
                return parseFloat(delayString.slice(0, -2));
            } else if (delayString.slice(-1) === "s") {
                return parseFloat(delayString.slice(0, -1)) * 1000;
            } else {
                return parseFloat(delayString);
            }
        }else if (typeof delayString === 'number'){
            return delayString;
        }else{
            return 0;
        }
    }
    
    
    
    var httpid;
    
    
    
    var $scion_early_binding_datamodel_has_fired= false;
    function $initEarlyBindingDatamodel(_event){
        if(!$scion_early_binding_datamodel_has_fired){
            httpid = $data_line_5_column_36.apply(this, arguments);
            $scion_early_binding_datamodel_has_fired = true; 
        }
    }
    
    function $deserializeDatamodel($serializedDatamodel){
        httpid = $serializedDatamodel["httpid"];
        $scion_early_binding_datamodel_has_fired = true;
    }
    
    function $serializeDatamodel(){
       return {
        "httpid" : httpid
       };
    }
    
    function $send_line_14_column_50(_event){
        var _scionTargetRef = null;
        if(_scionTargetRef === '#_internal'){
             this.raise(
             {
                target: _scionTargetRef,
                name: "ignore",
                type: null,
                data: 
                    {
                    
                    },
                origin: _sessionid
             });
        }else{
             this.send(
             {
                target: _scionTargetRef,
                name: "ignore",
                type: null,
                data: 
                    {
                    
                    },
                origin: _sessionid
             }, 
               {
                   delay: getDelayInMs(null),
                   sendId: "$scion.sendid0"
               });
        }
    }
    
    function $send_line_15_column_48(_event){
        var _scionTargetRef = null;
        if(_scionTargetRef === '#_internal'){
             this.raise(
             {
                target: _scionTargetRef,
                name: "test",
                type: null,
                data: 
                    {
                    
                    },
                origin: _sessionid
             });
        }else{
             this.send(
             {
                target: _scionTargetRef,
                name: "test",
                type: null,
                data: 
                    {
                    
                    },
                origin: _sessionid
             }, 
               {
                   delay: getDelayInMs(null),
                   sendId: null
               });
        }
    }
    
    function $cond_line_17_column_109(_event){
        return httpid !== 'foo' && httpid !== '$scion.sendid0';
    }
    
    function $expr_line_24_column_47(_event){
        return 'RESULT: pass';
    }
    
    function $log_line_24_column_47(_event){
        this.log("TEST",$expr_line_24_column_47.apply(this, arguments));
    }
    
    function $expr_line_30_column_47(_event){
        return 'RESULT: fail';
    }
    
    function $log_line_30_column_47(_event){
        this.log("TEST",$expr_line_30_column_47.apply(this, arguments));
    }
    
    function $data_line_5_column_36(_event){
        return 'foo';
    }
    
    return {
        "": "http://www.w3.org/2005/07/scxml",
        "initial": "uber",
        "$type": "scxml",
        "states": [
            {
                "id": "uber",
                "states": [
                    {
                        "id": "s1",
                        "onEntry": [
                            $send_line_14_column_50,
                            $send_line_15_column_48
                        ],
                        "transitions": [
                            {
                                "event": "test",
                                "target": "pass",
                                "cond": $cond_line_17_column_109
                            },
                            {
                                "event": "test",
                                "target": "fail"
                            }
                        ]
                    }
                ]
            },
            {
                "id": "pass",
                "$type": "final",
                "onEntry": $log_line_24_column_47
            },
            {
                "id": "fail",
                "$type": "final",
                "onEntry": $log_line_30_column_47
            }
        ],
        "onEntry": [
            $initEarlyBindingDatamodel
        ],
        "$deserializeDatamodel": $deserializeDatamodel,
        "$serializeDatamodel": $serializeDatamodel
    };})
