View Javadoc

1   /*
2    * $Id: SendMuleEventAndContinue.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  
11  package org.mule.providers.bpm.jbpm.actions;
12  
13  import org.mule.providers.bpm.ProcessConnector;
14  
15  import org.jbpm.graph.exe.ExecutionContext;
16  
17  /**
18   * Sends a Mule message to the specified endpoint and continues execution to the next
19   * state. This class assumes the current state has only one leaving transition.
20   * 
21   * @param url - the Mule endpoint
22   * @param transformers - any transformers to be applied
23   * @param payload - specify the payload as a string directly in the jPDL
24   * @param payloadSource - process variable from which to generate the message
25   *            payload, defaults to {@link ProcessConnector.PROCESS_VARIABLE_DATA}
26   * @param messageProperties - any properties to be applied to the message
27   */
28  public class SendMuleEventAndContinue extends SendMuleEvent
29  {
30  
31      private static final long serialVersionUID = 1L;
32  
33      public void execute(ExecutionContext executionContext) throws Exception
34      {
35          super.execute(executionContext);
36          executionContext.leaveNode();
37      }
38  
39  }