public class AutoInvoke
extends java.lang.Object
Constructor and Description |
---|
AutoInvoke(AutoEngineInfo thisAutoInfo,
java.util.ArrayList thisParamList,
ObjectsMap thisObjectsMap,
Service thisService)
Create a new instance of AutoInvoke and set the method variables and objects.
|
Modifier and Type | Method and Description |
---|---|
AutoOut |
invokeMethod()
Invoke the method in the
autoInfo object, making variable replacements first. |
protected boolean |
isLicasCall(java.lang.Object evaluator)
Return true if the evaluator object indicates a licas service that should be invoked.
|
protected boolean |
isWsCall(java.lang.Object evaluator)
Return true if the evaluator object indicates a web service that should be invoked.
|
public AutoInvoke(AutoEngineInfo thisAutoInfo, java.util.ArrayList thisParamList, ObjectsMap thisObjectsMap, Service thisService)
thisAutoInfo
- the process script elements parsed into their actual objects
and definitions.thisParamList
- an external set of KeyValue
objects that can replace
named or tagged fields in the method parameter lists. If empty or no match, then
nothing gets changed.thisObjectsMap
- mapping of variable names to instances. This method can ad more
variables, but should be for the method invocation only, so immediately cloned.thisService
- the service to execute on.public AutoOut invokeMethod() throws LicasException, java.lang.Exception
autoInfo
object, making variable replacements first.
From that object, the evaluator
is used to execute the method
.
The evaluation can be compared to the function
. The input
can
be used to replace a tagged Const
.QUERY
parameter and so should be an
XML element. If the reply is OK, the autoInfo effOutput
is returned as
the next set of actions.effector list
of the
input parameter if the evaluation is true, or an empty list if it is false.
Evaluating to true can include matching exactly to an XML description, or just have
any result, for example, by using a checkReply
method.LicasException
- for a licas-specific mapping problem.java.lang.Exception
- any error.protected boolean isLicasCall(java.lang.Object evaluator)
evaluator
- the evaluator object.protected boolean isWsCall(java.lang.Object evaluator)
evaluator
- the evaluator object.