Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.Activity.complete()


  ProcessData res = new DefaultProcessData ();
  String resParam = (String)((Object[])info.state())[1];
  res.put (resParam, "CANCELED");
  try {
      act.setResult (res);
      act.complete ();
      if (logger.isDebugEnabled ()) {
    logger.debug ("Timer application " + applId + " canceled, "
            + auk + " completed");
      }
      return;
View Full Code Here


      ((ExtActivity)act).abandon((ExceptionResult)resVal);
        } else {
            if (act instanceof ActivityProxy) {
                Activity aun = ((ActivityProxy)act).unwrap();
                aun.setResult(new DefaultProcessData ((Map)resVal));
                aun.complete ();
            }
        }
    }
      }
           if (RequestLog.isEnabled()) {
View Full Code Here

            try {
                ProcessDirectory pd
                    = wsc.getWorkflowService().processDirectory();
                Activity act = pd.lookupActivity(activityInfo.uniqueKey());
                act.setResult(instanceData.resultData());
                act.complete();
                assignSvc.applicationDirectory().removeInstance(applInfo.id());
            } catch (EvaluationException e) {
                logger.error (e.getMessage(), e);
            } catch (RemoteException e) {
            } catch (InvalidKeyException e) {
View Full Code Here

           
            return;
        }
       
        try {
            activity.complete();
        } catch (CannotCompleteException e) {
            FaultUtils.setFault(respMsg,
                    ASAPException.ASAP_INVALID_STATE_TRANSITION,
                    e.getMessage());
           
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.