/**
  * cancels this task, takes the specified transition. This task intance will be marked as
  * cancelled and as ended. But cancellation doesn't influence singalling and continuation of
  * process execution.
  */
 public void cancel(Transition transition) {
   markAsCancelled();
   end(transition);
 }
 /**
  * cancels this task, takes the specified transition. This task intance will be marked as
  * cancelled and as ended. But cancellation doesn't influence singalling and continuation of
  * process execution.
  */
 public void cancel(String transitionName) {
   markAsCancelled();
   end(transitionName);
 }
 /**
  * cancels this task. This task intance will be marked as cancelled and as ended. But cancellation
  * doesn't influence singalling and continuation of process execution.
  */
 public void cancel() {
   markAsCancelled();
   end();
 }