> For the complete documentation index, see [llms.txt](https://docs.enate.net/whats-new/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enate.net/whats-new/portuguesbr/versoes-mais-antigas/visao-geral-das-alteracoes-versoes-mais-antigas/visao-geral/wait-for-sub-cases-to-complete-action-improvements.md).

# Ações de melhoria "Esperar que os sub-casos sejam concluídos"

v2021.1

Uma vez que um Sub-Caso tenha sido lançado (manualmente ou através de uma Ação 'Iniciar Caso'), uma Ação 'Aguardar que os Sub-Casos sejam concluídos' passará para um estado de 'Aguardar' que todos os Sub-Casos atualmente em execução dentro de um Caso cheguem à conclusão antes de permitir que o Caso seja concluído.

![](https://gblobscdn.gitbook.com/assets%2F-MR4uErt41EMkGUOTvyd%2F-Mahf7s_DMYD56EJBY03%2F-MahjL3C13RNC2jFgHiy%2Fimage.png?alt=media\&token=7d6c2eb3-78c8-4b0a-a6c5-6c79a272dbba)

Uma vez que o Sub-Caso seja concluído, a Ação "Aguardar que o Sub-Caso seja concluído" fechará automaticamente.

![](https://gblobscdn.gitbook.com/assets%2F-MR4uErt41EMkGUOTvyd%2F-MahUFjily7RQQJpY-ey%2F-MaheDU9F_gMsejOp3Id%2Fimage.png?alt=media\&token=37e002c4-5517-4301-b605-f568d39c1db5)

Se um Sub-Caso não tiver sido lançado, mas uma Ação "Esperar que Sub-Cases Completem" tiver sido lançada, a Ação "Esperar que Sub-Cases Completem" entrará em um estado "A Fazer" e será designada para uma Fila de espera.

![](https://gblobscdn.gitbook.com/assets%2F-MR4uErt41EMkGUOTvyd%2F-M_tt8kvvrs8MMHHKag6%2F-M_ttFIUdXov1PCb7v2Z%2Fimage.png?alt=media\&token=abd4dab3-54ef-4172-930a-09775d9106cd)

Se a Ação não estiver no estado "Esperar que o Sub-Caso seja concluído" e o Sub-Caso pelo qual está esperando tiver sido concluído, aparecerá uma mensagem como "O Sub-Caso é concluído na Ficha Informativa".

![](https://gblobscdn.gitbook.com/assets%2F-MR4uErt41EMkGUOTvyd%2F-Mahf7s_DMYD56EJBY03%2F-MahjJ5dRBh27P7pDi6T%2Fimage.png?alt=media\&token=cf9a40b1-9f4e-4195-ae20-6b17596a4c90)

Se o sub-case ainda não foi lançado e se você tentar configurar a Ação para "Aguardando a conclusão do sub-case", a Ação será fechada, pois não há nenhum sub-case lançado.

Se você tentar resolver manualmente uma Ação 'Aguardando a conclusão do sub-case’, o sistema informará que o case principal não irá aguardar pela conclusão do sub-case para sua própria conclusão.

![](https://665521553-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMq3QmswWRu5qbijFN8%2F-MahrknKmYXCSG1HoILn%2F-MahrqZ4YvRXsdqX98bN%2Fimage.png?alt=media\&token=f99f22c1-1bb0-4788-ae34-549a62736495)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.enate.net/whats-new/portuguesbr/versoes-mais-antigas/visao-geral-das-alteracoes-versoes-mais-antigas/visao-geral/wait-for-sub-cases-to-complete-action-improvements.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
