Attached Model : problem-model.fsm
Problem Description:
Suppose a part from source reaches at station 1, it will continue its task at station 1 until:
1) another part approaches station 1 from the source. In this case part will move to station 2 to complete its remaining task. And the part will complete its remaining task at station 2 move to sink via Queue.
"or"
2) if the task is completed at station 1 itself, part will go directly to sink via Queue.
Kindly suggest me better logic for this situation..!!