|
@@ -155,7 +155,7 @@ public class RuleInstanceService extends GenericReactiveCrudService<RuleInstance
|
|
|
this.findById(instance.getId())
|
|
this.findById(instance.getId())
|
|
|
.flatMap(oldInstance->{
|
|
.flatMap(oldInstance->{
|
|
|
if(ObjectUtil.equal(instance.getModelMeta(),oldInstance.getModelMeta())){
|
|
if(ObjectUtil.equal(instance.getModelMeta(),oldInstance.getModelMeta())){
|
|
|
- return this.update(instance);
|
|
|
|
|
|
|
+ return this.updateById(instance.getId(),instance).then();
|
|
|
}else {
|
|
}else {
|
|
|
instance.setState(oldInstance.getState());
|
|
instance.setState(oldInstance.getState());
|
|
|
RuleModel model = instance.toRule(modelParser);
|
|
RuleModel model = instance.toRule(modelParser);
|