Hi Mike,
Thank you for your response. After conducting some research, I think this is not meeting my needs.
My requirement is to initiate a REST call on a other task and wait for the response to continue. I use the same workflow, but it does not work with waitForCondition
.
![](https://dw1.s81c.com//IMWUC/MessageImages/82db17135cba4a53a4408519d1aa3286.png)
------------------------------
El Mehdi ES-SAFI
------------------------------
Original Message:
Sent: Mon April 15, 2024 07:17 PM
From: Mike Prentice
Subject: How to use WaitForCondition in IBM Case manager
Wait for the condition is based on waiting for another work item to be created based on matching parameters (workflow fields). I have used it before but cant find an example handy. I will try to explain it in case the documentation does not make sense. YOu have a process, but within the process you realize that another step is needed. This step is waiting for another document to arrive. You need a document to arrive task to be launched. It launches and has the same case data as the original case task launched. In the wait-for condition, you define the workflow properties you are waiting to be matched on. CaseType, CaseNumber, DocumentType, for this example. So when the new document arrival task is created, those 3 fields match and the wait for condition is meet and then the workflow is re-activated. The real trick is setting up the workflow fields in the Wait For COndition and making sure the matching fields are set for the new task being created.
------------------------------
Mike Prentice
Original Message:
Sent: Thu April 04, 2024 11:35 AM
From: El Mehdi ES-SAFI
Subject: How to use WaitForCondition in IBM Case manager
Hello everyone,
I'm reaching out to the community because I need assistance with understanding and effectively using the WaitForCondition feature in IBM BPM.
![](https://dw1.s81c.com//IMWUC/MessageImages/ce93315c1e5b47b4b71b249c6e302b30.png)
I've recently started working on a project involving the implementation of a business process in IBM BPM, and I've identified the need to suspend the execution of the process until a specific condition is met. After consulting the documentation and conducting research, I've found information about WaitForCondition, but I'm encountering difficulties in implementing it correctly.
If anyone in the community has experience with using WaitForCondition or can offer advice on how to implement it effectively, I would greatly appreciate your help.
Additionally, if you have any examples of use cases or best practices to share, that would also be very helpful.
Thank you in advance for your contributions and support.
Best regards![](https://dw1.s81c.com//IMWUC/MessageImages/ce93315c1e5b47b4b71b249c6e302b30.png)
------------------------------
El Mehdi ES-SAFI
------------------------------