Question: Is there a way to know if a transaction can be applied?
poteirard opened this issue · comments
Gerard Brull commented
Hi,
First of all thanks for your work. I wanted to know if there's a way to know if a transaction can be applied? Something like transactionCanBeApplied()
?
Krasimir Tsonev commented
Right now no but that's a good feature request. I'll implement it. Stay tuned.
Krasimir Tsonev commented
The new 5.1.0
version supports is<action name>Allowed()
method. For example:
{
'idle': {
'please run': 'running'
},
'running': {
'stop please': 'idle'
}
}
The machine has:
machine.isPleaseRunAllowed();
machine.isStopPleaseAllowed();
Even tho now this is possible can you please give some more context. I have the feeling that the usage of these helper methods may be avoided.