Hi Melvin,
From where are you calling this method? Ruleset with custom activity? If from ruleset, use the activity PARAMETER_CHANGE_NEW.
Also, are you building sequence numbers explicitly?
Let me know how you build your parameters and from where and how are you trying to updating the parameters.
Thanks,
Vishnu