View Javadoc

1   /*
2    * $Id: MessageService.java 20893 2011-01-05 13:03:44Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.module.bpm;
11  
12  import org.mule.MessageExchangePattern;
13  import org.mule.api.MuleMessage;
14  
15  import java.util.Map;
16  
17  /**
18   * A message-generation service provided by Mule.  Any BPMS may call this service from
19   * its own processes in order to generate Mule messages.  
20   */
21  public interface MessageService 
22  {
23      public MuleMessage generateMessage(String endpoint, Object payloadObject, Map messageProperties, MessageExchangePattern mep) throws Exception;
24  }