Package nexj.core.meta.workflow

Examples of nexj.core.meta.workflow.Activity


            new Object[]{assignment.getName()});
      }

      if (fork.getConcurrentCount() == 1)
      {
         Activity activity = fork.getConcurrent(0);

         if (activity.getStep(0) instanceof Timeout)
         {
            activity.addStep(new Completion(assignment));
         }

         if (decision.getBranchCount() > 1)
         {
            for (int i = 0; i != activity.getStepCount(); ++i)
            {
               assignment.getActivity().addStep(activity.getStep(i));
            }

            return decision;
         }

         if (decision.getBranch(0).getStepCount() != 0)
         {
            for (int i = 0; i != activity.getStepCount(); ++i)
            {
               assignment.getActivity().addStep(activity.getStep(i));
            }

            activity = decision.getBranch(0);

            for (int i = 0; i != activity.getStepCount() - 1; ++i)
            {
               assignment.getActivity().addStep(activity.getStep(i));
            }
         }
         else
         {
            for (int i = 0; i != activity.getStepCount() - 1; ++i)
            {
               assignment.getActivity().addStep(activity.getStep(i));
            }
         }

         return activity.getStep(activity.getStepCount() - 1);
      }

      assignment.getActivity().addStep(fork);

      Join join = new Join(fork);
View Full Code Here


      Block block = new Block();

      block.setActivity(outerActivity);
      assignment.setNext(block);

      Activity blockActivity = block.getContainedActivity();

      Semaphore semaphore = new Semaphore(sStepName, assignment);

      semaphore.setActivity(blockActivity);
      blockActivity.addStep(semaphore);
      loader.loadActivity(element, blockActivity);
      block.setCleanupCode(semaphore.getExitCode());

      return block;
   }
View Full Code Here

TOP

Related Classes of nexj.core.meta.workflow.Activity

Copyright © 2018 www.massapicom. 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.