V
V
venom19962021-03-17 17:28:59
Bitrix24
venom1996, 2021-03-17 17:28:59

Is it possible to stop the PSU for the duration of the task?

$arFields = Array(
        "TITLE" => "Task title",
        "DESCRIPTION" => "Task description",
        "CREATED_BY" => 29,
        "RESPONSIBLE_ID" => 721,
        "DESCRIPTION_IN_BBCODE" => 'Y',
        "ALLOW_CHANGE_DEADLINE" => 'Y',

    );

    $obTask = new CTasks;
    $ID = $obTask->Add($arFields);
    $success = ($ID>0);

it is in the BP itself, is it possible to stop the execution of the BP until the task is completed? how it is implemented in the standard interface

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2021-03-17
@venom1996

it is in the BP itself, is it possible to stop the execution of the BP until the task is completed?

The business process is executed in blocks and as soon as one block has completed, the next one starts immediately.
In order to pause, you need to create your own business process action, where to write a pause situation handler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question