cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a list to Decision in SAP Process Automation

karun_chawla
Explorer
0 Kudos

Hi Experts,

Can I pass a list to a decision in SAP Process Automation. In my scenario I have a list data as the output of an automation and I want to get a decision for all the list items in one go based on the decision rule created. Is this possible in SAP Process Automation?

Thanks

Karun

Accepted Solutions (0)

Answers (2)

Answers (2)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Karun,

Currently we support collections only as output in Decision in SAP Build Process Automation. We will support collections or list as input is in roadmap for Q1. You will be able to achieve your use case then.

vishal
Contributor
0 Kudos

Hi karun.chawla,

In the Process Flow / Decision table can accept one set of input values.

For your specific requirement - instead of Decision Table/Tree ; try "Automation"

Can use a "condition activity" or "custom script" activity within a "For Each" loop of automation (high level overview below)

The "For Each" activity accepts your list of input, and passes on one by one item in loop for checks

Suggestion: first try this out for only one input value (use only custom script or Condition activity without For Each Loop), once the inner module works good then introduce For Each that will accept multiple values

Regards,

Vishal Rathi

karun_chawla
Explorer
0 Kudos

I am using decision table in SPA, but I am not able to input list data in the decision rule activity. I can only input a single instance at a time. I need to input the whole list at once and get the results as another list.

karun_chawla
Explorer

Thanks Vishal for your response. We have this solution as an alternative, but we wanted to achieve this using decision in the process itself. Thanks for the clarification. This helps.