This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit 5a6b895661b5188a0bce3fce6fc2ed17ae66fed1 Author: Alex Heneveld <[email protected]> AuthorDate: Wed Apr 21 15:13:25 2021 +0100 add example for constraint --- docs/basic-with-constraint.bom | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/basic-with-constraint.bom b/docs/basic-with-constraint.bom new file mode 100644 index 0000000..08ed2c6 --- /dev/null +++ b/docs/basic-with-constraint.bom @@ -0,0 +1,30 @@ + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +brooklyn.catalog: + id: basic-with-constraint + version: 1.0.0-SNAPSHOT + itemType: entity + item: + type: org.apache.brooklyn.entity.stock.BasicEntity + brooklyn.parameters: + - name: post_code + - name: zip_code + constraints: + - forbiddenIf: post_code +
