Examples of Task


Examples of org.camunda.bpm.engine.task.Task

    when(mockExecutionQuery.singleResult()).thenReturn(mockExecution);
    when(mockRuntimeService.createExecutionQuery()).thenReturn(mockExecutionQuery);
  }

  private void createTaskMock() {
    Task mockTask = MockProvider.createMockTask();

    TaskQuery mockTaskQuery = mock(TaskQuery.class);
    when(mockTaskQuery.taskId(eq(MockProvider.EXAMPLE_TASK_ID))).thenReturn(mockTaskQuery);
    when(mockTaskQuery.initializeFormKeys()).thenReturn(mockTaskQuery);
    when(mockTaskQuery.singleResult()).thenReturn(mockTask);
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.Task

    initializeBlocking(element, activity, context);
  }

  protected void initializeBlocking(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) {
    Task task = (Task) getDefinition(element);
    activity.setProperty("isBlocking", task.isBlocking());
  }
View Full Code Here

Examples of org.codehaus.plexus.taskqueue.Task

    private PlexusContainer container;

    public void cancelBuild()
        throws TaskQueueManagerException
    {
        Task task = getBuildTaskQueueExecutor().getCurrentTask();

        if ( task != null )
        {
            if ( task instanceof BuildProjectTask )
            {
View Full Code Here

Examples of org.danann.cernunnos.Task

        for (Resource et : entityTypes) {

            // Parse the Element and retrieve the associated Task...
            final Node n = sax.read(et.getInputStream()).getRootElement();
            final String importScript = n.valueOf("@script");
            final Task k = importTasks.get(importScript);
           
            // Figure out what the type/description should be...
            final Class<?> type = Class.forName(n.valueOf("name"));
            final String desc = n.valueOf("desc-name");
View Full Code Here

Examples of org.eclipse.bpmn2.Task

        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("sequenceFlow.json"), "").getContents().get(0));
        assertTrue(definitions.getRootElements().size() == 1);
        Process process = getRootProcess(definitions);
        assertTrue(process.getFlowElements().get(0) instanceof Task);
        Task task = (Task) process.getFlowElements().get(0);
        assertEquals("task1", task.getName());
        Task task2 = (Task) process.getFlowElements().get(1);
        assertEquals("task2", task2.getName());
        SequenceFlow flow = (SequenceFlow) process.getFlowElements().get(2);
        assertEquals("seqFlow", flow.getName());
        assertEquals(task, flow.getSourceRef());
        assertEquals(task2, flow.getTargetRef());
        definitions.eResource().save(System.out, Collections.emptyMap());
View Full Code Here

Examples of org.eclipse.sapphire.ui.DelayedTasksExecutor.Task

            new SelectionAdapter()
            {
                @Override
                public void widgetSelected( final SelectionEvent event )
                {
                    final Task task = new Task()
                    {
                        @Override
                        public void run()
                        {
                            if( checkbox.isDisposed() )
View Full Code Here

Examples of org.eobjects.analyzer.job.tasks.Task

            throw new InvalidHttpResponseException(url, response);
          }

          final HttpEntity responseEntity = response.getEntity();
          final long expectedSize = responseEntity.getContentLength();
          publish(new Task() {
            @Override
            public void execute() throws Exception {
              _downloadProgressWindow.setExpectedSize(file, expectedSize);
            }
          });

          inputStream = responseEntity.getContent();
          outputStream = new BufferedOutputStream(new FileOutputStream(file));

          long bytes = 0;
          for (int numBytes = inputStream.read(buffer); numBytes != -1; numBytes = inputStream.read(buffer)) {
            if (_cancelled) {
              break;
            }
            outputStream.write(buffer, 0, numBytes);
            bytes += numBytes;

            final long totalBytes = bytes;
            publish(new Task() {
              @Override
              public void execute() throws Exception {
                _downloadProgressWindow.setProgress(file, totalBytes);
              }
            });
          }

          if (!_cancelled) {
            publish(new Task() {
              @Override
              public void execute() throws Exception {
                _downloadProgressWindow.setFinished(file);
              }
            });
View Full Code Here

Examples of org.eweb4j.spiderman.task.Task

   
    //记录已经访问过该url,下次不要重复访问它
    visitedUrls.add(nextUrl);
   
    //解析nextPage
    Task nextTask = new Task(nextUrl, task.url, task.site, 0);
    Model nextModel = new Model();
    List<Field> isAlsoParseInNextPageFields = target.getModel().getIsAlsoParseInNextPageFields();
    if (isAlsoParseInNextPageFields == null || isAlsoParseInNextPageFields.isEmpty())
      return ;
   
View Full Code Here

Examples of org.exoplatform.services.scheduler.Task

  
   public void execute(JobContext context) throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
      Task task = qtasks.poll();
      while (task != null)
      {
         try
         {
            task.execute();
         }
         catch (Exception ex)
         {
            LOG.error(ex.getLocalizedMessage(), ex);
         }
View Full Code Here

Examples of org.fireflow.model.Task

        if (!Task.TOOL.equals(taskInstance.getTaskType())) {
            throw new EngineException(processInstance,
                    taskInstance.getActivity(),
                    "DefaultToolTaskInstanceRunner:TaskInstance的任务类型错误,只能为TOOL类型");
        }
        Task task = taskInstance.getTask();
        if (task == null) {
            WorkflowProcess process = taskInstance.getWorkflowProcess();
            throw new EngineException(taskInstance.getProcessInstanceId(), process,
                    taskInstance.getTaskId(),
                    "The Task is null,can NOT start the taskinstance,");
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.