on 04-11-2020 2:07 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.