Informatica ActiveVOS
- Informatica ActiveVOS 9.2.4.6
- All Products
// code that handles fault due to a human task operation invoke. // check if this is a WSHT fault var faultData = AE_TASK_UTIL.getFaultData(aJsonFault); if (faultData != null) { // wsht fault. if (faultData.faultName == AE_TASK_GLOBALS.TASK_FAULT_NAMES.ILLEGAL_ARGUMENT) { alert("illegal arg fault: " + faultData.message); } } else { // system soap fault? var soapFaultData = AE_AJAX_SERVICE_UTIL.getSystemFault(aJsonFault); if (soapFaultData != null) { alert("SOAP fault. Fault name:" + soapFaultData.name + ", message:" + soapFaultData.message); } }
<aeb:getTasks xmlns:aeb="http://schemas.active-endpoints.com/b4p/wshumantask/2007/10/aeb4p-task-state-wsdl.xsd" > <htdt:getMyTasks xmlns:htdt="http://www.example.org/WS-HT/api/xsd"> <htdt:taskType>TASKS</htdt:taskType> <htdt:genericHumanRole>POTENTIAL_OWNERS</htdt:genericHumanRole> <htdt:status>READY</htdt:status> <htdt:status>RESERVED</htdt:status> <htdt:maxTasks>5</htdt:maxTasks> </htdt:getMyTasks> <aeb:taskIndexOffset>0</aeb:taskIndexOffset> </aeb:getTasks>
var getTasksRequest = { "getTasks" : { "xmlns" : "http://schemas.active-endpoints.com/b4p/wshumantask/2007/10/aeb4p-task-state-wsdl.xsd", "getMyTasks" : { "xmlns" : "http://www.example.org/WS-HT/api/xsd", "taskType" : { "$t" : "TASKS" }, "genericHumanRole" : { "$t" : "POTENTIAL_OWNERS" }, "status" : [ {"$t" : "READY"} , {"$t" : "RESERVED"} ], "maxTasks" : { "$t" : "5"} }, "taskIndexOffset" : { "$t" : "0" } } }
var getTasksRequest = AE_TASK_UTIL.createGetTasksRequest( { taskType : "TASKS", genericHumanRole : "POTENTIAL_OWNERS", status : ["READY", "RESERVED"], maxTasks : 5, taskIndexOffset : 0 }); // getTasksRequest contains JSON for<getTasks/>element used // ingetTasksoperation for AE specific API extension atAEB4P-aeTaskOperations// service. // The WSHT getMyTasks request can be extracted in the following way: var wshtGetMyTasksRequest = { "getMyTasks" : getTasksRequest.getTasks.getMyTasks };