I
I
IvanovIvanIvanych2020-07-28 16:27:30
Bitrix24
IvanovIvanIvanych, 2020-07-28 16:27:30

What should be the BP logic in my case when there is a manual switching of the transaction stage to an earlier one?

Hello, please tell me about fixing the logic of my BP.
At the moment, the business process switches the stages of the transaction after completing the tasks generated by the same BP, and the tasks pause the BP until they are completed. The generation of the task is placed in an IF check, in which the stage of the transaction is determined. At the end of the IF, there is a switch to the next stage of the transaction. All IFs are combined into a loop that runs until the trade stage is a success or failure.
How can I make it so that when manually switching the transaction stage to an earlier stage, my BP returns to the IF block in which the corresponding stage is? Now this does not happen, because inside each IF there is a setting for the next stage of the transaction, and if you switch the stage manually at the moment when a task is waiting for completion, then after the completion of this task, the BP will switch the stage of the transaction to the one specified in the BP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2020-07-28
@IvanovIvanIvanych

For a single BP, this cannot be implemented.
It is necessary to break your business process into separate components in such a way that there is no single instance.
In order for the BP to return to the early stages, you need to make a BP with stages and AFTER the completion of the task, additionally check the status and send it to the appropriate block, but it's easier to break the BP into several parts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question