cancel
Showing results for 
Search instead for 
Did you mean: 

CPI: Looping Process Call Condition Issue

07-15-2021 4:44 PM
babruvahana Contributor
885 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (0)