generate Set Lifecycle
fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<Obligation.State<P>>>, lifecycle: Obligation.Lifecycle, notary: Party)
Generate a transaction changing the lifecycle of one or more state objects.
Parameters
states And Refs
a list of state objects, which MUST all have the same issuance definition. This avoids potential complications arising from different deadlines applying to different states.