@PermitAll public class WsSoapCall extends AbstractAsynchronousExecutionTask implements AsynchronousExecutionTask
Task.getTaskInfo()) object which is obtained at runtime (and contains
metadata information such as endpoint address etc.) and the values of the
fields input, output and error. The task definition and other needed
artifacts (data types) are genereted in the process modeler by WSDL generator
component. Therefore this task is only interpreter of the task and types
definitions generated in the modeler. For the information about the
generation process, see the javadoc for class
com.whitestein.lsps.wsdl.parser.WSDLParser. This task contains following
fields:
RecordHolder object, the input for the webservice. This
input is transformed to webservice xml requestReferenceHolder object. It is the reference where the
output from the webservice call should be storedReferenceHolder object. In case that web service respond
with soap fault, the given fault is stored into this referenceExecutableTask.Result| Constructor and Description |
|---|
WsSoapCall() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
collectDataForExecution(TaskContext context)
Collects data from task context for asynchronous execution.
|
protected WebServiceCaller |
createWebServiceCaller() |
boolean |
executeAsynchronously(TaskContext context)
Determines, based on current task context (params, metadata, etc.) if the exeuction
should be done asynchronously.
|
protected WsSoapMessageBuilder |
getBuilder(TaskContext context) |
Class<? extends AbstractAsynchronousExecutionTask> |
getImplementationClass() |
protected Type |
getInputType(TaskContext context) |
Serializable |
processDataAsynchronously(Serializable data)
Process data collected in
AsynchronousExecutionTask.collectDataForExecution(com.whitestein.lsps.engine.lang.TaskContext). |
void |
processExecutionResult(TaskContext context,
Serializable data)
This method is called after the asynchronous execution has been done
|
processInput, start, terminateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessInput, start, terminateprotected WsSoapMessageBuilder getBuilder(TaskContext context) throws ErrorException
context - ErrorExceptionpublic Serializable collectDataForExecution(TaskContext context) throws ErrorException
AsynchronousExecutionTaskAsynchronousExecutionTask.processDataAsynchronously(java.io.Serializable) method asynchronously.collectDataForExecution in interface AsynchronousExecutionTaskcollectDataForExecution in class AbstractAsynchronousExecutionTaskErrorExceptionprotected Type getInputType(TaskContext context) throws ErrorException
context - ErrorExceptionpublic void processExecutionResult(TaskContext context, Serializable data) throws ErrorException
AsynchronousExecutionTaskprocessExecutionResult in interface AsynchronousExecutionTaskprocessExecutionResult in class AbstractAsynchronousExecutionTaskdata - result of asynchronous call of method AsynchronousExecutionTask.processDataAsynchronously(java.io.Serializable)ErrorExceptionpublic Serializable processDataAsynchronously(Serializable data)
AsynchronousExecutionTaskAsynchronousExecutionTask.collectDataForExecution(com.whitestein.lsps.engine.lang.TaskContext). This execution is done asynchronously
outside of process model. The result of this execution is afterwards sent back to task (AsynchronousExecutionTask.processExecutionResult(com.whitestein.lsps.engine.lang.TaskContext, java.io.Serializable))
so that the computed results can be processed and any necessary changes in model instance can be done.
This method should not throw ErrorException since it is not executed in model instance context.processDataAsynchronously in interface AsynchronousExecutionTaskprocessDataAsynchronously in class AbstractAsynchronousExecutionTaskdata - data to processprotected WebServiceCaller createWebServiceCaller()
public boolean executeAsynchronously(TaskContext context) throws ErrorException
AsynchronousExecutionTaskAsynchronousExecutionTask.processDataAsynchronously(java.io.Serializable) will be
executed outside model instance (thus not blocking transaction, model execution, etc.}. If
false it will be called directly.executeAsynchronously in interface AsynchronousExecutionTaskexecuteAsynchronously in class AbstractAsynchronousExecutionTaskErrorExceptionpublic Class<? extends AbstractAsynchronousExecutionTask> getImplementationClass()
getImplementationClass in class AbstractAsynchronousExecutionTaskComponentService.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.