cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI UDF Execution type All values of Queue

0 Kudos

Hi, I have requirement where custom udf ( groovy -> function) has to execute all the values of queue. When I try to execute it's by default it is executing as "All values of Context". I have gone through SAP CPI Java Docs where in the Output interface documentation clearly mentioned about execution type "All values of Queue". Can anybody help me on this?

<<public interface Output

This class is used in advanced user-defined functions (execution type "All values of Context" or "All values of a Queue") to return the result of a function>>

Thank you,

Rao Malisetti

Accepted Solutions (0)

Answers (3)

Answers (3)

saisreenivas
Participant
0 Kudos

Hi mmr.rao

If you go for "removeContext" option, all your input data will be in a single Context or a queue. Hence, there is no use of Output.isContextChange(is[i]).

If the ContextChange is important for you, then I think you can follow the below process:

1. Take two inputs - "One with removeContext", and "One without removeContext".

2. You can use the "one without removeContext" to identify the ContextChange and the "one with removeContext" for the data to be in a queue.

Also, does this match your requirement?


Regards,

Sai Sreenivas Addepalli.

0 Kudos

Hi Sai Sreenivas,

Thank for your time on this, if I go for "removeContext" what is the use of Output.isContextChange(is[i]) as released by SAP.

Thank you,

Rao Malisetti

saisreenivas
Participant
0 Kudos

Hi mmr.rao.

I don't think there is a inbuilt "All Values in a queue" in CPI UDF.

Have you tried the following:
1. Use "removeContext" Node function before the UDF logic. This also works the same.

2. Right Click on the input field, "changeContext"-> select the root node of the input data.

Both of them can work based on your requirement.

Best Regards,
Sai Sreenivas Addepalli