XD-363 Add fixed delay and fixed rate triggers
Added TriggerType enum to include cron, fixedDelay and fixedRate riggers
Check for valid trigger type and throw ResourceDefinitionException for invalid trigger type
Added tests to cover the new cases.
XD-363 polishing