[jboss-dev-forums] [Design of JBoss ESB] - Re: jBPM in JBossESB
rex.sheridan
do-not-reply at jboss.com
Wed Feb 21 10:57:07 EST 2007
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#4020014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020014
More information about the jboss-dev-forums
mailing list