File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/kotlin/at/ac/uibk/dps/cirrina/execution/object Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,11 @@ internal constructor(
139139 if (candidates.isEmpty()) return null
140140
141141 val evalExtent =
142- extent.extend(
143- ContextInMemory ().apply { event.data.forEach { create(VAR_PREFIX + it.name, it.value) } }
144- )
142+ activeState!!
143+ .extent
144+ .extend(
145+ ContextInMemory ().apply { event.data.forEach { create(VAR_PREFIX + it.name, it.value) } }
146+ )
145147
146148 return trySelect(candidates, evalExtent)?.also {
147149 event.data.forEach { d -> extent.setOrCreate(VAR_PREFIX + d.name, d.value) }
@@ -227,7 +229,7 @@ internal constructor(
227229 private fun doTransition (transition : Transition , event : Event ? ) =
228230 Observation .createNotStarted(" stateMachine.transition" , observationRegistry).observe {
229231 if (! transition.isOr) {
230- execute(transition.getActionCommands(createContext(this , event)))
232+ execute(transition.getActionCommands(createContext(activeState !! , event)))
231233 }
232234 }
233235
You can’t perform that action at this time.
0 commit comments