USP_RECORDOPERATION_QUEUEPROCESSDELETE
Executes the "Queue Process Delete" record operation.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | Input parameter indicating the ID of the record being deleted. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the delete. |
Definition
Copy
CREATE procedure dbo.USP_RECORDOPERATION_QUEUEPROCESSDELETE(@ID uniqueidentifier, @CHANGEAGENTID uniqueidentifier)
with execute as caller
as
set nocount on;
begin try
exec dbo.USP_BUSINESSPROCESS_PARAMETERSETCANBEDELETED 'QUEUEPROCESSSTATUS', @ID;
exec dbo.[USP_QUEUEPROCESS_VALIDATEQUEUEPROCESSDELETE] @ID;
exec dbo.USP_BUSINESSPROCESSINSTANCE_DELETE '1b4480fc-b7ab-4edb-a0bf-c897eded1f58', @ID, @CHANGEAGENTID;
exec dbo.USP_QUEUEPROCESS_DELETEBYID_WITHCHANGEAGENTID @ID, @CHANGEAGENTID;
return 0;
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch