Run task in after operation rule webservice connector?

Which IIQ version are you inquiring about?

Version 8.X

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

Hi Team,

As part of the requirement, We need to run aggregation through an after operation rule with setting some parameters. What are the options to achieve this?

Any best practices to achieve this?

Thanks

Hi @massinissa, here you are the link for how you can run a task from Rule or Workflow:

Let us know if you have any further inquiries or assistance.

Regards,
Muhammad

It would be great if you could be more elavorative in your usecase - there might be simpler ways to achieve what you want then via aggregation.

Hi @kjakubiak

after adding an entitlement using POST method I want to aggregate the new generated data from the target application for the current account only for a specific attribute

Thanks

Hi @massinissa ,

You can run single account aggregation from the after operation rule using Aggregating a single account from an application - Compass .

Thanks,
Kavindar Sharma

1 Like

hello ,

i tried it but still getting java.lang.NullPointerException: Null Pointer on ressource object

String applicationName = "webapp";
String accountid = "XXX";       
Application appObject = context.getObjectByName(Application.class, applicationName);
String appConnName = appObject.getConnector();
Connector appConnector = ConnectorFactory.getConnector(appObject, null);
ResourceObject  rObj = (ResourceObject) appConnector.getObject("account", accountid, null);

NB : i checked that the account exists in IIQ with the correct account id

Hi @massinissa,

By running the task, it will invoke the ‘Get Object’ on your WebServiceConnector and checks the target application for the account. Please can you double check the API actually contains this account, as well as your ‘Get Object’ returning it correctly.

Kind Regards,

1 Like

Hi @kyle1 ,

i checked and found an issue in ‘Get Object’ , now it’s fixed , thanks for your help, the the API contains this account, as well as ‘Get Object’ returns it correctly.

i get "sailpoint.connector.ConnectorException: Identity attribute [accid]

NB : to correlate accounts to identity there is a correlation rule where accid is splitted to get the identityName

Hi @massinissa,

Glad to hear I could help.
Just making sure - You have returned this ‘accid’ correctly in the reponse mapping of the ‘Get Object’, similar to how you have configured the ‘Account Aggregation’?
Otherwise, your next nightmare would be to place a few loggers in the CorrelationRule to ensure it is behaving as expected :slight_smile:

i have configured get bject similar to the Account Aggregation
CorrelationRule works with aggregation task , but still getitng the same error on get object

i will try to investigate

Hi @massinissa,

I have very little faith that the CorrelationRule will even be invoked after the ‘Add Entitlement’ operation executes unfortunately.
I have an idea you could try, but it’s not the cleanest, so I will see if anyone else has any ideas, or if you managed to crack it.

Kind Regards,

Hi @kyle1 ,

yes , if u have any other ideas fell free to share it ,
i was thinking may be to call directly the aggregation task ?

Best Regards,

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.