cancel method

void cancel()

Marks this execution as cancelled.

The next call to executeStep will throw WorkflowCancelledException.

Implementation

void cancel() {
  _cancelled = true;
}