UFN_BUSINESSPROCESS_TASKREFERENCES
Returns a table of task IDs that reference the given business process.
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@BUSINESSPROCESSID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_BUSINESSPROCESS_TASKREFERENCES
(
@BUSINESSPROCESSID uniqueidentifier
)
returns @TABLE table
(
TASKID uniqueidentifier
)
with execute as caller
as
begin
-- find pages with page actions that use this data form instance
with xmlnamespaces ('bb_appfx_task' as tns, 'bb_appfx_commontypes' as common)
insert into @TABLE
select T.ID
from dbo.TASKCATALOG as T
where T.TASKSPECXML.value('(tns:TaskSpec/common:StartBusinessProcess/@BusinessProcessID)[1]', 'uniqueidentifier') = @BUSINESSPROCESSID;
return;
end;