Boilerplate AIKP (ocli.aikp.boilerplate)

Custom workflow

Check if the ROI present and to add if not (We can use existing one in ocli docker or please upload by yourself).

Make sure ROI present in the project

roi list
roi add -n Geamana /opt/project/test/integration/aikp/media/files/Geamana.geojson

Create task

task create -t ocli.aikp.boilerplate -n IBoilerplate --roi 0 --activate

Check the task parameters

task show

Now you have to see table like this

...
cos_key                                       {project}/{name}/{roi_name}/
custom_input_path  ['should be a file']
custom_parameter   ['should be equal to 73']
friendly_name                                 {project}/{name}/{roi_name}/
kind                                          shapefile
name                                          IBoilerplate
processing                                    default
project                                       Stagging
roi_name           ['Required']
...
task set custom_parameter=73
task set custom_input_path="~/OCLI_HOME/PROJECTS/defaults.yaml"

Make the recipe

task make recipe --override

Check what custom commands are available

task template --help

To see the list of available custom/template commands

...
Commands:
  command_1 Command #1 info.

Run custom command_1

Let`s run our custom commands with default params

task template command_1

Run with additional param (flag) to read the input file

task template command_1 --dump-file