In some cases the state will agree to dismiss if the defendant jumps through a hoop or two. For instance, in an assault case the defendant can take an anger management class. In a drug case they can take a drug class and get a clean UA. But many defendants have a hard time getting these things done. Should you find yourself in this position I implore you to get your tasks done so your case can be dismissed.