CommitChangeOrder
EventNames:
CommitChangeOrder_Restrictions
CommitChangeOrder_Pre
CommitChangeOrder_Post
Parameters
Type |
Name |
Description |
---|---|---|
changeOrder |
The changeOrder which should get / is commited. |
|
files |
The Files to be tracked by the Change Order. |
|
items |
The Items to be tracked by the Change Order. |
|
attachments |
Files to be attached to the Change Order. |
|
comments |
Multiple comments for the ChangeOrder including there attached files. |
|
routingUsers |
All the users with the associated routing roles for this Change Order. |
|
emails |
Multiple emails to send out upon completion. |
|
bool |
successful |
Post: |
Unexpected Behaviour
CommitChangeOrder event is raised when clicking in the Change Order dialog on Save. Afterwards it fires EditChangeOrder.
The argument files contains only the files that are directly linked to the ChangeOrder, and not the primary-links of the linked Items!
The argument emails only contains the emails of the current commit, and not the once added before!
The argument comments contains the current comments and the newly added comments.
A negative Id value is returned in Pre events and even the values for all other properties except Subject (CO)
, Message
and Attachments
can only be retrieved in in Post events.
Examples:
CommitChangeOrder_Restrictions:
Register-VaultEvent -EventName CommitChangeOrder_Restrictions -Action 'RestrictCommitChangeOrder'
function RestrictCommitChangeOrder($changeOrder, $files, $items, $attachments, $comments, $routingUsers, $emails) {
#Write event code here
}
CommitChangeOrder_Pre:
Register-VaultEvent -EventName CommitChangeOrder_Pre -Action 'PreCommitChangeOrder'
function PreCommitChangeOrder($changeOrder, $files, $items, $attachments, $comments, $routingUsers, $emails) {
#Write event code here
}
CommitChangeOrder_Post:
Register-VaultEvent -EventName CommitChangeOrder_Post -Action 'PostCommitChangeOrder'
function PostCommitChangeOrder($changeOrder, $files, $items, $attachments, $comments, $routingUsers, $emails, $successful) {
#Write event code here
}