|| typeOfActivity.equals(ConstantKeys.FORECASTSALE)
|| typeOfActivity.equals(ConstantKeys.LITERATUREREQUEST)
|| typeOfActivity.equals(ConstantKeys.MEETING)
|| typeOfActivity.equals(ConstantKeys.NEXTACTION)
|| typeOfActivity.equals(ConstantKeys.TODO) || typeOfActivity.equals(ConstantKeys.TASK))) {
ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
"com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");
try {
ActivityHelper remote = home.create();
remote.setDataSource(dataSource);
String findActivityId = request.getParameter("rowId");
typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId))
.toUpperCase();
} catch (Exception e) {
logger.error("[execute]: Exception", e);
}
}
} else if (request.getParameter(ConstantKeys.TYPEOFACTIVITY) != null) {
typeOfActivity = request.getParameter(ConstantKeys.TYPEOFACTIVITY);
// call to activity helper to get typeOfActivity if
// here we get value from "TYPEOFACTIVITYLIST" hidden text box from jsp
// pages
if (!(typeOfActivity.equals(ConstantKeys.APPOINTMENT)
|| typeOfActivity.equals(ConstantKeys.CALL)
|| typeOfActivity.equals(ConstantKeys.FORECASTSALE)
|| typeOfActivity.equals(ConstantKeys.LITERATUREREQUEST)
|| typeOfActivity.equals(ConstantKeys.MEETING)
|| typeOfActivity.equals(ConstantKeys.NEXTACTION)
|| typeOfActivity.equals(ConstantKeys.TODO) || typeOfActivity.equals(ConstantKeys.TASK))) {
ActivityHelperHome home = (ActivityHelperHome)CVUtility.getHomeObject(
"com.centraview.activity.helper.ActivityHelperHome", "ActivityHelper");
try {
ActivityHelper remote = home.create();
remote.setDataSource(dataSource);
String findActivityId = request.getParameter("rowId");
typeOfActivity = remote.getTypeOfActivity(Integer.parseInt(findActivityId))
.toUpperCase();
} catch (Exception e) {