Package nexj.core.meta.workflow

Examples of nexj.core.meta.workflow.Block


         true, outerActivity.getFlow().getPosMap(), assignment.getFactory(),
         m_metadata.getGlobalEnvironment()));
      assignment.setSemaphore(true);
      outerActivity.addStep(assignment);

      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


         }
      });

      if (codeHolder.getHead() != null)
      {
         Block block = new Block(tryCatch.getName() + ".finalizer");

         block.setActivity(outerActivity);
         block.setCleanupCode((Pair)codeHolder.getHead());
         tryCatch.setActivity(block.getContainedActivity());
         block.getContainedActivity().addStep(tryCatch);
         outerStep = block;
      }
      else
      {
         tryCatch.setActivity(outerActivity);
View Full Code Here

               Semaphore semaphore = new Semaphore(assignment.getName() + ":Semaphore", assignment);

               semaphore.setActivity(activity);
               activity.addStep(semaphore);

               Block block = new Block();

               block.setActivity(branch);
               branch.addStep(block);
               loadActivity(child, block.getContainedActivity());
               block.setCleanupCode(semaphore.getExitCode());
            }
            else
            {
               throw new MetadataException("err.meta.workflow.invalidQueueElement",
                  new Object[]{sElement, assignment.getName()});
View Full Code Here

TOP

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

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.