Store to File

The process could be easily serialized and unserialized because the process state is an array.
In the example we show how to create a process than store it to a file as json string.
Read the file and execute the process.