Examples of complete()


Examples of org.apache.ode.bpel.runtime.extension.ExtensionContext.complete()

        context.writeVariable("tmpVar", DOMUtils.stringToDOM(sb.toString()));
      } catch (Exception e) {
        e.printStackTrace();
        Assert.fail();
      } finally {
        context.complete(cid);
      }
    }
  }

  public static class TestExtensionValidatorActivity extends AbstractAsyncExtensionOperation {
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Redirector.complete()

        int err = 0;
        try {
            err = run(cmdline.getCommandline(), r.getOutputStream(), null);
        } catch (IOException e) {
            try {
                r.complete();
                log("Redirection of output terminated.", Project.MSG_VERBOSE);
            } catch (IOException ex) {
                log("Termination of output redirection failed: " + ex, Project.MSG_ERR);
            }
            throw new BuildException(e, getLocation());
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkReservation.complete()

          if(isAuthorized(dwid, reqUser, tgtUser, reqRole)) {
            logger.debug(methodName, dwid, "reqUser:"+reqUser+" "+"reqRole:"+reqRole+" "+"tgtUser:"+tgtUser);
            duccWorkReservation.getStandardInfo().setCancelUser(reqUser);
            duccWorkReservation.getStandardInfo().setDateOfCompletion(TimeStamp.getCurrentMillis());
            duccWorkReservation.stateChange(ReservationState.Completed);
            duccWorkReservation.complete(ReservationCompletionType.CanceledByUser);
            String u1 = duccWorkReservation.getStandardInfo().getUser();
            String u2 = duccWorkReservation.getStandardInfo().getCancelUser();
            if(u1 != null) {
              if(u2 != null) {
                if(!u1.equals(u2)) {
View Full Code Here

Examples of org.apache.xmlbeans.unmarshal.UnmarshalContext.complete()

            xinput.skip();
        }

        UnmarshalContext context = new UnmarshalContext();
        Object[] result = (Object[])messagePlan.unmarshal(xinput, context);
        context.complete();

        for (int i = 0; i < result.length; i++)
        {
            System.out.println("Result " + i + " = " + result[i]);
            if (result[i] instanceof TestStructure)
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.codeassist.CompletionEngine.complete()

      }
      engine.lookupEnvironment.cacheBinaryType(binary, null /*no access restriction*/);
    }
  }
 
  engine.complete(sourceUnit, mapper.startPosOffset + completionPosition, mapper.startPosOffset);
}
/**
* Deletes the given variable from this evaluation context. This will take effect in the target VM only
* the next time global variables are installed.
*/
 
View Full Code Here

Examples of org.camunda.bpm.engine.TaskService.complete()

     TaskService taskService = processEngine.getTaskService();
     Task task = taskService
       .createTaskQuery()
       .list()
       .get(0);
     taskService.complete(task.getId());
    
     // Check if the process instance has really ended.  This means that the process definition has
     // re-loaded into the process definition cache
     processInstance = processEngine
       .getRuntimeService()
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.complete()

    taskA.manualStart();

    // when

    // completing task A
    taskA.complete();

    // then
    List<String> expectedStateTransitions = new ArrayList<String>();

    // expected state transition:
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnCaseInstance.complete()

    assertTrue(taskA.isEnabled());

    try {
      // when
      // complete caseInstance
      caseInstance.complete();
    } catch (Exception e) {
      // then
      // case instance is still active
      assertTrue(caseInstance.isActive());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution.complete()

      TransferVariablesActivityBehavior behavior = null;

      if (superCaseExecution != null) {
        behavior = (TransferVariablesActivityBehavior) getActivityBehavior(superCaseExecution);
        behavior.transferVariables(execution, superCaseExecution);
        superCaseExecution.complete();
      }
    }

    CmmnExecution parent = execution.getParent();
    if (parent != null) {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.complete()

    // complete or resolve the task
    if (DelegationState.PENDING.equals(task.getDelegationState())) {
      task.resolve();
      task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_RESOLVE);
    } else {
      task.complete();
      task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_COMPLETE);
    }

    return null;
  }
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.