Use real enum for JobState instead of many constant
#25
+28
−25
JobState instead of many constant
#25