Fixed status mapping and some condition into getoutputparams.