RollbackItemState
EventNames:
RollbackItemState_Restrictions
RollbackItemState_Pre
RollbackItemState_Post
Parameters
Type |
Name |
Description |
---|---|---|
item |
The item which should get / is reverted for a LifeCycle. |
|
bool |
successful |
Post: |
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
}