public class OSWorkflowEndpoint extends ProviderEndpoint
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
OSWorkflowEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
done(javax.jbi.messaging.MessageExchange ex)
sends a done to the channel
|
void |
fail(javax.jbi.messaging.MessageExchange ex)
sends a error to the channel
|
int |
getAction() |
java.lang.String |
getCaller() |
javax.jbi.messaging.MessageExchange |
getNewExchange(javax.xml.namespace.QName qname,
boolean inOut)
creates a msg object
|
java.lang.String |
getWorkflowName() |
protected void |
onConsumerExchange(javax.jbi.messaging.MessageExchange exchange)
handles the incoming consumer messages
|
protected void |
onProviderExchange(javax.jbi.messaging.MessageExchange exchange)
handles the incoming provider messages
|
void |
postWorkflow()
cleanup action
|
void |
preWorkflow()
init actions
|
void |
process(javax.jbi.messaging.MessageExchange exchange) |
void |
send(javax.jbi.messaging.MessageExchange ex,
boolean sync)
sends a msg to the channel
|
boolean |
sendMessage(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOnly)
|
javax.jbi.messaging.MessageExchange |
sendRawInOutRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOut)
|
javax.xml.transform.Source |
sendRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
sends the given DOMSource as message to the given service (inOut)
|
void |
setAction(int action)
The initial action to trigger in the workflow.
|
void |
setCaller(java.lang.String caller)
The caller user name to be used when executing the workflow.
|
void |
setWorkflowName(java.lang.String workflowName)
The name of the workflow to be used for handling the exchange.
|
void |
start() |
void |
stop() |
activate, deactivate, getRole, processInOnly, processInOutfail, getChannel, getContext, getExchangeFactory, send, sendSyncgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validatepublic void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exceptionpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class ProviderEndpointjava.lang.Exceptionprotected void onConsumerExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
exchange - javax.jbi.messaging.MessagingExceptionprotected void onProviderExchange(javax.jbi.messaging.MessageExchange exchange)
throws javax.jbi.messaging.MessagingException
exchange - javax.jbi.messaging.MessagingExceptionpublic boolean sendMessage(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message contentjavax.jbi.messaging.MessagingException - on any messaging exceptionpublic javax.xml.transform.Source sendRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message contentjavax.jbi.messaging.MessagingException - on any messaging exceptionpublic javax.jbi.messaging.MessageExchange sendRawInOutRequest(javax.xml.namespace.QName service,
javax.xml.transform.Source source)
throws javax.jbi.messaging.MessagingException
service - the service name to send the message tosource - the source to put in the in message contentjavax.jbi.messaging.MessagingException - on any messaging exceptionpublic javax.jbi.messaging.MessageExchange getNewExchange(javax.xml.namespace.QName qname,
boolean inOut)
throws javax.jbi.messaging.MessagingException
qname - the service which will be the receiverinOut - should it be inOut or InOnlyjavax.jbi.messaging.MessagingExceptionpublic void done(javax.jbi.messaging.MessageExchange ex)
throws javax.jbi.messaging.MessagingException
done in class SimpleEndpointex - javax.jbi.messaging.MessagingExceptionpublic void send(javax.jbi.messaging.MessageExchange ex,
boolean sync)
throws javax.jbi.messaging.MessagingException
ex - sync - javax.jbi.messaging.MessagingExceptionpublic void fail(javax.jbi.messaging.MessageExchange ex)
throws javax.jbi.messaging.MessagingException
ex - javax.jbi.messaging.MessagingExceptionpublic java.lang.String getWorkflowName()
public void setWorkflowName(java.lang.String workflowName)
workflowName - the workflowName to setpublic java.lang.String getCaller()
public void setCaller(java.lang.String caller)
caller - the caller to setpublic int getAction()
public void setAction(int action)
action - the action to setpublic void preWorkflow()
public void postWorkflow()
Copyright © 2005-2017 FuseSource. All Rights Reserved.