Exhaustion of Resources: a Marked Temporal Process Framework