Can I write a rule that does not change the state, but only the data inside?
When I write a rule like this, it is getting disabled on the browser interface.
Imagine a scenario in 'too many bananas' problem. If we want to include a possibility that while carrying bananas home, a person may drop few of them in the middle of the road.
Can I do this?
rule DropBananas for state in roommates {
Hungry{}
var dropped : 0..bag.carrying = urandomRange(0, bag.carrying);
state = ReturningFromStore{carrying : bag.carrying - dropped};
}
}