changed state handling (now support enabled, active and keep historic). Added discretionary & repetition (the latter as camunda extension to keep parsing simplified)