Resubmit Tasks and Events With TEWS

You can use TEWS to resubmit multiple events and failed tasks. You can also query to find these events.
cim142
You can use TEWS to resubmit multiple events and failed tasks. You can also query to find these events.
The
View Submitted Tasks
task's wsdl output is verbose and all wsdl schema related to resubmission of tasks/events can be seen via that task.
Identity Manager
supports the following additional queries:
A Query to Search for Events
Use the following query to search for events.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl"> <soapenv:Header/> <soapenv:Body> <wsdl:TaskContext> <wsdl:admin_id>superadmin</wsdl:admin_id> <wsdl:admin_password>test</wsdl:admin_password> </wsdl:TaskContext> <wsdl:ResubmitTasksQuery> <!--Optional:--> <wsdl:ResubmitTasksResubmitTasksTab> <wsdl:EventSearchCriteria> <wsdl:EventName>ExecuteSoap</wsdl:EventName> <wsdl:EventState>Failed</wsdl:EventState> <wsdl:MaxmiumReturnRows>5</wsdl:MaxmiumReturnRows> </wsdl:EventSearchCriteria> </wsdl:ResubmitTasksResubmitTasksTab> </wsdl:ResubmitTasksQuery> </soapenv:Body> </soapenv:Envelope>
Query to Search for Multiple Tasks in a Failed State
Use the following query to search for multiple tasks that are in a failed state.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl"> <soapenv:Header/> <soapenv:Body> <wsdl:TaskContext> <wsdl:admin_id>superadmin</wsdl:admin_id> <wsdl:admin_password>test</wsdl:admin_password> </wsdl:TaskContext> <wsdl:ResubmitTasksQuery> <!--Optional:--> <wsdl:ResubmitTasksResubmitTasksTab> <wsdl:SearchCriteria> <wsdl:Status>Failed</wsdl:Status> <wsdl:MaxmiumReturnRows>10</wsdl:MaxmiumReturnRows> </wsdl:SearchCriteria> </wsdl:ResubmitTasksResubmitTasksTab> </wsdl:ResubmitTasksQuery> </soapenv:Body> </soapenv:Envelope>
Resubmit Multiple Tasks
Use the following query to submit multiple tasks. This query resubmits all associated events for these tasks. The index can begin with 0 or 1, but must be sequential.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl"> <soapenv:Header/> <soapenv:Body> <wsdl:TaskContext> <wsdl:admin_id>superadmin</wsdl:admin_id> <wsdl:admin_password>test</wsdl:admin_password> </wsdl:TaskContext> <wsdl:ResubmitTasks> <wsdl:ResubmitTasksResubmitTasksTab> <wsdl:MultipleTasks> <wsdl:ResubmitTasks>true</wsdl:ResubmitTasks> <wsdl:TaskIds> <!--Zero or more repetitions:--> <wsdl:currentvalue index="1"> <wsdl:TaskId>a1551200-191719d1-ee172cc0-d8e94b</wsdl:TaskId> </wsdl:currentvalue> <wsdl:currentvalue index="2"> <wsdl:TaskId>c31614bf-3fdf2d2c-90f09006-dfe76d</wsdl:TaskId> </wsdl:currentvalue> </wsdl:TaskIds> </wsdl:MultipleTasks> </wsdl:ResubmitTasksResubmitTasksTab> </wsdl:ResubmitTasks> </soapenv:Body> </soapenv:Envelope>
Resubmit Multiple Events
Use the following query to resubmit multiple events. The index can begin with 0 or 1, but must be sequential.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl"> <soapenv:Header/> <soapenv:Body> <wsdl:TaskContext> <wsdl:admin_id>superadmin</wsdl:admin_id> <wsdl:admin_password>test</wsdl:admin_password> </wsdl:TaskContext> <wsdl:ResubmitTasks> <wsdl:ResubmitTasksResubmitTasksTab> <wsdl:MultipleEvents> <wsdl:ResubmitEvents>true</wsdl:ResubmitEvents> <wsdl:EventIds> <!--Zero or more repetitions:--> <wsdl:currentvalue index="1"> <wsdl:EventId>a1551200-191719d1-ee172cc0-d8e94b</wsdl:EventId> </wsdl:currentvalue> <wsdl:currentvalue index="2"> <wsdl:EventId>c31614bf-3fdf2d2c-90f09006-dfe76d</wsdl:EventId> </wsdl:currentvalue> </wsdl:EventIds> </wsdl:MultipleEvents> </wsdl:ResubmitTasksResubmitTasksTab> </wsdl:ResubmitTasks> </soapenv:Body> </soapenv:Envelope>
Resubmit a Singleton Event
Use the following query to resubmit a singleton event.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl"> <soapenv:Header/> <soapenv:Body> <wsdl:TaskContext> <wsdl:admin_id>superadmin</wsdl:admin_id> <wsdl:admin_password>test</wsdl:admin_password> </wsdl:TaskContext> <wsdl:ResubmitTasks> <!--Optional:--> <wsdl:ResubmitTasksResubmitTasksTab> <wsdl:EventDetails> <wsdl:EventId>658aebcc-0a971b7d-74be5bc7-2fc3951d</wsdl:EventId> <wsdl:ResubmitEvent>true</wsdl:ResubmitEvent> </wsdl:EventDetails> </wsdl:ResubmitTasksResubmitTasksTab> </wsdl:ResubmitTasks> </soapenv:Body> </soapenv:Envelope>
By default, the Resubmit Task from category3="Task Run Time Management" does not have a resubmitScope set, which means the scope is type "Yours" by default. This scope type means that the administrator running the resubmit task will be unable to re-submit if the original task was submitted by a different administrator.
To change this default behavior, you have two choices:
Either set
resubmitScope
to either UserScope or Anyone:
<Tab tag="ResubmitTasks" tabdefinition="ResubmitTasks"> <PropertyDict name="Config"> <Property name="Name">Resubmit Tasks</Property> <Property name="TaskType">RunTimeTask</Property> <Property name="resubmitScope">Anyone</Property> </PropertyDict> </Tab>
Or you can have <Property name="resubmitScope">UserScope </Property>; just make sure the Administrator running the resubmit task has apt user scope.