com.r3corda.contracts.asset / Obligation / Clauses / SetLifecycle

# SetLifecycle

`class SetLifecycle<P> : GroupClause<State<P>, Issued<Terms<P>>>`

Obligation-specific clause for changing the lifecycle of one or more states.

### Constructors

<init> | `SetLifecycle()` Obligation-specific clause for changing the lifecycle of one or more states.

### Properties

ifMatched | `val ifMatched: MatchBehaviour` Behaviour if this clause is not matches
ifNotMatched | `val ifNotMatched: MatchBehaviour` Behaviour if this clause is matched
requiredCommands | `val requiredCommands: Set<Class<out CommandData>>` Classes for commands which must ALL be present in transaction for this clause to be triggered

### Functions

verify | `fun verify(tx: TransactionForContract, inputs: List<State<P>>, outputs: List<State<P>>, commands: Collection<AuthenticatedObject<CommandData>>, token: Issued<Terms<P>>): Set<CommandData>`