|
|
@ -399,30 +399,32 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
|
|
|
|
if lL: lL.exception("pyOpenRPA_Agent_O2A Exception!")
|
|
|
|
if lL: lL.exception("pyOpenRPA_Agent_O2A Exception!")
|
|
|
|
lThisAgentDict["ConnectionCountInt"] -= 1 # Connection go to be closed - decrement the connection count
|
|
|
|
lThisAgentDict["ConnectionCountInt"] -= 1 # Connection go to be closed - decrement the connection count
|
|
|
|
|
|
|
|
|
|
|
|
def pyOpenRPA_Debugging_HelperDefList(inRequest, inGSettings):
|
|
|
|
@app.get(path="/orpa/api/helper-def-list/{inTokenStr}",response_class=JSONResponse,tags=["API"])
|
|
|
|
|
|
|
|
def pyOpenRPA_Debugging_HelperDefList(inRequest:Request, inAuthTokenStr:str = Depends(IdentifyAuthorize), inBodyStr:str = Body("")):
|
|
|
|
# Parse query
|
|
|
|
# Parse query
|
|
|
|
lResultDict = {
|
|
|
|
lResultDict = {
|
|
|
|
"success": True,
|
|
|
|
"success": True,
|
|
|
|
"results": []
|
|
|
|
"results": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Get the path
|
|
|
|
# Get the path
|
|
|
|
lPathSplitList = __Orchestrator__.WebRequestParsePath(inRequest=inRequest).split('/')
|
|
|
|
lPathSplitList = inRequest.url.path.split('/')
|
|
|
|
lQueryStr = None
|
|
|
|
lQueryStr = None
|
|
|
|
if "HelperDefList" != lPathSplitList[-1] and "" != lPathSplitList[-1]: lQueryStr = lPathSplitList[-1]
|
|
|
|
if "HelperDefList" != lPathSplitList[-1] and "" != lPathSplitList[-1]: lQueryStr = lPathSplitList[-1]
|
|
|
|
if lQueryStr != "" and lQueryStr is not None:
|
|
|
|
if lQueryStr != "" and lQueryStr is not None:
|
|
|
|
lDefList = __Orchestrator__.ActivityItemHelperDefList(inDefQueryStr=lQueryStr)
|
|
|
|
lDefList = __Orchestrator__.ActivityItemHelperDefList(inDefQueryStr=lQueryStr)
|
|
|
|
for lDefStr in lDefList:
|
|
|
|
for lDefStr in lDefList:
|
|
|
|
lResultDict["results"].append({"name": lDefStr, "value": lDefStr, "text": lDefStr})
|
|
|
|
lResultDict["results"].append({"name": lDefStr, "value": lDefStr, "text": lDefStr})
|
|
|
|
__Orchestrator__.WebRequestResponseSend(inRequest=inRequest, inResponeStr=json.dumps(lResultDict))
|
|
|
|
return lResultDict
|
|
|
|
|
|
|
|
|
|
|
|
def pyOpenRPA_Debugging_HelperDefAutofill(inRequest, inGSettings):
|
|
|
|
@app.get(path="/orpa/api/helper-def-autofill/{inTokenStr}",response_class=JSONResponse,tags=["API"])
|
|
|
|
|
|
|
|
def pyOpenRPA_Debugging_HelperDefAutofill(inRequest:Request, inAuthTokenStr:str = Depends(IdentifyAuthorize), inBodyStr:str = Body("")):
|
|
|
|
# Parse query
|
|
|
|
# Parse query
|
|
|
|
# Get the path
|
|
|
|
# Get the path
|
|
|
|
lPathSplitList = __Orchestrator__.WebRequestParsePath(inRequest=inRequest).split('/')
|
|
|
|
lPathSplitList = inRequest.url.path.split('/')
|
|
|
|
lQueryStr = None
|
|
|
|
lQueryStr = None
|
|
|
|
if "HelperDefAutofill" != lPathSplitList[-1] and "" != lPathSplitList[-1]: lQueryStr = lPathSplitList[-1]
|
|
|
|
if "HelperDefAutofill" != lPathSplitList[-1] and "" != lPathSplitList[-1]: lQueryStr = lPathSplitList[-1]
|
|
|
|
lResultDict = __Orchestrator__.ActivityItemHelperDefAutofill(inDef = lQueryStr)
|
|
|
|
lResultDict = __Orchestrator__.ActivityItemHelperDefAutofill(inDef = lQueryStr)
|
|
|
|
__Orchestrator__.WebRequestResponseSend(inRequest=inRequest, inResponeStr=json.dumps(lResultDict))
|
|
|
|
return lResultDict
|
|
|
|
|
|
|
|
|
|
|
|
# See docs in Agent (pyOpenRPA.Agent.A2O)
|
|
|
|
# See docs in Agent (pyOpenRPA.Agent.A2O)
|
|
|
|
def pyOpenRPA_Agent_A2O(inRequest, inGSettings):
|
|
|
|
def pyOpenRPA_Agent_A2O(inRequest, inGSettings):
|
|
|
@ -513,8 +515,8 @@ def SettingsUpdate():
|
|
|
|
# API
|
|
|
|
# API
|
|
|
|
#{"Method": "POST", "URL": "/orpa/api/processor-queue-add", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Processor, "ResponseContentType": "application/json"},
|
|
|
|
#{"Method": "POST", "URL": "/orpa/api/processor-queue-add", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Processor, "ResponseContentType": "application/json"},
|
|
|
|
#{"Method": "POST", "URL": "/orpa/api/activity-list-execute", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_ActivityListExecute, "ResponseContentType": "application/json"},
|
|
|
|
#{"Method": "POST", "URL": "/orpa/api/activity-list-execute", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_ActivityListExecute, "ResponseContentType": "application/json"},
|
|
|
|
{"Method": "GET", "URL": "/orpa/api/helper-def-list/", "MatchType": "BeginWith","ResponseDefRequestGlobal": pyOpenRPA_Debugging_HelperDefList, "ResponseContentType": "application/json"},
|
|
|
|
#{"Method": "GET", "URL": "/orpa/api/helper-def-list/", "MatchType": "BeginWith","ResponseDefRequestGlobal": pyOpenRPA_Debugging_HelperDefList, "ResponseContentType": "application/json"},
|
|
|
|
{"Method": "GET", "URL": "/orpa/api/helper-def-autofill/", "MatchType": "BeginWith","ResponseDefRequestGlobal": pyOpenRPA_Debugging_HelperDefAutofill, "ResponseContentType": "application/json"},
|
|
|
|
#{"Method": "GET", "URL": "/orpa/api/helper-def-autofill/", "MatchType": "BeginWith","ResponseDefRequestGlobal": pyOpenRPA_Debugging_HelperDefAutofill, "ResponseContentType": "application/json"},
|
|
|
|
# AGENT
|
|
|
|
# AGENT
|
|
|
|
{"Method": "POST", "URL": "/orpa/agent/o2a", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Agent_O2A, "ResponseContentType": "application/json"},
|
|
|
|
{"Method": "POST", "URL": "/orpa/agent/o2a", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Agent_O2A, "ResponseContentType": "application/json"},
|
|
|
|
{"Method": "POST", "URL": "/orpa/agent/a2o", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Agent_A2O, "ResponseContentType": "application/json"}
|
|
|
|
{"Method": "POST", "URL": "/orpa/agent/a2o", "MatchType": "Equal","ResponseDefRequestGlobal": pyOpenRPA_Agent_A2O, "ResponseContentType": "application/json"}
|
|
|
|