Dear walid
It is a little bit confusing. when there is no Mains power your cicuit will go off.
maybe you use a battery, when there is power, your citcuit wil use the power from 12V rail, and also charges the battery. and when ther is no 220V, your circuit will use the Battery power.
HTH -Shahriar