@Wid(widfile="WebServiceDefinitions.wid",name="WebService",displayName="WebService",defaultHandler="mvel: new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler()",documentation="jbpm-workitems-webservice/index.html",category="jbpm-workitems-webservice",icon="WebService.png",parameters={@WidParameter(name="Url"),@WidParameter(name="Namespace"),@WidParameter(name="Interface"),@WidParameter(name="Operation"),@WidParameter(name="Endpoint"),@WidParameter(name="Parameter"),@WidParameter(name="Mode")},results=@WidResult(name="Result",runtimeType="java.lang.Object"),mavenDepends=@WidMavenDepends(group="org.jbpm",artifact="jbpm-workitems-webservice",version="7.18.0.Final-redhat-00002"),serviceInfo=@WidService(category="WebService",description="Perform WebService operations",keywords="webservice,call",action=@WidAction(title="Perform a WebService call"))) public class WebServiceWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements org.kie.internal.runtime.Cacheable
Modifier and Type | Field and Description |
---|---|
static String |
WSDL_IMPORT_TYPE |
handlingProcessId, handlingStrategy, logThrownException
Constructor and Description |
---|
WebServiceWorkItemHandler()
Default constructor - no authentication nor ksession
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession)
Used when no authentication is required
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession,
ClassLoader classloader)
Used when no authentication is required
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession,
ClassLoader classloader,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession,
int timeout)
Used when no authentication is required
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession,
int timeout,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
WebServiceWorkItemHandler(org.kie.api.runtime.KieSession kieSession,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession ksession)
Used when no authentication is required
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession ksession,
ClassLoader classloader)
Used when no authentication is required
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession ksession,
ClassLoader classloader,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession ksession,
int timeout)
Used when no authentication is required
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession ksession,
int timeout,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
WebServiceWorkItemHandler(String handlingProcessId,
String handlingStrategy,
org.kie.api.runtime.KieSession kieSession,
String username,
String password)
Dedicated constructor when BASIC authentication method shall be used
|
Modifier and Type | Method and Description |
---|---|
void |
abortWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager) |
protected void |
applyAuthorization(String userName,
String password,
org.apache.cxf.endpoint.Client client) |
void |
close() |
void |
executeWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager) |
ClassLoader |
getClassLoader() |
protected org.apache.cxf.endpoint.dynamic.DynamicClientFactory |
getDynamicClientFactory() |
protected org.apache.cxf.endpoint.Client |
getWSClient(org.kie.api.runtime.process.WorkItem workItem,
String interfaceRef) |
protected String |
nonNull(String value) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setClients(ConcurrentHashMap<String,org.apache.cxf.endpoint.Client> clients) |
findNodeInstance, handleException, handleException, setLogThrownException
public static final String WSDL_IMPORT_TYPE
public WebServiceWorkItemHandler()
public WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession)
ksession
- - kie sessionpublic WebServiceWorkItemHandler(org.kie.api.runtime.KieSession kieSession, String username, String password)
kieSession
- - kie sessionusername
- - basic auth usernamepassword
- - basic auth passwordpublic WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession, ClassLoader classloader)
ksession
- - kie sessionclassloader
- - classloader to usepublic WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession, ClassLoader classloader, String username, String password)
ksession
- - kie sessionclassloader
- - classloader to useusername
- - basic auth usernamepassword
- - basic auth passwordpublic WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession, int timeout)
ksession
- - kie sessiontimeout
- - connection timeoutpublic WebServiceWorkItemHandler(org.kie.api.runtime.KieSession ksession, int timeout, String username, String password)
ksession
- - kie sessiontimeout
- - connection timeoutusername
- - basic auth usernamepassword
- - basic auth passwordpublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession ksession)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedksession
- - kie sessionpublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession kieSession, String username, String password)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedkieSession
- - kie sessionusername
- - basic auth usernamepassword
- - basic auth passwordpublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession ksession, ClassLoader classloader)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedksession
- - kie sessionclassloader
- - classloader to usepublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession ksession, ClassLoader classloader, String username, String password)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedksession
- - kie sessionclassloader
- - classloader to useusername
- - basic auth usernamepassword
- - basic auth passwordpublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession ksession, int timeout)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedksession
- - kie sessiontimeout
- - connection timeoutpublic WebServiceWorkItemHandler(String handlingProcessId, String handlingStrategy, org.kie.api.runtime.KieSession ksession, int timeout, String username, String password)
handlingProcessId
- - process id to handle exceptionhandlingStrategy
- - strategy to be applied after handling exception process is completedksession
- - kie sessiontimeout
- - connection timeoutusername
- - basic auth usernamepassword
- - basic auth passwordpublic void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
executeWorkItem
in interface org.kie.api.runtime.process.WorkItemHandler
protected org.apache.cxf.endpoint.Client getWSClient(org.kie.api.runtime.process.WorkItem workItem, String interfaceRef)
protected org.apache.cxf.endpoint.dynamic.DynamicClientFactory getDynamicClientFactory()
public void abortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
abortWorkItem
in interface org.kie.api.runtime.process.WorkItemHandler
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public void close()
close
in interface org.kie.internal.runtime.Cacheable
protected void applyAuthorization(String userName, String password, org.apache.cxf.endpoint.Client client)
public void setClients(ConcurrentHashMap<String,org.apache.cxf.endpoint.Client> clients)
Copyright © 2001–2019 jBPM dev team. All rights reserved.