For the purpose of testing, I've just done the following:
1) Added this line to the Commands Interface:
class Amend: TypeOnlyCommandData(), Commands
2) Added the Amend() clause as a parameter to the AnyComposition(), in the GroupClauseVerifier
3) Uncommented the Amend Clause
Just after that, I've tried to create a purchase order, as I did before these changes, and then I got these message:
java.lang.IllegalStateException: Required com.example.contract.PurchaseOrderContract.Commands.Amend command
Is there some other change that I need to do in order to the "purchase-order" flow work as before?
PS. I tried changing the
verifyClause call too, from
AnyComposition, but without success.