- リリース ノート
- 基本情報
- チュートリアル
- オートメーション プロジェクト
- オートメーションの作成
- トラブルシューティング

StudioX user guide
オートメーションのベスト プラクティス
自動化対象の手動プロセスを明確に定義する
オートメーション プロジェクトの設計を開始する前に、自動化する手動プロセスの図を作成し、プロセスを構成する各ステップに分類します。この作業により、プロセスの自動化に必要なアクティビティのシーケンスを特定することができます。
自動化の設計を促進するツールを使用する
- Base new projects on project templates, fully working automation projects for common processes.
- Use common scenarios, reusable pieces of automation for common tasks, to add multiple activities at once.
- Use the App/Web Recorder to automatically generate UI automation activities from the actions you perform on screen.
使用すべき適切なアクティビティを特定する
Use the dedicated activities when working with Excel, Mail, Word, and PowerPoint data, and when performing file and folder operations. For interactions with all other applications, use UI automation activities.
オートメーション プロジェクト全体でわかりやすい名前を使用する
各コンポーネントに、その目的がわかる名前を付けることで識別が容易になります。この方法は、同じ種類のコンポーネントを複数回使用する場合に、特に有効です。コンポーネント名としては、プロジェクト名、アクティビティ名、プロジェクトに追加されたリソース (Excel ファイルや PowerPoint ファイル、メール アカウント) の [参照名] の名前、[繰り返し (コレクションの各要素)] アクティビティ内の繰り返しにおける現在の項目の名前 (既定は CurrentRow、CurrentMail、CurrentFile)、この後オートメーションで使用するために保存しておく値の名前があります。
オートメーション プロジェクトを文書化する
プロジェクト内のアクティビティについて、それらのアクティビティの機能を説明する注釈を追加してドキュメント化します。これは、他のユーザーとオートメーション プロジェクトを共有するときに特に重要です。他のユーザーがオートメーション プロジェクトの仕組みを理解するための助けとなるからです。アクティビティに注釈を付けるには、アクティビティを右クリックして、[注釈] > [注釈を追加] を選択します。
設計中にオートメーションを頻繁に分析および実行する
- Analyze your project by running the Workflow Analyzer. This checks for errors in how activities are configured and verifies that the project follows design guidelines defined through Workflow Analyzer rules. Click Analyze in the StudioX ribbon and view the results of the analysis in the Error List panel. For more information, see About Workflow Analyzer.
- プロジェクトを実行し、得られた結果が期待どおりであるかを確認します。オートメーションの実行を繰り返すほど、潜在的な問題点の特定が容易になります。
- プロジェクト実行時にエラーが発生した場合は、エラー メッセージに注目します。メッセージには、エラーの原因や修正方法に関する有用な情報が含まれている可能性があります。エラーが発生したアクティビティのリトライ、その次のアクティビティまたは項目へのスキップ、実行の停止など、エラー ダイアログで提示される方法を試してみます。
オートメーションの一部のみを実行し、潜在的なエラーを特定する
- プロジェクト内の特定の個所で実行を停止または開始します。任意のアクティビティを右クリックして、以下を選択します。
- このアクティビティまで実行 - プロジェクト内のこのアクティビティまでのアクティビティをすべて実行します。
- [このアクティビティから実行] - プロジェクト内のこのアクティビティ以降のアクティビティをすべて実行します。
- エラーを発生させる可能性があるアクティビティを個別に無効化して、それらを除外した状態でプロジェクトを実行します。アクティビティを無効化するには、そのアクティビティを右クリックして [アクティビティを無効化] を選択します。無効化されたアクティビティは淡色表示となり、プロジェクト ダイアグラム内では[コメント アウト] コンテナーで囲まれます。無効化したアクティビティを再度有効化するには、[コメント アウト] コンテナーを右クリックして、[アクティビティを有効化] を選択します
オートメーションの重要なポイントでメッセージを生成する
ワークフローの特定の個所にメッセージを配置しておくと、プロジェクトの進行状況を容易に確認することができ、他のアクティビティの結果に関する情報も得られます。メッセージの表示には、次のようなアクティビティを使用できます。
- Write Line displays messages in the Output panel without interrupting the execution of the project. For example, when repeating activities for each row in an Excel file, add a Write Line activity as the first activity inside For Each Excel Row and configure it to display a message that includes the contents of a cell from each row. You can indicate the cell by selecting the column from the CurrentRow option in the
menu available in the Text Builder. Generating a message whenever the automation begins processing a row allows you to check whether the rows are processed as expected. - Message Box displays a dialog box with a message, pausing the execution of the automation project until a button is clicked in the dialog box. For example, after the last of the activities that manipulate data in a Word file, add a Message Box activity that displays the message "The Word document has been processed". This gives you confirmation that the Word activities completed and the automation can move to the next activities.
プロジェクトの設計が完了したら、これらのアクティビティを、パブリッシュする前に削除します。
機密情報を保護する
- Do not add credentials directly to your projects. Use the Get Username/Password activity that enables you to add credentials to your project and store them securely in the Windows Credential Manager.
- 機密データを含むファイルをプロジェクト フォルダーに保存しないでください。他のユーザーとオートメーションを共有する予定がある場合には、特に注意してください。既定では、オートメーションをパブリッシュすると、パッケージにはプロジェクト フォルダー内のすべてのファイルが含まれます。