Skip to main content

FieldLogs

Viewing the Execution Preview of an Operation Plan

The Execution Preview feature allows you to preview the running of your Operation Plan Definition by triggering mock events and checking the behavior of the Operation Plan.

The Execution Preview can be run on the Operation Plan Definition. You need not create an instance and activate it to perform an Execution Preview.

No actual data is downloaded to perform the Execution Preview.

To run an Execution Preview on an Operation Plan Definition:

  1. On the main menu, go to Planning > Operation Plan > Operation Plan Definition.

    GOP-Define1.png

    The Operation Plan Definition page appears.

    GOP-OPDefPg.png
  2. Select Execution Preview from the options in the Add Counter dropdown of the Operation Plan for which you need to run the Execution Preview.

    OPEP1.png

    The Execution Preview dialog appears.

    OPEP2.png

    By default, the current system date and time are displayed as highlighted above.

    You can change the date and time to simulate a different date and time to preview time-based triggers.

    To change the date and time:

    1. Click Set date to set a date for the Execution Preview. You can select a Timezone and a starting date to simulate the required date. Click Confirm to set the date.

      OPEPSetDate.png
    2. Click Add Time to add hours, minutes and seconds. You can use this option to check Operation Plans that are set to run at a particular time. Click Confirm to add time to the set date.

      OPEPAddTime.png
  3. Click Activate in the General Settings tab of the Operation Plan as shown below.

    OPEPActivate.png

    An active instance is now available for Execution Preview.

    OPEPActivated.png

    This active instance now responds to the following types of Event Triggers:

    • Operation Plan Activated

    • Counter Activated

    • Time-based

    Note

    Activate creates an instance and activates it for the purpose of the current Execution Preview only. The scope of this instance is limited to this window. Once this window is closed, this active instance cannot be accessed again.

  4. To simulate the remaining types of Event Triggers, click New Event.

    OPEPClickNewEvent.png

    The Event dialog appears. Select the Template that is associated with the Event.

    OPEPNewEventDialog.png

    You can select from the following three types of Events:

    • Task Started

    • Task Done

    • Measurement Point

    The above in addition to those mentioned in Step 3 cover all the different types of Event Triggers.

    OPEP-3typesofEvents.png
  5. Click the Event History and Tasks Created to check the events triggered and the corresponding actions performed in the Execution Preview.

    OPEP-EventsHistory.png
    OPEP-TasksCreated.png

You can run JS scripts that automate scenarios for the Execution Preview.

To run a scenario using JS scripts:

  1. Click Run a Scenario.

    OPEP-RunaScenario1.png
  2. Add the JS Script pertaining to the scenario. There are two alternatives to add your scripts:

    1. Enter the JS script directly in the editor.

      OPEP-AddJS.png

      You can use the FieldLogs Keywords functions (Flkw: functions) in the JS Script to access Operation Plan data.

      OPEPRunScenarioFlkw.png
    2. Click Browse to upload a JS file which contains the automation scripts and use Flkw:RunScenario() to run the script.

      In the example below the file BatteryInspectionTestScenarios.js is uploaded and the Flkw:RunScenario() is used to run the script.

      OPEP-RunScenarioScript.png