Publishing a recorddoc from IS to ES


I’m using wm.enterprise.listener.Admin:publishDocument service in one of my flow service to publish a record from IS to ES. The publishDocument’s service input is “recordln” of type Record. When I map this with a Pipeline In variable of type Record Reference, I’m getting a ClassCastException. Do you have any idea?
I’m using IS 4.6


you might want to check

the BrokerPackageUserGuide
which has info on how to set up the IS ES bridge so that you can publish docs back and forth
we have this working but we used the bridge and flows under adapters in the the web Admin interface todo this
(but they use wm.enterprise.listener.Admin:publishDocument )