Added uuid to processor and use this to identify processor object in database.
Fixed export task.
Some code refine.
Refine diagram state codes and move to ufs_diagram.
Fixed issues caused by renaming diagram to ufs_diagram.
Fixed missing attribute issue.