1 /* 2 * $Id: MessageService.java 7963 2007-08-21 08:53:15Z dirk.olmes $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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.providers.bpm; 11 12 import org.mule.umo.UMOMessage; 13 14 import java.util.Map; 15 16 /** 17 * A message-generation service provided by Mule. Any BPMS may call this service from 18 * its own processes in order to generate Mule messages. The generated messages will 19 * be received by the "bpm://processName" endpoint within your Mule config. 20 */ 21 public interface MessageService { 22 23 public UMOMessage generateMessage(String endpoint, Object payloadObject, Map messageProperties, boolean synchronous) throws Exception; 24 }