Examples of Outcome


Examples of co.arcs.groove.basking.task.SyncTask.Outcome

            syncService.getEventBus().register(consoleLogger);

            ListenableFuture<Outcome> serviceOutcome = syncService.start(config);

            try {
                Outcome outcome = serviceOutcome.get();
                if (outcome.getFailedToDownload() > 0) {
                    System.exit(1);
                }
            } catch (Throwable t) {
                System.exit(1);
            }
View Full Code Here

Examples of com.arjuna.mw.wsas.activity.Outcome

          throw new InvalidActivityException(
              wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_2")
                  + " " + this);
        }

        Outcome current = null;

        try
        {
          setCompletionStatus(cs);
        }
        catch (Exception ex)
        {
          // ignore and complete with the status we have.
        }

        _status = Completing.instance();

        try
        {
          OrderedList hls = HLSManager.HLServices();
          OrderedListIterator iter = new OrderedListIterator(hls);
          HLSWrapper elem = (HLSWrapper) iter.iterate();

          while (elem != null)
          {
            Outcome result = null;

            try
            {
              result = elem.hls().complete(getCompletionStatus());
            }
View Full Code Here

Examples of com.arjuna.mw.wsas.activity.Outcome

  /*
  if (currentActivity.parent() != null)
      throw new ActiveChildException();
  */

  Outcome res = null;
 
  try
  {
      res = currentActivity.end();
  }
View Full Code Here

Examples of com.arjuna.mw.wsas.activity.Outcome

  /*
  if (currentActivity.parent() != null)
      throw new ActiveChildException();
  */

  Outcome res = null;
 
  try
  {
      res = currentActivity.end(cs);
  }
View Full Code Here

Examples of com.arjuna.mw.wsas.activity.Outcome

        ua.start();
   
    if (ua.status() != Active.instance()) {
            fail("Status should be Active " + ua.status());
        }
        Outcome res = ua.end();

        if (!res.completedStatus().equals(Failure.instance())) {
            fail("Completed status should be Failure " + res.completedStatus());
        }
    }
View Full Code Here

Examples of com.cloudbees.groovy.cps.Outcome

        boolean changed;    // used to see if we need to loop over
        do {
            changed = false;
            for (CpsThread t : threads.values().toArray(new CpsThread[threads.size()])) {
                if (t.isRunnable()) {
                    Outcome o = t.runNextChunk();
                    if (o.isFailure()) {
                        assert !t.isAlive();    // failed thread is non-resumable

                        // workflow produced an exception
                        Result result = Result.FAILURE;
                        Throwable error = o.getAbnormal();
                        if (error instanceof FlowInterruptedException) {
                            result = ((FlowInterruptedException) error).getResult();
                        }
                        execution.setResult(result);
                        t.head.get().addAction(new ErrorAction(error));
View Full Code Here

Examples of eu.mosaic_cloud.benchmarks.prototype.Unit.StatisticsReducer.Outcome

      elapsed = (stoped - started) / 1000f / 1000f / 1000f;
    }
    {
      final Unit.StatisticsReducer reducer = new Unit.StatisticsReducer ();
      reducer.reduce (reducers);
      final Outcome outcome = reducer.outcome ();
      outcome.elapsed = elapsed;
      outcome.throughput = reducer.count / elapsed;
      this.report (arguments, outcome);
    }
  }
View Full Code Here

Examples of mage.constants.Outcome

    public MaximumHandSizeControllerEffect copy() {
        return new MaximumHandSizeControllerEffect(this);
    }
   
    protected static Outcome defineOutcome(HandSizeModification handSizeModification, TargetController targetController) {
        Outcome newOutcome = Outcome.Benefit;
        if ((targetController.equals(TargetController.YOU) || targetController.equals(TargetController.ANY))
                && handSizeModification.equals(HandSizeModification.REDUCE)) {
            newOutcome = Outcome.Detriment;
        }
        return newOutcome;
View Full Code Here

Examples of mage.constants.Outcome

        }
       
        if (targetId == null) {
            Target target = card.getSpellAbility().getTargets().get(0);
            Player player = game.getPlayer(card.getOwnerId());
            Outcome auraOutcome = Outcome.BoostCreature;
            Ability: for (Ability ability:card.getAbilities()) {
                if (ability instanceof SpellAbility) {
                    for (Effect effect: ability.getEffects()) {
                        if (effect instanceof AttachEffect) {
                            auraOutcome = effect.getOutcome();
View Full Code Here

Examples of mage.constants.Outcome

                Card card = game.getCard(uuid);
                if (card != null) {
                    if (card.getCardType().contains(CardType.ENCHANTMENT)) {
                        Effect effect = card.getSpellAbility().getEffects().get(0);
                        if (effect != null) {
                            Outcome outcome = effect.getOutcome();
                            if (outcome.isGood()) {
                                enchantments++;
                            } else if (!outcome.equals(Outcome.Detriment)) {
                                enchantments--;
                            }
                        }
                    } else {
                        equipments++;
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.