Creating object of scheduler hashmap and setting proper condition on which to execute enc process