Package pl.net.bluesoft.rnd.processtool

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


    public void deployOrUpdateProcessDefinition(final InputStream bpmStream,
                                                final ProcessDefinitionConfig cfg,
                                                final ProcessQueueConfig[] queues,
                                                final InputStream imageStream,
                                                final InputStream logoStream) {
        withProcessToolContext(new ProcessToolContextCallback() {
            @Override
            public void withContext(ProcessToolContext processToolContext) {

                ProcessToolContext.Util.setThreadProcessToolContext(processToolContext);
                try {
View Full Code Here


    public void deployOrUpdateProcessDefinition(final InputStream bpmStream,
                                                final ProcessDefinitionConfig cfg,
                                                final ProcessQueueConfig[] queues,
                                                final InputStream imageStream,
                                                InputStream logoStream) {
        withProcessToolContext(new ProcessToolContextCallback() {
            @Override
            public void withContext(ProcessToolContext processToolContext) {

                ProcessToolContext.Util.setThreadProcessToolContext(processToolContext);
                try {
View Full Code Here

       
        withErrorHandling(getApplication(), new Runnable() {

          @Override
          public void run() {
            ProcessToolContext.Util.getThreadProcessToolContext().getRegistry().withProcessToolContext(new ProcessToolContextCallback() {
              @Override
              public void withContext(ProcessToolContext ctx) {
                ctx.getProcessDefinitionDAO().removeQueueConfigs(queues);
              }
            });
View Full Code Here

          queues.add(config);
         
          withErrorHandling(getApplication(), new Runnable() {
            @Override
            public void run() {
              ProcessToolContext.Util.getThreadProcessToolContext().getRegistry().withProcessToolContext(new ProcessToolContextCallback() {

                @Override
                public void withContext(ProcessToolContext ctx) {

                                    //no way!
View Full Code Here

        Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
        try {

            ProcessToolRegistry registry = (ProcessToolRegistry) getPortletConfig()
                    .getPortletContext().getAttribute(ProcessToolRegistry.class.getName());
            registry.withProcessToolContext(new ProcessToolContextCallback() {
                @Override
                public void withContext(ProcessToolContext ctx) {
                    ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                    try {
                        try {
View Full Code Here

                        }, providerId + "-messages"),
                        providerId
                );
            }

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

                run = true;
                while (run) {
                    try {
                        Thread.sleep(10000);
                        try {
                            toolRegistry.withProcessToolContext(new ProcessToolContextCallback() {
                                @Override
                                public void withContext(ProcessToolContext ctx) {
                                    ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                                    try {
                                        new FilesChecker(ctx).run();
View Full Code Here

        run = true;
        while (run) {
          try {
            Thread.sleep(10000);
            try {
              toolRegistry.withProcessToolContext(new ProcessToolContextCallback() {
                @Override
                public void withContext(ProcessToolContext ctx) {
                  ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                  try {
                    new EmailChecker(ctx).run();
View Full Code Here

    super.setUp();
  }
 
  protected void doTest(final AperteTestMethod testMethod)
  {
    registry.withProcessToolContext(new ProcessToolContextCallback()
    {
      @Override
      public void withContext(ProcessToolContext ctx)
      {
        ctx.getHibernateSession().beginTransaction();
View Full Code Here

    @Override
    protected Runnable getEventRunnable(final Object event) {
        return new Runnable() {
            @Override
            public void run() {
                registry.withProcessToolContext(new ProcessToolContextCallback() {
                    @Override
                    public void withContext(ProcessToolContext ctx) {
                        ProcessToolContext.Util.setThreadProcessToolContext(ctx);
                        try {
                            publish(event);
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.