1
2
3
4
5
6
7
8
9
10
11 package org.mule.module.jbpm;
12
13 import org.mule.MessageExchangePattern;
14 import org.mule.api.MuleMessage;
15 import org.mule.module.bpm.MessageService;
16
17 import java.util.Map;
18
19
20
21
22 public class MuleMessageService implements MessageService
23 {
24 private MessageService messageService;
25
26 public void setMessageService(MessageService messageService)
27 {
28 this.messageService = messageService;
29 }
30
31 public MuleMessage generateMessage(String endpoint,
32 Object payloadObject,
33 Map messageProperties,
34 MessageExchangePattern mep) throws Exception
35 {
36 return messageService.generateMessage(endpoint, payloadObject, messageProperties, mep);
37 }
38 }