How to remove relationship rule through SDK?
I have tried two ways to solve the problem like this:
the first one is:
row.setValue(ProgramConstants.ATT_RELATIONSHIPS_RULE, null);
the second one is:
Map map =new HashMap();
map.put(ProgramConstants.ATT_RELATIONSHIPS_RULE_AFFECTEDOBJECT, null);
map.put(ProgramConstants.ATT_RELATIONSHIPS_RULE_AFFECTEDOBJECTSTATUS, null);
map.put(ProgramConstants.ATT_RELATIONSHIPS_RULE_CONTROLOBJECT, null);
map.put(ProgramConstants.ATT_RELATIONSHIPS_RULE_CONTROLOBJECTSTATUS, null);
row.setValue(ProgramConstants.ATT_RELATIONSHIPS_RULE, map);
but above two ways, they didn't work.
so now I using remove row, and adding back to clean this field.
Is there any function to remove rule through SDK?