# Custom Tasks can be a powerful way to extend Sailpoint's functionality to perform certain actions that can't be achieved using default tasks or OOTB configurations.
# Custom tasks speeds up the process if the code is written accurately.
Steps to build custom task :
1. Create a task definition
2. Create java class to define the method for custom task
3. Deploy the custom task and execute it
1. Create a task definition
e.g :
Below information is Task Definition :
The task definition with required parameters (I/P and O/P) needs to be created first, which is required for the custom class java method which executes in background.
Login to Debug page, navigate to Object browser ---> select Task definition ---> select appropriate task
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE TaskDefinition PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<TaskDefinition executor="sailpoint.task.MultiAggregation" name="CustomMultiAggregation"
progressInterval="5000" progressMode="String" template="true" resultAction="Delete" type="Generic">
<Description>Task template for application group scanning</Description>
<Signature>
<Inputs>
<Argument name="application" required="true" type="Application">
<Prompt>Search Application</Prompt>
</Argument>
</Inputs>
<Returns>
<Argument name="output" type="String">
<Prompt>Result</Prompt>
</Argument>
</Returns>
</Signature>
</TaskDefinition>
Task Definition Object - Explanation :
# TaskDefinition executor ="sailpoint.custom.MutliAggregation" this defines the name of the class which will be execute the task>
# template="true" - template="true" is set to get the TaskDefinition listed in “New Task” List
# <Argument name="application" required="true" type="Application"> this defines the I/P parameter of the task. the custom java code MultiAggregation will take I/P parameters as "application" variable. The type="Application" will create a drop down for application. similarly you can have a type text for simple text I/P.
# <Prompt>Search Application</Prompt> this defines the text which will be displayed in UI to the user.
# <Returns> <Argument name = "output" type="String"> this defines the output parameter, in the custom java code all output result will be passed to this output string.
No comments:
Post a Comment