Run Rule with Dynamic Inputs

Which IIQ version are you inquiring about?

8.5

Share all details about your problem, including any error messages you may have received.

I have a rule in which I add the identityName in the rule directly to process the users. I want this rule to be utilized by the Support team, What are the suggestions to implement this. If anyone have done this kind of usecase, Please let me know.

Hi @Jadhikary ,

Use customized run rule task to pass the argument to the rule.

Thank you,

Harikrishna

Hi @Jadhikary ,

Instead of hard‑coding identity names in a rule, we can use a generic rule executed via the Run Rule task, where input values are passed using TaskDefinition arguments, enabling the Support team independently run the task.

Please refer the Run Rule Task Reference

You can use the argument om the Rule. Perform below steps:

  1. Create a new task of type Run Rule.
  2. Fill the details of the Task. Choose the Rule that you want to run.
  3. In the rule Config you can add the argument in the format below:
    1. identityName,<yourusername>
      
  4. in the rule , make the changes to take the value from config.
if (null != config){
	identityName = (String) config.get("identityName");
  }else{
	  messages.add(new Message(Message.Type.Error, " Please provide the valid identityName. " + identityName));
	  taskResult.addMessages(messages);
	  return "Identity Name is Empty. Please provie the valid identityName";
  }

You can use any number of input in the task parameter section.

@Jadhikary It depends on who is going to execute the rule. If it your IIQ/IAM Support team who will have admin access, then using a rule runner is a better option where already have access to Task Management page. In case some other team is going to use, create a quicklink based form is better where you can restrict who can access the quicklink, once they submit you can trigger the rule in the workflow itself.

Note: Found a fix?Help the community by marking the comment as solution. Feel free to react(:heart:,:+1:, etc.)with an emoji to show your appreciation or message me directly if your problem requires a deeper dive.

Hi @Jadhikary ,

Run rule task can be used by Support team where they can select Identity, which would be passed to Rule