Answer the question
In order to leave comments, you need to log in
How to programmatically get a list of tasks from a document in 1C 8.3 workflow?
Hello.
Installed 1s workflow 8.3. No changes were made to the configuration. All business processes are configured through the user interface.
Please tell me how to programmatically get a list of tasks that a document has.
I find the document using the query:
выбрать * из Справочник.ВнутренниеДокументы КАК док где док.РегистрационныйНомер = &ном
ВЫБРАТЬ первые 100 *
ИЗ БизнесПроцесс.Исполнение КАК Исполнение
Упорядочить по Дата Убыв
Answer the question
In order to leave comments, you need to log in
Nu...
You need to find which BP was created, then the list of Tasks that it initiated.
For example, open the Internal Document card, it displays BP and Tasks.
SELECT
Contractor Task.BusinessProcess,
Contractor Task.Reference
FROM
Task.Executor Task AS Task Contractor
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question