PHP Classes

File: examples/case-studies/automation/macros/macro_workflow_engine-GR.md

Recommend this page to a friend!
  Packages of Christos Drogidis   Ascoos OS   examples/case-studies/automation/macros/macro_workflow_engine-GR.md   Download  
File: examples/case-studies/automation/macros/macro_workflow_engine-GR.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Ascoos OS
A PHP Web 5.0 Kernel for decentralized web and IoT
Author: By
Last change: Update of examples/case-studies/automation/macros/macro_workflow_engine-GR.md
Date: 7 months ago
Size: 3,351 bytes
 

Contents

Class file image Download

?????? ???????? ?? ????????????

???? ? ?????? ?????????? ??????????? ??? ?? Ascoos OS ??????? ???????? ????????? (macros) ??????????????? ?????? FIFO, ?? ?????????? ????????????, ??????????????, ?????????? ??? ????????? ?????????. ????? ??????? ??? ????????????? ??? DevOps.

??????

?? ?????????? ????????? ??? ???????? ??????? ??? Ascoos OS: - TMacroHandler: ????????????? macros ?? ???? ?? ??????????? ??? ?????????????. - TLoggerHandler: ?????????? ?? ???????????? ?????????.

????

? ?????? ??????????? ?? ??? ?????? PHP: - macro_workflow_engine.php: ????????? macros ???? ???? ??? ?? ??????? ????????.

??????????????

  1. ??????????? ??? Ascoos OS (????? repository).
  2. ?????????? ???????? ???? ?????? `$AOS_LOGS_PATH`.
  3. ? ?????????? phpBCL8 ????? ???????????????? ??? ?????????? ????????.

??????????

  1. ????????? macros ?? `addMacro()`.
  2. ????????? ?? script ???? web server:
    https://localhost/aos/examples/case-studies/automation/macros/macro_workflow_engine.php
    

?????????? ??????

$macroHandler->addMacro(function () {
    echo "???? 1: ????????????<br>";
    return '???????????? ????????????';
}, [], delay: 1, priority: 1);

foreach ($macroHandler->runAll() as $result) {
    echo "??????????: $result<br>";
}

??????????? ??????????

?? script ??????? ?? macros ?? ???? ??? ????????????? ??? ??? ???????????. ?????????? ??????:

???? 1: ????????????
??????????: ???????????? ????????????
???? 2: ???????????
??????????: ? ??????????? ????????????
???? 3: ?????? ??????
??????????: ????????????

?????

??????????

?????? ?? ???????????? ?? ???? ?? ?????? ??????????; ????? fork ?? ??????????, ???????????? ? ????????? ???? ??????????? ??? macro_workflow_engine.php, ??? ????????? pull request. ????? ?? CONTRIBUTING.md ??? ???????.

????? ??????

???? ? ?????? ?????????? ?????????? ??? ??? Ascoos General License (AGL). ????? ?? LICENSE.