When configuring transitions or events security, comparisonType is not working.
AFAIK, to configure transition or event security, we can use withSecurity, which instantiates DefaultSecurityConfigurer by default, defined in StateMachineConfigurationBuilder.
Also, event or transition method defined in DefaultSecurityConfigurer provides comparisonType parameter to decide securing methodology: ALL, ANY, MAJORITY.
However, There is no specifying comparisonType to SecurityRule in event or transition configuration method.
...
@Override
public SecurityConfigurer<S, E> event(String attributes, ComparisonType match) {
if (eventSecurityRule == null) {
eventSecurityRule = new SecurityRule();
}
eventSecurityRule.setAttributes(SecurityRule.commaDelimitedListToSecurityAttributes(attributes));
return this;
}
...
And, comparisonType in SecurityRule is specified ANY type by default, so it is always working as ANY type
When configuring transitions or events security, comparisonType is not working.
AFAIK, to configure transition or event security, we can use
withSecurity
, which instantiatesDefaultSecurityConfigurer
by default, defined inStateMachineConfigurationBuilder
.Also,
event
ortransition
method defined inDefaultSecurityConfigurer
providescomparisonType
parameter to decide securing methodology:ALL
,ANY
,MAJORITY
.However, There is no specifying
comparisonType
toSecurityRule
inevent
ortransition
configuration method.And, comparisonType in
SecurityRule
is specifiedANY
type by default, so it is always working asANY
typeThanks