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.
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);
}
@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