public boolean checkInWorkflow(String id){
invoiceItems = this.editData.getInvoiceEntries();
txtTotalAmount.setEnabled(false);
ProcessInstInfo instInfo = null;
ProcessInstInfo[] procInsts = null;
try{
IEnactmentService service2 = EnactmentServiceFactory.createRemoteEnactService();
procInsts = service2.getProcessInstanceByHoldedObjectId(id);
}
catch (BOSException e){
handUIException(e);
}
int i = 0;
for (int n = procInsts.length; i < n; ++i) {
if (("open.running".equals(procInsts[i].getState())) || ("open.not_running.suspended".equals(procInsts[i].getState())))
instInfo = procInsts[i];
}
if (instInfo == null){
return false;
}else{
return true;
}
}