本文整理汇总了Java中org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault类的典型用法代码示例。如果您正苦于以下问题:Java IllegalOperationFault类的具体用法?Java IllegalOperationFault怎么用?Java IllegalOperationFault使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IllegalOperationFault类属于org.wso2.carbon.humantask.stub.ui.task.client.api包,在下文中一共展示了IllegalOperationFault类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: taskListQuery
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
public TTaskSimpleQueryResultSet taskListQuery(TSimpleQueryInput queryInput)
throws RemoteException, IllegalArgumentFault, IllegalStateFault, IllegalOperationFault, IllegalAccessFault {
String errMsg = "Error occurred while performing taskListQuery operation";
try {
return stub.simpleQuery(queryInput);
} catch (Exception ex) {
handleException(errMsg, ex);
}
return null;
}
示例2: loadTask
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
*
* Load task data for the give task id.
*
* @param taskId :
* @return :
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
*/
public TTaskAbstract loadTask(URI taskId)
throws RemoteException, IllegalAccessFault, IllegalOperationFault, IllegalArgumentFault, IllegalStateFault {
String errMsg = "Error occurred while performing loadTask operation";
try {
return stub.loadTask(taskId);
} catch (Exception ex) {
handleException(errMsg, ex);
}
return null;
}
示例3: loadTaskInput
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Loads the task input.
*
* @param taskId : The id of the task/.
* @return : The task input OMElement.
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalStateFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws javax.xml.stream.XMLStreamException :
*/
public OMElement loadTaskInput(URI taskId)
throws RemoteException, IllegalStateFault, IllegalOperationFault, IllegalAccessFault, IllegalArgumentFault,
XMLStreamException {
String errMsg = "Error occurred while performing loadTaskInput operation";
try {
String input = (String) stub.getInput(taskId, null);
return AXIOMUtil.stringToOM(input);
} catch (Exception ex) {
handleException(errMsg, ex);
}
return null;
}
示例4: loadTaskOutput
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Loads the task output.
*
* @param taskId : The id of the task/.
* @return : The task input OMElement.
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalStateFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws javax.xml.stream.XMLStreamException :
*/
public OMElement loadTaskOutput(URI taskId)
throws RemoteException, IllegalStateFault, IllegalOperationFault, IllegalAccessFault, IllegalArgumentFault,
XMLStreamException {
String errMsg = "Error occurred while performing loadTaskOutput operation";
try {
String output = (String) stub.getOutput(taskId, null);
return AXIOMUtil.stringToOM(output);
} catch (Exception ex) {
handleException(errMsg, ex);
}
return null;
}
示例5: start
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
public void start(URI taskId)
throws RemoteException, IllegalStateFault, IllegalOperationFault, IllegalArgumentFault, IllegalAccessFault {
String errMsg = "Error occurred while performing start operation";
try {
stub.start(taskId);
} catch (Exception ex) {
handleException(errMsg, ex);
}
}
示例6: remove
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Task remove operation. Note: applicable for notifications only.
*
* @param taskId : The id of the task to be removed.
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
* @throws java.rmi.RemoteException :
*/
public void remove(URI taskId)
throws IllegalArgumentFault, IllegalOperationFault, IllegalAccessFault, RemoteException, IllegalStateFault {
String errMsg = "Error occurred while performing resume operation";
try {
stub.remove(taskId);
} catch (Exception ex) {
handleException(errMsg, ex);
}
}
示例7: handleException
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
private void handleException(String errMsg, Exception ex)
throws IllegalStateFault, IllegalOperationFault, IllegalArgumentFault,
IllegalAccessFault {
if (ex instanceof IllegalAccessFault) {
throw new IllegalAccessFault(errMsg, ex);
} else if (ex instanceof IllegalArgumentFault) {
throw new IllegalArgumentFault(errMsg, ex);
} else if (ex instanceof IllegalOperationFault) {
throw new IllegalOperationFault(errMsg, ex);
} else if (ex instanceof IllegalStateFault) {
throw new IllegalStateFault(errMsg, ex);
} else {
throw new IllegalStateFault(errMsg, ex);
}
}
示例8: checkMatchingTaskAndDelete
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
private void checkMatchingTaskAndDelete(String requestId, HumanTaskClientAPIAdminClient client,
TTaskSimpleQueryResultRow[] resultsList, int resultIndex, OMElementImpl
taskElement) throws RemoteException, IllegalStateFault,
IllegalOperationFault, IllegalArgumentFault, IllegalAccessFault {
if (taskElement.getLocalName().equals(WFImplConstant.HT_PARAMETER_LIST_ELEMENT)) {
Iterator<OMElementImpl> parameters = taskElement.getChildElements();
while (parameters.hasNext()) {
OMElementImpl parameter = parameters.next();
Iterator<OMAttribute> attributes = parameter.getAllAttributes();
while (attributes.hasNext()) {
OMAttribute currentAttribute = attributes.next();
if (currentAttribute.getLocalName().equals(WFImplConstant.HT_ITEM_NAME_ATTRIBUTE) &&
currentAttribute
.getAttributeValue().equals(WFImplConstant.HT_REQUEST_ID_ATTRIBUTE_VALUE)) {
Iterator<OMElementImpl> itemValues = parameter.getChildElements();
if (itemValues.hasNext()) {
String taskRequestId = itemValues.next().getText();
if (taskRequestId.contains(",")) {
taskRequestId = taskRequestId.replaceAll(",", "");
}
if (taskRequestId.equals(requestId)) {
client.skip(resultsList[resultIndex].getId());
}
}
}
}
}
}
}
示例9: skip
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* The skip operation.
* @param taskId : The task id.
* @throws IllegalArgumentFault :
* @throws IllegalOperationFault :
* @throws IllegalAccessFault :
* @throws IllegalStateFault :
* @throws RemoteException :
*/
public void skip(URI taskId)
throws IllegalArgumentFault, IllegalOperationFault, IllegalAccessFault,
IllegalStateFault, RemoteException {
String errMsg = "Error occurred while performing skip operation";
try {
stub.skip(taskId);
} catch (RemoteException | IllegalStateFault | IllegalOperationFault | IllegalArgumentFault | IllegalAccessFault e) {
log.error(errMsg, e);
throw e;
}
}
示例10: complete
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Task complete operation.
*
* @param taskId : The task id to be completed.
* @param payLoad : The payload.
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalStateFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
* @throws javax.xml.stream.XMLStreamException :
*/
public void complete(URI taskId, String payLoad)
throws RemoteException, IllegalAccessFault, IllegalArgumentFault, IllegalStateFault, IllegalOperationFault,
XMLStreamException {
String errMsg = "Error occurred while performing complete operation";
try {
String decodedPayload = decodeHTML(payLoad);
stub.complete(taskId, decodedPayload);
} catch (Exception ex) {
handleException(errMsg, ex);
}
}
示例11: claim
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Claim task operation.
*
* @param taskId : The ID of the task to be claimed.
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalStateFault :
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
*/
public void claim(URI taskId)
throws IllegalArgumentFault, IllegalAccessFault, IllegalStateFault, RemoteException, IllegalOperationFault {
String errMsg = "Error occurred while performing claim operation";
try {
stub.claim(taskId);
} catch (Exception ex) {
handleException(errMsg, ex);
}
}
示例12: stop
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Stop task.
*
* @param taskId : The task Id.
* @throws java.rmi.RemoteException :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalStateFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalArgumentFault :
* @throws org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalAccessFault :
*/
public void stop(URI taskId)
throws RemoteException, IllegalStateFault, IllegalOperationFault, IllegalArgumentFault, IllegalAccessFault {
String errMsg = "Error occurred while performing stop operation";
try {
stub.stop(taskId);
} catch (Exception ex) {
handleException(errMsg, ex);
}
}
示例13: getInput
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* Loads the task input.
*
* @param taskId : The id of the task/.
* @return : The task input OMElement.
* @throws RemoteException :
* @throws IllegalStateFault :
* @throws IllegalOperationFault:
* @throws IllegalAccessFault:
* @throws IllegalArgumentFault:
* @throws javax.xml.stream.XMLStreamException
*
*/
public OMElement getInput(URI taskId)
throws RemoteException, IllegalStateFault, IllegalOperationFault, IllegalAccessFault,
IllegalArgumentFault, XMLStreamException {
try {
String input = (String) stub.getInput(taskId, new NCName(""));
return AXIOMUtil.stringToOM(input);
} catch (RemoteException | IllegalStateFault | IllegalOperationFault | IllegalArgumentFault | IllegalAccessFault | XMLStreamException e) {
log.error("Error occurred while performing loadTaskInput operation", e);
throw e;
}
}
示例14: completeTask
import org.wso2.carbon.humantask.stub.ui.task.client.api.IllegalOperationFault; //导入依赖的package包/类
/**
* change the workItem status to Complete. it will hide from the management console
*
* @param id
* @throws RemoteException
* @throws IllegalStateFault
* @throws IllegalOperationFault
* @throws IllegalArgumentFault
* @throws IllegalAccessFault
*/
public void completeTask(URI id) throws RemoteException, IllegalStateFault,
IllegalOperationFault, IllegalArgumentFault, IllegalAccessFault {
htStub.start(id);
htStub.complete(id, "<WorkResponse>true</WorkResponse>");
}