Capturing provisioning txn result

hello,

Can you please let me know how to capture the provisioning transaction result status ? Seeing some provisioning failures (status failed) and need to setup alerts to address them proactively.

In the disable account method (in the rule) that is called from workflow we use provisioner to execute the transaction but execute method doesn’t return anything so i need some help in getting the transaction results. Thanks in advance!

Hi @ramthetribo,

you can use the after provisioning rule. In this rule you have the return plan, where you can see the response and the error (if it exists) of the target system.

1 Like

Hi @ramthetribo,

You can include an additional step in the workflow after the provisioner step to capture errors from the ProvisioningResult. If any errors are detected, an email can be sent to the requested person.

Hi Arun,

Can you please let me know how to get provisioningResult from provisioner.

on the after prov. rule you have the argument plan and result. On those you can find the response.

Thanks, I will try that out.
is there anyways we can capture same info from provisioned instead of after rule

      Provisioner p = new Provisioner(context);

project = p.compile(sampleplan);
Provisioner p = new Provisioner(context);
p.execute(plan);

you can active the logs of connector but the response is in the after rule and you can work on there easily

1 Like

Thanks @enistri_devo
Will try that out and see how it goes.
Thanks for your inputs.

1 Like

@ramthetribo

Check this if this is what you are looking for


ProvisioningProject project = provisioner.getProject();
List plans = null;
if(project!=null){
plans= project.getPlans();
}
String status = "";
Iterator itr = plans.iterator();
while(itr.hasNext()){
ProvisioningPlan plan = itr.next();
List objReqs = plan.getAccountRequests();
for(int m=0;m<objReqs.size();m++){

status = objReqs.get(m).getResult().getStatus();

}
}
1 Like

@ramthetribo

Please mark the solution if this resolved your issue.

I was able to get provisioning status results. Thanks for your inputs @enistri_devo @sathishiam Seems like i can’t mark two posts as solution.