Examples of addTask()


Examples of org.apache.tools.ant.taskdefs.Parallel.addTask()

        Parallel parallel = new Parallel();
        parallel.setThreadCount(4);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.addTask(resolve);
        parallel.execute();
    }

    public void testIVY779() throws Exception {
        Project project = new Project();
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Sequential.addTask()

        if (block != null) {
            //waitfor is not a task, it needs to be adapted
            TaskAdapter ta = new TaskAdapter(block);
            ta.bindToOwner(this);
            validateTask(ta, "block");
            testRun.addTask(ta);
            //add the block time to the total test run timeout
            testRunTimeout = block.calculateMaxWaitMillis();
        }

        //add the tests and more delay
View Full Code Here

Examples of org.drools.task.service.TaskServiceSession.addTask()

        potentialOwners = new ArrayList<OrganizationalEntity>();
        reassignment.setPotentialOwners( potentialOwners );
        potentialOwners.add( users.get( "stuart" ) );
        potentialOwners.add( users.get( "dalai" ) );       

        session.addTask( task1, null );
       
        session.dispose();       
        session = taskService.createSession();
       
        Task task2 = session.getTask( task1.getId( ) );      
View Full Code Here

Examples of org.dspace.curate.Curator.addTask()

                // Check for virus
                if (ConfigurationManager.getBooleanProperty("submission-curation", "virus-scan"))
                {
                    Curator curator = new Curator();
                    curator.addTask("vscan").curate(item);
                    int status = curator.getStatus("vscan");
                    if (status == Curator.CURATE_ERROR)
                    {
                        backoutBitstream(subInfo, b, item);
                        return STATUS_VIRUS_CHECKER_UNAVAILABLE;
View Full Code Here

Examples of org.eclipse.mylyn.internal.tasks.core.ITaskList.addTask()

        }
      } else {
        Job job = new Job("Import task") {
          protected IStatus run(IProgressMonitor monitor) {
            ((LocalContextStore) ContextCore.getContextStore()).importContext(context);
            taskList.addTask(task);
            scheduleTaskActivationJob();
            return Status.OK_STATUS;
          }
        };
        job.schedule();
View Full Code Here

Examples of org.geoserver.importer.ImportContext.addTask()

        replay(im, pi);

        ImportJSONWriter jsonio = new ImportJSONWriter(im, pi, buffer);

        ImportContext c = new ImportContext(0);
        c.addTask(new ImportTask());

        jsonio.transform(transform, 0, c.task(0), true, 1);

        ImportTransform transform2 = new ImportJSONReader(im, buffer.toString()).transform();
        PropertyDescriptor[] pd = BeanUtils.getPropertyDescriptors(transform.getClass());
View Full Code Here

Examples of org.goobi.production.chart.ProjectStatusDataTable.addTask()

    IProvideProjectTaskList ptl = new WorkflowProjectTaskList();

    List<? extends IProjectTask> tasklist = ptl.calculateProjectTasks(this.myProjekt, countImages, inMax);
    for (IProjectTask pt : tasklist) {
      pData.addTask(pt);
    }

    // Determine height of the image
    int height = ProjectStatusDraw.getImageHeight(pData.getNumberOfTasks());
View Full Code Here

Examples of org.jasig.portal.test.ThreadGroupRunner.addTask()

        reset(portalInfoProvider);
        when(portalInfoProvider.getUniqueServerName()).thenReturn("ServerA");
       
        final ThreadGroupRunner threadGroupRunner = new ThreadGroupRunner("JpaClusterLockDaoTest-", true);
       
        threadGroupRunner.addTask(3, new ThrowingRunnable() {
            @Override
            public void runWithException() throws Throwable {
                executeInTransaction(new CallableWithoutResult() {
                    @Override
                    protected void callWithoutResult() {
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.addTask()

    taskData.setActualOwner(new User("usr0"));
    task.setTaskData(taskData);
   
    ContentData data = new ContentData();
    BlockingAddTaskResponseHandler addTaskHandler = new BlockingAddTaskResponseHandler();
    client.addTask(task, data, addTaskHandler);
   
    long taskId = addTaskHandler.getTaskId();

    client.disconnect();
   
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.addTask()

    taskData2.setActualOwner(new User("usr0"));
    task2.setTaskData(taskData2);
     
    ContentData data2 = new ContentData();
    BlockingAddTaskResponseHandler addTaskHandler2 = new BlockingAddTaskResponseHandler();
    client.addTask(task2, data2, addTaskHandler2);
   
    long taskId2 = addTaskHandler2.getTaskId();
   
    assertTrue("taskId2 debe ser un valor mayor a cero", taskId2 > 0);
    assertNotSame("taskId y taskId2 deben ser distintos", taskId, taskId2);
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.