@colabo-flow/i-core
TypeScript icon, indicating that this package has built-in type declarations

0.8.6 • Public • Published

Intro

@colabo-flow/i-core is a colabo.space puzzle.

This puzzle is describing structures for ColaboFlow Go domain.

Concepts Explanation

ITaskExecutor

Task executor is a specific section of code, module, service, component that performs particular business logic. ITaskExecutor describes it in greater details, primarily explaining how to access it; (i) whom to contact and (ii) what to ask about. It also tells the environment which it executes in.

To be able to execute it we need to contextualize the executor through a task which brings us to IFlowTask.

IFlowTask

IFlowTask is a reference of an executor (an execution instance) (ITaskExecutor) that is prepared for a particular execution context, usually workflow but it can be also a single task. In that sense it has its parameters (IFlowTask.params) set to a specific value required for its execution.

Take for example an executor for splitting a sentence SentenceLemmatizer into words or tagging words in a text. It can be executed against texts in various languages. Therefore, in a particular executional context, we want to provide the task (through task parameters) with a Serbian configuration file, and in other context with a Norwegian configuration files. This example, would create a two separate instances (two IFlowTasks) of the same ITaskExecutor parameterized differently.

Each specific execution of a task is represented with task instance and its corresponding IFlowTaskInstance structure.

IFlowTaskInstance

IFlowTaskInstance stands for each separate execution of a task (by running the associated task's executor).

In the previous example running Serbian SentenceLemmatizer task we can run it against various Serbian texts and each run will be a separate task instance. It is same with the other task, Norwegian SentenceLemmatizer task; we can run it against various Norwegian texts.


This puzzle is automatically created with the colabo tools

Readme

Keywords

none

Package Sidebar

Install

npm i @colabo-flow/i-core

Weekly Downloads

1

Version

0.8.6

License

MIT

Unpacked Size

3.32 MB

Total Files

129

Last publish

Collaborators

  • mprinc