OutSystems Forge 日本語データベース

Environment Sticker

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2013-12-24 0.9 Paulo Ramos 8.0+ All All Components, Widgets, Libraries, Plug-ins
提供されているウィジェット/ APIを使用して、運用環境以外の環境(Dev、QAなど)を本番環境とは異なる外観または動作にします。 OutSystemsモデルのデータモデルを活用して、実行モードとサーバー名を取得する方法についての小規模な実証実験。
小規模のソフトウェアチームでは、同じチームがプロダクション環境と非プロダクション環境の両方にアクセスすることがあります。このシナリオでは、誰もが誤って重要な消去を行うことなく削除ボタンをクリックしないようにしたいと考えています。 これにより、運用環境以外の環境を変えることができます(たとえば、(Testing Environment)という大きなトップバナーを追加したり、別の方法で動作させることができます(たとえば、運用環境に応じて特定の機能を無効/か否か)。 [使い方] 提供されたWebブロック(EnvironmentSticker_CircleまたはEnvironmentSticker_Name)をレイアウト画面に追加します。それらは開発サーバーに表示されますが、プロダクションでは表示されません。 また、これらのパブリックアクションを参照し、それらの周りに独自のロジック/ UIの変更を作成するだけです。

[Overview]
Use the provided widgets / API to make your non-production environments (e.g. Dev, QA...) look or behave differently from production. Small proof-of-concept on how to tap into the platforms data model to get the running mode and server name.
[Detail]
On small software factories, sometimes the same team has access to both production and non-production environments. On this scenario, you'll want to make sure nobody clicks that critical-erase-stuff-without-undo button in production by mistake (thinking it was QA). With this, you can make your non-production environment look different (let's say, by adding a big top banner saying (Testing Environment), or behave differently (for example, disabling / enabling certain features depending if you're in a production server or not). [How to use] Add the provided web blocks (EnvironmentSticker_Circle or EnvironmentSticker_Name) to your layout screens. They'll be shown in non-prod servers, but hidden in production. Or, just reference these public actions and build your own logic / UI changes around them: Environment_DevelopmentMode (boolean - true for non-prod, false for production environments). Environment_Name (text - returns the configured environment name). [Note] This component's behavior is based on Service Center's configuration: Administration > Environment Configuration: Running Mode Environment Name
戻る