Comments (5)
@hekailiang I'm willing to contribute with a patch for this issue. Since I'm unfamiliar with code at the moment, could you provide any hints for me to get started?
from squirrel.
go head, pass all the unit test
from squirrel.
@hekailiang any hints on where I should start looking?
from squirrel.
@hekailiang Was able to find the problem.
This line here https://github.com/hekailiang/squirrel/blob/master/squirrel-foundation/src/main/java/org/squirrelframework/foundation/fsm/impl/StateImpl.java#L390 can create duplicate transitions in the sub-state.
In the following example from debugger we clearly see two duplicate COLLECTING sub-states:
I'm planning to avoiding duplication of entries here: https://github.com/hekailiang/squirrel/blob/master/squirrel-foundation/src/main/java/org/squirrelframework/foundation/fsm/impl/StateMachineDataImpl.java#L174
&& !parallelStatesStore.containsEntry(parentStateId, subStateId)
Does this seem correct to you? Test suite is passing and this solves my issue.
from squirrel.
Created PR
from squirrel.
Related Issues (20)
- 当callMethod方法找不到时会兜底使用Action.DUMMY_ACTION的考虑
- 请问有使用squirrel实现多个状态机的例子么
- 当 whenMvel 方法执行了不正确格式的 mvel 表达式时,抛出的是 NullPointerException 错误 HOT 1
- Identification mechanism for transitions
- Set id of state machine HOT 3
- 指定的callMethod方法没执行
- CVE-2018-8088
- AbstractStateMachine.canAccept(E event) does not work for events acceptable from parent state
- Event firing has race conditions
- ConcurrentModificationException on event firing
- 为什么没有中文文档呢
- 同学,您这个项目引入了10个开源组件,存在1个漏洞,辛苦升级一下 HOT 1
- [Transition exception] To state same as From state if transition is not defined on defined event
- fire() 执行中,再获取状态机实例的当前状态时会被锁住
- parallel fire event, get exception: The state machine is already terminated. HOT 1
- event 处理并发安全咨询 HOT 1
- Race condition upon the instantiation of declarative state machines
- builder.transitions() not support from(A).to(B).onAmont(E1,E2...)
- 请问下该状态机实例有状态吗?是线程安全的吗?
- when biz code occurs an exception , here will lost StackTrace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squirrel.