For users comfortable with SQL, it is possible to harness the power of the Provisioning Service to perform simple or complex bulk operations in WorkSite for one-off or repeated jobs. These custom operations can then be made available to Milan users either through the Ad Hoc Operations tab in Report Center or the Scheduled Operations button on the Provisioning Service tab in Service Center.
To create your own custom Provisioning Service jobs, you must:
For detailed information on how to create a custom operation script, refer to Creating Provisioning Jobs Through the SQL API.
To create a stored procedure in the Milan database:
The following code can be used as a template for creating new stored procedures.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Comments section for script details, description, etc.
-- =============================================
CREATE PROCEDURE <Procedure_Name, sysname, ProcedureName>
-- Define parameters for the stored procedure here
<@Param1, sysname, @p1> <Datatype_For_Param1, , int> = <Default_Value_For_Param1, , 0>,
<@Param2, sysname, @p2> <Datatype_For_Param2, , int> = <Default_Value_For_Param2, , 0>
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT <@Param1, sysname, @p1>, <@Param2, sysname, @p2>
END
GO
To configure the web client dialog for a custom operation:
Attribute | Description |
---|---|
name | The name of the parameter in the stored procedure |
description | The label to be displayed next to the control in the custom operation dialog |
type | The type of control to display; valid values include textfield, checkbox, radio, combo, superselectbox (multi-select combo box,), datefield, numberfield, and button |
attrId | The name of an imProfile field to map to the control; this attribute should only be set with the superselectbox type |
isCriterion | In order for the control to be visible in any dialog, this attribute must be set to true. |
Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
name | The name of the operation | ||||||||
op | The name of the stored procedure to associate with the dialog | ||||||||
title | The text displayed in the title bar of the dialog | ||||||||
buttonTitle | The text displayed in either the Adhoc Operations or Scheduled Operations list | ||||||||
handler | A unique handler name for the operation; the value must be in the format "showService('name')", where name is the value of the name attribute listed above | ||||||||
jobtype |
|