ProvisioningResult in different situations

Hi All,

After running provisioner.execute(plan). I have one query.

In what scenarios provisioningResult will be shown at AccountRequest level.
and In what scenarios ProvisioningResult will be showing ProvisioningPlan level.

I am curious to know more insights. Please help me.

Regards,
Ravi.

Hi @kolipakularaviturnkey

ProvisioningResult can be stored anywhere in ProvisioningPlan, AccountRequest or AttributeRequest. It depends on how connector code is handling.

1 Like

Hi @kolipakularaviturnkey ,

Before executing the plan, compile it first. Once you compile the plan, you will obtain the project. From the project, you can then get the provisioning Plan and result.

Provisioner provisioner = new Provisioner(context);
 provisioner.compile(plan);
 provisioner.execute();
 ProvisioningProject newProject = provisioner.getProject() ;
 List listProvisioningPlan = newProject.getPlans();
List allProvisioningResult = new ArrayList();
for(ProvisioningPlan provisioningPlan: listProvisioningPlan){
ProvisioningResult provisioningResult = provisioningPlan.getResult();
if(null != provisioningResult)
allProvisioningResult.add(provisioningResult);
}

1 Like

@kolipakularaviturnkey IN which scenerios result store where so at plan level it will show overall kind of provisioning result, for specific account request u can see in account request.
Note : It may be change as per Connector to connector , as sometime in after provisioning rule u will get result as VOID. So better to check both the place and if you want to more specific then check on account request level

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