Hi Pushpith,
I believe what you want can be accomplished, although it will take some testing and some trial-and-error to get it all working the way you need it to. It will take a few things to set this up. For the first part " send mail to the affected end user if the status is set to "user pending" This can be accomplished using the OOTB activity notification for Update Status.
First, You would need to create a new macro to define a condition (site defined condition type) with an object type of Request/Incident/Problem, and then save it. Then add an atomic condition to it with an attribute of "Status", select Data Value, and then choose the data value of "User Pending" (here in my screenshot i used "In Progress" as i dont have User Pending) and save it. The atomic condition would look like this:
Next, you would need to create a new notification rule. Set the condition to the one you created in the previous step. Select the message template (use the out of the box status update one if you dont have another one to use). Select the condition (site defined condition macro) that you created in the previous step. Then update the Object Contacts, add Affected End User, then save the Notification Rule. It should look like this: (again i am using the "In Progress" example for mine):
Next add your new notification rule to the out-of-the-box default Update Status activity notification:
So now, whenever there is an update status activity that takes place, it will evaluate the notification rules, and when the condition (that being the status is set to User Pending), it will fire off your notification rule, which you specified to notify the AEU.
Now the next piece of your question - "If the status hasn't changed the next as well then the mail should be triggered again. This should happen for 2 consecutive days if the status is not changed and on the 3rd day the call should be closed with status set as "closed invalid" "
For this part, you have a few ways to drive this - you can either use a Service Type Event which would expire after 1 day, and then 2 days, and would take action at each of those checkpoints, OR you can use an auto-event that would attach to the ticket upon creation and would use the same condition, and would have a delay time of 1day, and then a repeat delay time of 2days - and take action at each of those points. This part can get very complex depending on how you want to set it up, so I wont provide you with the step by step instructions here, but will refer you to the documentation about Service Type Events, so you can take a look at it and see what would work best for your needs. I would recommend going with Service Type events as there is a lot less system overhead with those than with auto-events.
Here is the documentation for Service Type Events:
_Attach a Service Type Event - CA Service Management - 14.1 - CA Technologies Documentation
Hope this helps to get you started and point you in the right direction.
Regards,
Jon I.