public final class ChangeType extends UpdateActionImpl<State>
See also StateUpdateCommand.
withUpdateableState(client(), builder -> builder.type(StateType.REVIEW_STATE), state -> { final StateType newStateType = StateType.ORDER_STATE; final State updatedState = client().executeBlocking(StateUpdateCommand.of(state, ChangeType.of(newStateType))); assertThat(updatedState.getType()).isEqualTo(newStateType); return updatedState; });
See the test code.
Modifier and Type | Method and Description |
---|---|
StateType |
getType() |
static ChangeType |
of(StateType type) |
getAction
public static ChangeType of(StateType type)
public StateType getType()