@Wid(widfile="InOutCamelConnector.wid",name="InOutCamelConnector",displayName="InOutCamelConnector",category="Camel",defaultHandler="mvel: new org.apache.camel.component.jbpm.workitem.InOutCamelWorkItemHandler()",documentation="camel-jbpm/index.html",parameters=@WidParameter(name="CamelEndpointId"),results={@WidResult(name="Response"),@WidResult(name="Message")},mavenDepends=@WidMavenDepends(group="org.apache.camel",artifact="camel-jbpm",version="2.23.2.fuse-740011-redhat-00001"),serviceInfo=@WidService(category="Camel :: JBPM",description="Camel JBPM support",keywords="apache,camel,payload,route,connector",action=@WidAction(title="Send payload to a Camel endpoint")),icon="InOutCamelConnector.png") public class InOutCamelWorkItemHandler extends AbstractCamelWorkItemHandler
WorkItemHandler
that sends Exchanges
with an InOut
Message Exchange Pattern.
This handler parses the response message from the given Camel route and completes the WorkItem
. The use-case for this handler is
synchronous, request-response style, communication.
The handler creates a Camel Exchange and sets the WorkItem
as the body of the Message
. Furthermore, the following message
headers are set:
Constructor and Description |
---|
InOutCamelWorkItemHandler() |
InOutCamelWorkItemHandler(org.kie.api.runtime.manager.RuntimeManager runtimeManager) |
InOutCamelWorkItemHandler(org.kie.api.runtime.manager.RuntimeManager runtimeManager,
String camelEndpointId) |
InOutCamelWorkItemHandler(String camelEndpointId) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Exchange |
buildExchange(org.apache.camel.ProducerTemplate template,
org.kie.api.runtime.process.WorkItem workItem) |
protected void |
handleResponse(org.apache.camel.Exchange responseExchange,
org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager) |
abortWorkItem, close, executeWorkItem, getCamelEndpointId
public InOutCamelWorkItemHandler()
public InOutCamelWorkItemHandler(String camelEndpointId)
public InOutCamelWorkItemHandler(org.kie.api.runtime.manager.RuntimeManager runtimeManager)
public InOutCamelWorkItemHandler(org.kie.api.runtime.manager.RuntimeManager runtimeManager, String camelEndpointId)
protected void handleResponse(org.apache.camel.Exchange responseExchange, org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
handleResponse
in class AbstractCamelWorkItemHandler
protected org.apache.camel.Exchange buildExchange(org.apache.camel.ProducerTemplate template, org.kie.api.runtime.process.WorkItem workItem)
buildExchange
in class AbstractCamelWorkItemHandler
Apache Camel