/**
  * @see org.dwfa.bpa.process.I_DefineTask#complete(org.dwfa.bpa.process.I_EncodeBusinessProcess,
  *     org.dwfa.bpa.process.I_Work)
  */
 public void complete(I_EncodeBusinessProcess process, I_Work worker) throws TaskFailedException {
   try {
     ServiceID serviceID = null;
     Class<?>[] serviceTypes = new Class[] {I_QueueProcesses.class};
     Entry[] attrSetTemplates = new Entry[] {this.queueType, this.queueType2};
     ServiceTemplate template = new ServiceTemplate(serviceID, serviceTypes, attrSetTemplates);
     ServiceItemFilter filter = null;
     ServiceItem service = worker.lookup(template, filter);
     I_QueueProcesses q = (I_QueueProcesses) service.service;
     q.write(process, worker.getActiveTransaction());
   } catch (Exception e) {
     throw new TaskFailedException(e);
   }
 }