Sending request data to Business Object through Object Script
So now that I have figured out how to send a Page via HTTP.OutboundAdapter, I have another question. I want to use a Function that all I have to do is pass two variables and it is sent to the HTTP.OutboundAdapter I created to send the Page.
So.. If I have a class file that Extends Ens.Rule.FunctionSet, how do I force it to send a Request to my HTTP Business Operation, without having to go through a DTL, or Business Process?
Thanks
Scott
Hey Scott.
If you were open to having a Service in your production which is what your function sends its two variables (and the service then passes it onto your Operation) you could have something like this:
and then you have a custom service that looks a little like this:
Then when you add the service to your production (remembering to match it to the name declared in the service code), you can select your target operation as a config item, and when the function is triggered it should go Function -->Service-->Operation.
Edit: my Service Class example had an error in the SETTINGS parameter, I have corrected it.
As long as you're calling the FunctionSet method from the context of a business rule or DTL, then this approach will work.
Quick example: