use of org.camunda.bpm.engine.impl.persistence.entity.PropertyManager in project camunda-bpm-platform by camunda.
the class DeletePropertyCmd method execute.
public Object execute(CommandContext commandContext) {
final PropertyManager propertyManager = commandContext.getPropertyManager();
PropertyEntity propertyEntity = propertyManager.findPropertyById(name);
if (propertyEntity != null) {
propertyManager.delete(propertyEntity);
}
return null;
}
use of org.camunda.bpm.engine.impl.persistence.entity.PropertyManager in project camunda-bpm-platform by camunda.
the class SetPropertyCmd method execute.
public Object execute(CommandContext commandContext) {
final PropertyManager propertyManager = commandContext.getPropertyManager();
PropertyEntity property = propertyManager.findPropertyById(name);
if (property != null) {
// update
property.setValue(value);
} else {
// create
property = new PropertyEntity(name, value);
propertyManager.insert(property);
}
return null;
}
Aggregations