Good solution, Rupinder. Here is the full code to support it.
- Create a new Java service with no inputs and one output. The output is a Record named user []Go to the Shared tab of the Java service and import "com.wm.app.b2b.server. [*]Go to the Source tab and paste the following code:
InvokeState is = new InvokeState();
// pipeline
User user = new User();
user = (is.getCurrentUser());
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
IDataUtil.put( pipelineCursor, "user", user );
pipelineCursor.destroy();
Your output will be a Record named user that has the following structure:
Record - user
T - name
T - pass
T - passHash
Record - members
[all ACLs to which this user belongs]
T - enabled
Hopefully, this will help you get what you need.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods