RollbackItemState

EventNames:

  • RollbackItemState_Restrictions

  • RollbackItemState_Pre

  • RollbackItemState_Post

Parameters

Type

Name

Description

Item

item

The item which should get / is reverted for a LifeCycle.

Restrictions and Pre:
In Restrictions and Pre you have the future data set on this object like _NewState and _NewLifeCycleDefinition.

Post:
In POST you can retrieve the old information by the properties _OldState and _OldLifeCycleDefinition.

bool

successful

Post:
The information whether the Web Service call was successful or not is only available in Post events.

Examples:
RollbackItemState_Restrictions:

Register-VaultEvent -EventName RollbackItemState_Restrictions -Action 'RestrictRollbackItemState'

function RestrictRollbackItemState($item) {
	#Write event code here
}

RollbackItemState_Pre:

Register-VaultEvent -EventName RollbackItemState_Pre -Action 'PreRollbackItemState'

function PreRollbackItemState($item) {
	#Write event code here
}

RollbackItemState_Post:

Register-VaultEvent -EventName RollbackItemState_Post -Action 'PostRollbackItemState'

function PostRollbackItemState($item, $successful) {
	#Write event code here
}