Sentence:  Refugees poured in , <WSD>signing</WSD> the Confession and rules in order to remain , and then disregarding them . 
Meaning of the word marked with <WSD> tags:  be engaged by a written agreement