@Wid(widfile="InOutCamelConnector.wid",name="InOutCamelConnector",displayName="InOutCamelConnector",category="Camel",defaultHandler="mvel: new org.apache.camel.component.jbpm.workitem.InOutCamelWorkItemHandler()",documentation="${artifactId}/index.html",parameters=@WidParameter(name="CamelEndpointId"),results={@WidResult(name="Response"),@WidResult(name="Message")},mavenDepends=@WidMavenDepends(group="${groupId}",artifact="${artifactId}",version="${version}"),serviceInfo=@WidService(category="${name}",description="${description}",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, getCamelEndpointIdpublic 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 AbstractCamelWorkItemHandlerprotected org.apache.camel.Exchange buildExchange(org.apache.camel.ProducerTemplate template,
org.kie.api.runtime.process.WorkItem workItem)
buildExchange in class AbstractCamelWorkItemHandlerApache Camel