Esteban, I think we may have a slight miscommunication. My idea is to put the ESB message
into the jBPM ContextInstance, not to get the jBPM context into the message (although that
is useful too).
From what I can see in the code it is possible to get the message into
the context. However, I think it currently requires some mechanism outside the
CommandInterpreter (i.e. another action in the pipeline) to set it up. Here is what I
think that action code may look like.
| public Message process(Message message) {
|
| CommandVehicle command = new
CommandVehicle(CommandVehicle.Operation.setProcessInstanceVariables);
|
| Map<String, Object> variables = new HashMap<String, Object>();
| variables.put("message", message);
| command.setVariableValues(variables);
|
| return command.toCommandMessage();
|
| }
|
What I am really looking for is some way to configure the CommandInterpreter to do this
for me.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020014#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...