@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, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processInput, start, terminate
protected WsSoapMessageBuilder getBuilder(TaskContext context) throws ErrorException
context
- ErrorException
public Serializable collectDataForExecution(TaskContext context) throws ErrorException
AsynchronousExecutionTask
AsynchronousExecutionTask.processDataAsynchronously(java.io.Serializable)
method asynchronously.collectDataForExecution
in interface AsynchronousExecutionTask
collectDataForExecution
in class AbstractAsynchronousExecutionTask
ErrorException
protected Type getInputType(TaskContext context) throws ErrorException
context
- ErrorException
public void processExecutionResult(TaskContext context, Serializable data) throws ErrorException
AsynchronousExecutionTask
processExecutionResult
in interface AsynchronousExecutionTask
processExecutionResult
in class AbstractAsynchronousExecutionTask
data
- result of asynchronous call of method AsynchronousExecutionTask.processDataAsynchronously(java.io.Serializable)
ErrorException
public Serializable processDataAsynchronously(Serializable data)
AsynchronousExecutionTask
AsynchronousExecutionTask.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 AsynchronousExecutionTask
processDataAsynchronously
in class AbstractAsynchronousExecutionTask
data
- data to processprotected WebServiceCaller createWebServiceCaller()
public boolean executeAsynchronously(TaskContext context) throws ErrorException
AsynchronousExecutionTask
AsynchronousExecutionTask.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 AsynchronousExecutionTask
executeAsynchronously
in class AbstractAsynchronousExecutionTask
ErrorException
public Class<? extends AbstractAsynchronousExecutionTask> getImplementationClass()
getImplementationClass
in class AbstractAsynchronousExecutionTask
ComponentService
.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.