Support declarative construction of process definition

Updated all examples and test cases