Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  "definition": {
    "calculations": [
      {
        "name": "calc1",
        "type": "formula",
        "formulaName": "POAI_Test_Calc1"
      },
      {
        "name": "seq",
        "type": "sequence",
        "calculations": [
          "calc2", "calc3"
        ]
      },
      {
        "name": "calc2",
        "type": "formula",
        "formulaName": "POAI_Test_Calc2"
      },
      {
        "name": "calc3",
        "type": "formula",
        "formulaName": "POAI_Test_Calc3"
      },
      {
        "name": "calc4",
        "type": "parallel",
        "formulaName": "POAI_Test_ParallelCalc"
      }
    ]
  }
}

Fields:

  • name* – Name of the Calculation, unique within this Model Class.

  • type* – Accepted values:

    • formula – Simple calculation, all actions in the provided logic are done in a sequential order.

    • parallel – Parallel calculation. The calculations done by the logic can be split into more parts (called Items) and the calculation of those Items will be done in parallel.

    • sequence – This calculation does not have a logic, it is only reference to a list of other calculations, which should be executed one by one.

  • formulaName* – Unique name of a Logic. Used only for formula and parallel types.

  • sequence* – List of Calculation names defined in this Model Class. Used only for sequence type.

...