(blackboard, { introspector, rerun = false, registryLookUp = (x) => x, ...config } = {})
| 10 | } |
| 11 | |
| 12 | run(blackboard, { introspector, rerun = false, registryLookUp = (x) => x, ...config } = {}) { |
| 13 | if (!rerun) this.blueprint.start(blackboard) |
| 14 | const result = this.blueprint.run(blackboard, { ...config, rerun, registryLookUp }) |
| 15 | if (result !== RUNNING) { |
| 16 | this.blueprint.end(blackboard) |
| 17 | } |
| 18 | if (introspector) { |
| 19 | introspector.push(this, result, blackboard) |
| 20 | } |
| 21 | return result |
| 22 | } |
| 23 | |
| 24 | get name() { |
| 25 | return this._name || this.blueprint.name |
no test coverage detected