--if claim status went to conflict, then set the task status to conflict as well
RAISENOTICE'after_claim_insertupdatedelete: updating task id=% to conflict status % because there are claims in conflict for this task',NEW.task_id,task_conflict_status_id;
RAISENOTICE'Updating task id=% to approved status % because there are no more claims in conflict for this task',NEW.task_id,task_approved_status_id;
RAISENOTICE'after_claim_insertupdatedelete: updating task id=% to approved status % because there are no more claims in conflict for this task',NEW.task_id,task_approved_status_id;
-- update tasks which were in conflict, but which are not anymore due this claim-update to the approved status
RAISENOTICE'after_claim_insertupdatedelete: updated task id=% to approved status % because there are no more claims in conflict for this task',NEW.task_id,task_approved_status_id;