Skip to content

SCXML orchestration server designed to run on embedded nodejs devices

License

Notifications You must be signed in to change notification settings

JacobeanRnD/microexpresscion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microexpresscion is an SCXML orchestration server designed to be run on nodejs IoT devices, like the Intel Edison development board.

Microexpresscion provides Node.js express middleware which implements the State Machines as a Service (SMaaS) REST protocol.

Installation

npm install -g microexpresscion

Usage

microexpresscion path/to/scxml

Open http://localhost:3000/ in your web browser to view the web dashboard.

API

See bin/www for example of the JavaScript API.

var microexpresscion = require('../index');
var http = require('http');

microexpresscion.initExpress(pathToScxml,function(err, app){

  if(err) throw err;

  /**
   * Create HTTP server.
   */

  var server = http.createServer(app);

  /**
   * Listen on provided port, on all network interfaces.
   */

  server.listen(port);
  server.on('error', onError);
  server.on('listening', onListening);

  function onListening() {
    var addr = server.address();
    var bind = typeof addr === 'string'
      ? 'pipe ' + addr
      : 'port ' + addr.port;
    console.log('Listening on ' + bind);
  }
});

Examples

UMIO Universal Morse Input Output device

Links

About

SCXML orchestration server designed to run on embedded nodejs devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •