Package pl.net.bluesoft.rnd.processtool

Examples of pl.net.bluesoft.rnd.processtool.ProcessToolContextCallback


        initComponents();
      }
       
      else
      {
          registry.withProcessToolContext(new ProcessToolContextCallback()
          {
        @Override
        public void withContext(ProcessToolContext ctx)
        {
          ProcessToolContext.Util.setThreadProcessToolContext(ctx);
View Full Code Here


    }
   
    /** The method check if there are any new notifications in database to be sent */
    public void handleNotifications()
    {
        registry.withProcessToolContext(new ProcessToolContextCallback()
        {
      @Override
      public void withContext(ProcessToolContext ctx)
      {
        ProcessToolContext.Util.setThreadProcessToolContext(ctx);
View Full Code Here

        }
        Logger.getLogger(ProcessToolVaadinApplicationPortlet2.class.getSimpleName()).severe(ProcessToolRegistry.class.getName() + " not found in servlet context");
        //throw new ProcessToolException(ProcessToolRegistry.class.getName() + " not found in servlet context");
        return;
            }
            registry.withProcessToolContext(new ProcessToolContextCallback() {
                @Override
                public void withContext(ProcessToolContext ctx) {
                    ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                    try {
                        try {
View Full Code Here

    this.registry = registry;
  }

  public void changeDictionaryHelp(final DictionaryChangeRequest changeRequest)
  {
    registry.getProcessToolContextFactory().withProcessToolContext(new ProcessToolContextCallback()
    {
      @Override
      public void withContext(ProcessToolContext ctx)
      {
        ProcessToolContext.Util.setThreadProcessToolContext(ctx);
View Full Code Here

    public void init() {
        registry.getExecutorService().submit(new Runnable() {
            @Override
            public void run() {
                registry.withProcessToolContext(new ProcessToolContextCallback() {
                    @Override
                    public void withContext(ProcessToolContext ctx) {
                        ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                        try {
                            ProcessToolBpmSession bpmSession = ctx.getProcessToolSessionFactory().createAutoSession();
View Full Code Here

            logger.info("No deadlines found for process: " + pi.getInternalId());
        }
    }

    public void handleDeadlineJob(final String processInstanceId, final ProcessDeadline processDeadline) {
        registry.withProcessToolContext(new ProcessToolContextCallback() {
            @Override
            public void withContext(ProcessToolContext ctx) {
                ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                try {
                    signalDeadline(ctx, processInstanceId, processDeadline);
View Full Code Here

  }
 
  /** Initialize new session and context for database access */
  private void fillUserQueuesMap()
  {
    reg.getProcessToolContextFactory().withProcessToolContext(new ProcessToolContextCallback()
    {
      @Override
      public void withContext(ProcessToolContext ctx)
      {
        ProcessToolContext.Util.setThreadProcessToolContext(ctx);
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.ProcessToolContextCallback

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.