@MinimumAcl(value=DESIGNER) public class RunFormula extends AsyncDominoJNXJson
Runs a formula. Formula can be run with no document, 1 document or set of documents. Formula can run under specific user credentials Formula results can be saved back to the document if fields changed Request examples: {
"save" : false, "type" : "domino", "user" : "reader person/nowhere", "unid" :
"66764BDE93D3A8B048258471003639BC", "formula" : "text_list" } { "save" :
false, "type" : "domino", "user" : "", "unid" :
"66764BDE93D3A8B048258471003639BC", "formula" : "@name([cn];@username)" } {
"save" : true, "type" : "domino", "user" : "editor person/nowhere", "unid" :
"", "query" : "Form in ('customer')", "formula" : "FIELD TestSubject:='New
Subject'; @True;" }
Reply examples: { "result": [ { "unid":
"66764BDE93D3A8B048258471003639BC", "result": [ "Multi", "List of", "Text" ]
} ] } { "result": [ { "unid": "66764BDE93D3A8B048258471003639BC", "result": [
"reader person" ] } ] } { "result": [ { "unid":
"BF8CFA194B8438AA48258471003639AB", "result": [ 1.0 ] }, { "unid":
"2DBFC4D004606E1148258471003639B2", "result": [ 1.0 ] } ] }
AsyncDominoBase.RequestType
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
RunFormula() |
Modifier and Type | Method and Description |
---|---|
void |
process(DbRequestParameters<io.vertx.core.json.JsonObject> request)
Actual work is done here.
|
getDbRequestParameters
accessControlCheck, dontCallProcessPayload, emitterToObserver, getActualDatabaseName, getApiName, getAppTags, getBarbican, getEventbusId, getKeepDbInfo, getRequestType, getSubscriber, getUser, getUserForMetrics, isProcessPayloadRequired, isWorkInProgress, processDominoRequest, recordAppMetrics, setApiName, setBarbican, setDbFileName, setKeepDbInfo, setProcessPayloadRequired, setRequestParams, setRequestType, setSubscriber, setUser, setVertx, subscribe, validateDqlAccess, validateOpenAccess, validationCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customValidator, preflight
public void process(DbRequestParameters<io.vertx.core.json.JsonObject> request) throws java.lang.Exception
AsyncDominoBase
Actual work is done here. The DbRequestParameters injects all needed components as well as functions like validation and results
request
- DbRequestParameters granting access to session and databasejava.lang.Exception
- Anything that can go wrong, will go wrong