For mobile Application, I have customized the NEW harness based on the requirement, In done button, I am calling one activity if that activity runs without any errors I have to create a case (I am using "Add New Work")
if that activity returns errors I have ( in New Harness) to show errors.
I am setting property when on Add New Work but it is not working .any one please help me with this.
Requirements: On the case type New harness submit button we have to call activity based on inputs it will give results. if the activity didn't throw any error we have to create a case.
For your current configuration to work, you need to ensure that the Message property holds "" value in the DOM when you invoke Add New Work. This cannot be necessarily ensured through the event/action model you have right now. In your case, Add New Work action is not going to wait for the Message property to be updated first before it actually decides on whether to run or not.
Take a look at this video, you seem to be suffering from a similar problem described here(even though your scenario does not involve use of a when rule) -