E10: How do I connect to a Adapter in BPM Workflow Custom code?

Hi,

Trying in E10 in BPM to connect to an adapter as part of the custom code. Issue is I don't appear to have access to either the user session or the form to log into the Adapter.

Does anyone know how to do this?

Help much appreciated.

Regards,

Mark