# Complex work process logic

**URL:** <https://forum.visualcomponents.com/t/complex-work-process-logic/1820>\
**Category:** Layout Configuration\
**Created:** [October 16, 2020, 6:40am UTC](https://forum.visualcomponents.com/t/complex-work-process-logic/1820 "2020-10-16T06:40:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@Angel](https://forum.visualcomponents.com/u/Angel)\
**Post date:** [October 16, 2020, 6:40am UTC](https://forum.visualcomponents.com/t/complex-work-process-logic/1820/1 "2020-10-16T06:40:31Z")

</div>

Hi,

I am new to Visual components.  
I want to model a complex logic using work process.

Here is the logic (graph should be better understand)

 ![ATC logic2](https://forum.visualcomponents.com/uploads/default/original/2X/6/6b5ee48d67cbdc7ebecd3cc0c34ec8fde8f6f106.jpeg)

I don’t know how to write this three cases at the same work process (#4 & #5)properly.  
My current task notes for work process #4 & #5 is attach below, but it won’t work.  
 ![image](https://forum.visualcomponents.com/uploads/default/original/2X/5/54cc84d74a40e125e2e3cab3790518e4a2981c15.png)

I’m not native in English, hope you can understand the question.  
Thank you in advance.

[testWorkProcess.vcmx](https://forum.visualcomponents.com/uploads/short-url/kpZVlV3QZM3ro9DQLIqj4j8VRBp.vcmx) (718.1 KB)

---

<div class="post-metadata">

**Author:** ![Angel](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@Angel](https://forum.visualcomponents.com/u/Angel)\
**Post date:** [October 27, 2020, 8:37am UTC](https://forum.visualcomponents.com/t/complex-work-process-logic/1820/2 "2020-10-27T08:37:30Z")

</div>

Hi,

I break the complex problem down to smaller problems.  
This one is want to know how to write a nested waitSingal statement in work process.

> [@Nested waitSignal statement of work process](https://forum.visualcomponents.com/t/nested-waitsignal-statement-of-work-process/1863):
>
> Hi, How can I write a nested waitSignal statement and use the “and operator” like the example below. if condition1 and condition2: if condition3: #do caseA else #do caseB else: #do caseC I tried this but there is an error “Traceback (most recent call last): File “Works Process::OnRun”, line 363, in OnRun File “Works Process::OnRun”, line 461, in call\_WT File “Works Process::OnRun”, line 402, in call\_WT File “Works Process::OnRun”, line 1877, in WT\_\_WaitSignal RuntimeError…

I would be grateful if I could give some suggestions

I would be grateful if someone can provide me any suggestions (even through that is not the perfect solution).  
I just stuck in here for so long TAT.

Angel
