In some cases it will be necessary to wait until the execution of another activity has ended. If you want to wait for another thread, use the <<WaitForThread>> action deprecated.
![](/download/attachments/2286932/wait_for_thread.png?version=1&modificationDate=1541768257000&api=v2)
You can use the Action Wizard to add a <<WaitForThread>> action. Add an empty action node and select Action Wizard from the context menu.
![](/download/attachments/2286932/wait_thread_wizard_1.png?version=1&modificationDate=1541768257000&api=v2) | Specify the name of the action and select stereotype WaitForThread from the list of stereotypes. |
![](/download/attachments/2286932/wait_thread_wizard_2.png?version=1&modificationDate=1541768257000&api=v2) | The mandatory input parameter threadID has already been added. Now, add the necessary parameter to specify the period of time to wait: - Select timeout to specify a period of time in seconds to define the thread timeout.
|
![](/download/attachments/2286932/wait_thread_wizard_3.png?version=1&modificationDate=1541768257000&api=v2) | Click Finish. |
Parameters
Name | Type | Direction | Mandatory | Description | Allowed Values |
---|
threadID | String | in | | The distinct ID of the thread. | any string |
timeout | Integer | in | ![(error)](/s/ayhbr5/8804/pkry9k/_/images/icons/emoticons/error.svg) | Specify a period of time in milliseconds defining the thread timeout. | any integer |