spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.54k stars 604 forks source link

How to use spring-statemachine with long type machineId. #952

Closed bestbugwriter closed 3 years ago

bestbugwriter commented 3 years ago

I found that spring-statemachine id use String type, How can I use long type?

jvalkeal commented 3 years ago

I suppose you need to do conversion yourself as there's not going to be a generic Object support for id. It's a most convenient type for that particular use case.