Skip to main content

K-A End User Help

User Tasks

User tasks is a much more powerful means of adding functionalities to K-A. Unlike functions, user tasks require software development knowledge but can use any available information from K-A and can create not only output channels but take a variety of actions like compiling custom plots, creating files, loading data to the files etc.

The principle of working with the User Tasks like with Functions is to first define a user task in the Automation mode and then create as many user tasks instances as necessary for any well or group of wells in PDG mode.

User Tasks fall under the two categories:

  • Built-in user tasks

  • Custom user tasks

Creating a User Task Instance

After a user task is created in the Automation mode, any number of User Task's instances can be created for any well or group of wells.

Creating a Single User Task Instance

  1. Switch to PDG mode.

  2. Select the field.

  3. Select the well in the field hierarchy.

  4. Click on User Task, inl_usrtsk_icon.png, in the toolbar at the top.

    dlg_create_usrtask_instance.png
  5. Select the user task from the User task definition drop down list. The list will display all the available user tasks.

    Tip

    Once selected, hover the cursor over the Info icon, inl_info_icon.png, to read the user task description.

    see_usrtask_info.png

    The dialog will be refreshed with the different input and output parameters and other settings related to the selected user task.

  6. Rename the user task instance if needed.

  7. If necessary, edit the default input parameters. To redefine the data channels, use the drop down list or browse through the channels in the well.

    Important

    Inputs section contains a list of channels in the well having the data type that was defined when a user task was created in Automation mode. If no label was set the reference channel is selected by default. If a label(s) was added, the drop down list contains only the channels with the label(s) attached.. If there are no data of the necessary type in the well you will see No match found and the instance cannot be created (Create button is not active).

    Note

    If an input parameter is optional it can either be empty or have some default value. If it is not empty or you have set some value/selected some item from a list but finally decided not to use this optional parameter in the calculations, clear the input by clicking on inl_clear_selection.png.

    Tip

    Data types and other input attributes can be edited from the user task instance dialog. For this click on inl_labels.png to activate the dropdown list of attributes and edit it.

    If the list of available channels is big it is possible to reduce the choice of the channels by introducing label(s) aprior.

    User_task_data_types.png
  8. Optional. In the Output section, add/remove or edit any labels which may have been assigned to the output channels.

  9. Optional. For user tasks with output channels, the output can be previewed using Show preview.

  10. Optional. For job settings:

    • Modify the timeout if needed.

    • Adjust the trigger mode:

      • Automatic (default)

      • Semi-auto (runs when created, then waits for user update)

      • Manual (requires manual start)

    2_Job_settings.png
  11. Click on Create.

    Note

    User task instances are listed under a dedicated User tasks folder under the well in the field hierarchy.

  1. Switch to PDG mode.

  2. Select the field.

  3. In the field/well group node click on Create User task with aggregator, inl__batch_creation.png, under the Info tab:

    Batch_creation_user_task_2.png
  4. Select the wells for which the user task instance is to be created.

    Batch_creation_user_task.png
  5. The remaining procedure is similar to the one explained above, with the following exception:

    Important

    In batch creation it is not possible to set the input data channels for each well individually; the reference channels of the corresponding data type will be used automatically or it is possible to define labels under for each channel.

  6. Click on Create.

Add a new well to an aggregator

A new well can be added to an existing aggregator, with the limitation that only wells may be added; other existing inputs in the aggregator cannot be modified. To proceed:

  1. Under the relevant field or well group, click the aggregator to be updated.

    Add_well_to_a_user_task_aggregator_top_option.png
  2. In info page, click on Add wells option ,inl_add_wells.png.

  3. Select the well(s) to include.

  4. Click on create

    Add_well_to_a_user_task_aggregator.png

Managing User Tasks

Built-in user tasks cannot be deleted or edited. Their definitions may only be viewed. They may however be duplicated, and the duplicate edited.

Deleting a Custom User Task

  1. Switch to Automation Mode.

  2. Select User tasks in the hierarchy on the left.

  3. Select any user defined user task in the list.

  4. Click Delete at the top.

Duplicating a User Task

  1. Switch to Automation Mode.

  2. Select User tasks in the hierarchy on the left.

  3. Select any user task in the list.

  4. Click Duplicate at the top.

Editing a Custom User Task Definition

  1. Switch to Automation Mode.

  2. Select User tasks in the hierarchy on the left.

  3. Select any user defined user task in the list.

  4. Click Edit at the top.

Viewing a Built-in User Task Definition

  1. Switch to Automation Mode.

  2. Select User tasks in the hierarchy on the left.

  3. Select any built-in user task in the list.

  4. Click View at the top.

User Tasks Development

Some improvements have been introduced to existing user tasks. The details are outlined in the following sections.

Simplify: built in user task

This user task, extracted from the the corrected production user task, is designed solely to streamline the rate. Its inputs encompass the rate data and its various types, simplification methods, and Delta Y. It gives a simplified rate as output.

Simplfy_user_task.png
  1. Switch to PDG mode.

  2. Select the field.

  3. In the field/well group node click on Create User task with aggregator, inl__batch_creation.png, under the Info tab:

    Batch_creation_user_task_2.png
  4. Select the wells for which the user task instance is to be created.

    Batch_creation_user_task.png
  5. The remaining procedure is similar to the one explained above, with the following exception:

    Important

    In batch creation it is not possible to set the input data channels for each well individually; the reference channels of the corresponding data type will be used automatically or it is possible to define labels under for each channel.

  6. Click on Create.

Add a new well to an aggregator

A new well can be added to an existing aggregator, with the limitation that only wells may be added; other existing inputs in the aggregator cannot be modified. To proceed:

  1. Under the relevant field or well group, click the aggregator to be updated.

    Add_well_to_a_user_task_aggregator_top_option.png
  2. In info page, click on Add wells option ,inl_add_wells.png.

  3. Select the well(s) to include.

  4. Click on create

    Add_well_to_a_user_task_aggregator.png