on 02-06-2012 10:19 PM
Hello, Experts!
Does anyone know of a good tutorial or example for using the switch task in an IDM workflow?
Thanks,
Matt
Hi Matt,
just have a look at the Help of your Identity Center. Do Search for "Switch Task" and you will find a quite good documentation. Its not that difficult.
A switch task has a number of case nodes that can be used to control task execution.
To create a switch task:
Select the provisioning folder or task group where you want to add the task.
Choose New/Switch task.
The task is included in the console tree.
To view the properties of the task, select the task in the console tree.
Add as many case nodes as needed to cover the different values returned from the test specified with "Condition" on the "Options" tab. The result of the query or stored procedure is compared to the names of the case nodes. If a matching node is found, the tasks below this node are executed. If no node matches the result of the condition, the tasks under the "Else" node are executed, if such a node is defined
Configuring the options of a switch task
Related topics
When you configure a switch task, you use the "Options" tab to configure the options of the switch task.
Select the task in the console tree.
Select the "Options" tab in the details pane.
The fields contain the following information:
Enabled
Task ID/Name
UI task
Public task
General
Task type
Repository
Execute task on initialize
Delay before start
Wait for event tasks
Use inactive entries
Use context variables
Conditions
Database query
Stored procedure
SQL query
Change the parameters and choose "Apply" to have the changes take immediate effect, or select another tab to change other parameters.
Conditions
A switch task controls the task flow by evaluating the result of a stored procedure or an SQL query. The case node matching the result of the query or stored procedure will be executed. If no node matches the result, the Else node will be executed, if it exists.
Stored procedure
You can use a stored procedure in the database that returns a value that will be compared to the case nodes. Select "Stored procedure" and select a stored procedure in the list that appears. This list contains all stored procedures with a prefix mxpt_ defined in the Identity Center database. The stored procedure receives MSKEY, Repository ID and Task ID as parameters. It returns a string that is compared to the defined case nodes. The database user that is used by the runtime engine (normally mxmc_rt) must have access to the stored procedure.
SQL query
You can use an SQL query to return a value that will be used to select the corresponding case node. Select "SQL query" and enter an SQL query in the field. The query must use the Identity Center database, and the database user that is used by the runtime engine must have access to it. You can use the variables %MSKEY%, %REPID%, %AUDITID% or %TASKID% which will be replaced by the current MSKEY and Repository ID when the query is executed. You can also use global constants in the query.
The query must be in the form:
SELECT <column> FROM <view> WHERE <expression>
The SQL query must return a string that can be compared to the case nodes.
If the condition reads values from the identity store, it is recommended to use one of the views installed with the product.
For instance:
SELECT avalue FROM idmv_value_basic WHERE attrname='MX_LOCATION' AND is_id = 1 AND mskey=%MSKEY%
You can use the SQL query builder to create the SQL query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.