8. A computer program product comprising: a computer readable storage medium readable by one or more processor and storing instructions for execution by the one or more processor for performing a method for customizing an alarm for a user, comprising: collecting, by the one or more processor, user data from the user; analyzing a context of an event from the user data, wherein the event comprises one or more actions; identifying subsequent actions of the event based on the context of the event and participants of the event; creating one or more context-personality-cognitive state (CPC) mapping; adding the one or more CPC mapping to a knowledgebase by machine learning; predicting a first cognitive state of the user while performing a first subsequent action amongst the subsequent actions of the event by use of the knowledgebase; and generating the alarm for the first subsequent action based on the predicted first cognitive state of the user and notifying the generated alarm to the user.
8. A computer program product comprising: a computer readable storage medium readable by one or more processor and storing instructions for execution by the one or more processor for performing a method for customizing an alarm for a user, comprising: collecting, by the one or more processor, user data from the user; analyzing a context of an event from the user data, wherein the event comprises one or more actions; identifying subsequent actions of the event based on the context of the event and participants of the event; creating one or more context-personality-cognitive state (CPC) mapping; adding the one or more CPC mapping to a knowledgebase by machine learning; predicting a first cognitive state of the user while performing a first subsequent action amongst the subsequent actions of the event by use of the knowledgebase; and generating the alarm for the first subsequent action based on the predicted first cognitive state of the user and notifying the generated alarm to the user. 10. The computer program product of claim 8 , the analyzing comprising: identifying respective context attributes of the event from the user data including at least one calendar event and corresponding details, that may be selected from date and time of the event, location of the event, weather at a specific time, traffic at a certain time and location, a travel route and distance, a manner of transportation, one or more actions of the event, a type of the event, zero or more participants of the event, characteristics of the participants, the role of the user in the event, and combinations thereof.