Informatica ActiveVOS
- Informatica ActiveVOS 9.2.6
- All Products
// Service port TaskOperations wshtServicePort = null; // // Code to create wshtServicePort similar to previous example // // Id of task we want to claim String taskId = "urn:b4p:5"; try { // claim wshtServicePort.claim(taskId); } catch(IllegalArgumentFault illegalArgumentFault) { //Fault due to invalid task id. System.out.println("IllegalArgumentFault: " + illegalArgumentFault.getFaultInfo()); } catch(IllegalStateFault illegalStateFault) { // Illegal state. For example, tried to claim a task that was not in a // a READY state (unclaimed). IllegalState illegalState = illegalStateFault.getFaultInfo(); // Sample: // illegalState.getStatus(): 'RESERVED' (already claimed) // illegalState.getMessage(): 'Task must be in the READY state to be claimed.' System.out.println("IllegalStateFault: " + "\n taskStatus=" + illegalState.getStatus() + "\n " + illegalState.getMessage()); }