Hi Experts,
If the EmployeeTime is not present, I am getting the below Payload.
<EmpJob>
<EmpJob>
<userId>1000002</userId>
</EmpJob>
</EmpJob>
If the EmployeeTime is present, I am getting the below Payload.
<messages>
<EmpJob>
<EmpJob>
<userId>1101621</userId>
<EmployeeTime>
<externalCode>4ec4147687994c9dab4170973d13359e</externalCode>
<endDate>2021-07-10T00:00:00.000</endDate>
<userId>1101621</userId>
<startDate>2021-07-10T00:00:00.000</startDate>
</EmployeeTime>
</EmpJob>
</EmpJob>
</messages>
Looping should stop once I get the EmployeeTime payload. So I am using the condition as "//EmpJob[EmpJob[not(EmployeeTime)]]" in looping process call. But condition is not working.
Please advise on the condition to stop the loop execution once I get the EmployeeTime is present in the payload.
Regards,
Pavan
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.