Implement constraint for transitions
papa-stiflera opened this issue · comments
Scott Tiger commented
Implement constraint for transitions as in version for Yii1.
raoul commented
Status constraint are not available anymore as PHP code declared in the workflow definition. They should now be implemented as event handler attached to a beforeEnterStatus event. If the constraint is not satisfied, it must invalidate the event so to block the transition.
I will write a chapter on this in the Guide soon....
raoul commented
check this chapter for details on how to implement status constraints...