use of com.evolveum.midpoint.wf.impl.messages.QueryProcessCommand in project midpoint by Evolveum.
the class WfProcessInstanceShadowTaskHandler method queryProcessInstance.
private void queryProcessInstance(String id, Task task, OperationResult parentResult) {
String taskOid = task.getOid();
Validate.notEmpty(taskOid, "Task oid must not be null or empty (task must be persistent).");
OperationResult result = parentResult.createSubresult(DOT_CLASS + "queryProcessInstance");
QueryProcessCommand qpc = new QueryProcessCommand();
qpc.setTaskOid(taskOid);
qpc.setPid(id);
try {
activitiInterface.queryActivitiProcessInstance(qpc, task, result);
} catch (RuntimeException | ObjectNotFoundException | ObjectAlreadyExistsException | SchemaException e) {
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't send a request to query a process instance to workflow management system", e);
result.recordPartialError("Couldn't send a request to query a process instance to workflow management system", e);
} finally {
result.computeStatusIfUnknown();
}
}
Aggregations