Workflow for Setting up the Environment for Public API to Customize Analyses

You can customize the analyses using customized scripts as per the requirement. The following scenarios are available in a video attached with this Knowledge Base article Workflow for setting up the environment for PublicAPI, developing a script, deploying it on the server, and using it in an FMEA Template.

This task shows you how to:

Develop Scripts with Public API

As a Leader, you can develop scripts from scratch or from existing scripts.

The following scenario shows how to start to develop a script from script files available in the PublicAPIExample.zip file. This file can be downloaded from the Knowledge Base article.

  1. Unzip the PublicAPIExample.zip file.
    A folder containing interfaces, scripts, and CSS appears in the Windows Explorer.
  2. In a code editor that can compile TypeScript, you can start from the script files available in the PublicAPIExample.zip file and modify the scripts for your needs using the Public API. For more information, see the attached video and Customizing Operations with Scripting API.
  3. Compile the scripts into JavaScript. For more information, see About Script Creation.
    For each script, a .js file is created.
  4. Ask an Administrator to deploy the JavaScript scripts on the server.

Deploy Scripts on the Server

As an Administrator, you can deploy compiled scripts on the server.

The following scenario shows how to create a document that contains a script.

  1. In the Document Management app, create a document. For more information, see Deploying Modules.
  2. Drop a script per document.

Define Templates with Scripts

As a Leader, you can define templates using customized scripts. The following scenario shows how to refer to scripts in templates.

  1. In Failure Modes Effects Analysis, create a template.
  2. Drop the documents created using the Document Management app in the Template Documents field of the Template Editor.

Result:

Any user can now create a customized analysis from this template.