ObligationUtils.generateSetLifecycle - corda

corda / net.corda.finance.workflows.asset / ObligationUtils / generateSetLifecycle

# generateSetLifecycle

`@JvmStatic fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<State<P>>>, lifecycle: Lifecycle, notary: Party): Unit`

Generate a transaction changing the lifecycle of one or more state objects.

### Parameters

`statesAndRefs` - 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.