public virtual void Resume() { lock (_executionLock) { if (ExecutableState != ExecutableState.Paused) { return; } LogService.Log(LogType, LogMessageType.Debug, Name, "Resuming execution"); ExecutableState = ExecutableState.Running; // Make sure to notify before actually kicking off execution because subscribers will depend on knowing before // any more activities execute. OnResumed(); // Enable transitions out of the current node while paused. CurrentNode.EnableConnectors(); // Optimistically try to transition. RunToCompletion(); } }