If I don't pass any of the defined properties, the system spits out an exception stating "form property ..... is required". This is good. My issue is if I pass in any additional value as a form property like 'address', activiti accepts it and saves it.
Is it possible for me to tell activiti to accept only the two properties that are defined and throw an exception if any additional properties are sent in? If there is no straightforward solution to it, what is best way for me handle/validate this?
I think it would be possible for you to write code that would retrieve the extension elements and then validate that the variables are only for these elements (assuming you do have to look these up at runtime and have to get them from the definition). There is code which looks up elements in this way in this post - How to get a custom properties from UserTask