Chapter 4. Using Sarasvati

Table of Contents

Introduction
Sarasvati File Format
Introduction
Process Definition
Nodes
Node Arcs
Externals
External arcs
The Sarasvati Engine
Loading Process Definitions
Interfaces
Flow of Execution
Custom logic for Node Execution
Custom Attributes
Custom Loader
Environment
Execution Listeners
Backtracking
Process Definition Visualization
Process Visualization
Graph Validation

Introduction

Using Sarasvati usually involves writing process definition files, along with custom node types. Sarasvati uses an XML file format for process definitions. These files can be loaded into in-memory graph structures and executed, or they can be loaded first into a database, and from there loaded and executed.

We first introduce the file format, then explain how to implement custom behavior. Finally, we discuss how to interact with the Sarasvati engine.