Examples of Task


Examples of net.sf.pmr.agilePlanning.domain.story.task.Task

    /**
     * test quand la task est trouv�e
     */
    public void testFindByIdWhenTaskIsFound() {
       
        Task task = (Task) taskMapper.findById(TaskToFind.getPersistanceId());
       
        assertEquals("id", TaskToFind.getPersistanceId(), task.getPersistanceId());
        assertEquals("daysestimated", TaskToFind.getDaysEstimated(), task.getDaysEstimated());
        assertEquals("shortDescription", TaskToFind.getShortDescription(), task.getShortDescription());
        assertEquals("version", TaskToFind.getPersistanceVersion(), task.getPersistanceVersion());
               
    }
View Full Code Here

Examples of net.sourceforge.fullsync.Task

    actions.add(ignore);

    Action[] as = new Action[actions.size()];
    actions.toArray(as);
    return new Task(src, dst, state, as);
  }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.Task

public class TestSupertaskAdjustment extends TaskTestCase {
    public void testSupetaskDurationGrowsWhenNestedTasksGrow()
            throws TaskDependencyException {
        TaskManager taskManager = getTaskManager();
        Task supertask = taskManager.createTask();
        Task task1 = taskManager.createTask();
        Task task2 = taskManager.createTask();
        //
        task1.move(supertask);
        task2.move(supertask);
        //
        task1.setStart(new GanttCalendar(2000, 01, 01));
        task1.setEnd(new GanttCalendar(2000, 01, 03));
        task2.setStart(new GanttCalendar(2000, 01, 03));
        task2.setEnd(new GanttCalendar(2000, 01, 04));
        supertask.setStart(new GanttCalendar(2000, 01, 01));
        supertask.setEnd(new GanttCalendar(2000, 01, 04));
        //
        TaskDependency dep = taskManager
                .getDependencyCollection()
View Full Code Here

Examples of net.sphene.goim.rcp.xmpp.Task

    disco.setNode(null);
    //DiscoverInfo info = disco.discoverInfo(addressid);
    new GOIMPacketListener(account.xmpp.getConnection(),new PacketIDFilter(disco.getPacketID()),taskObserver){
      public void processPacket(final Packet packet) {
        unregisterListener(false);
        final Task task = this;
        if(packet.getError() != null &&
            (packet.getError().getCode() == 404 || // not found
             packet.getError().getCode() == 501)) { // not implemented)
          sendBrowseIQ();
        }
View Full Code Here

Examples of open.dolphin.helper.Task

        String message = "スタンプ箱";
        String note = "スタンプツリーを読み込んでいます...";
        Component c = windowSupport.getFrame();

        Task stampTask = new Task<Boolean>(c, message, note, 30*1000) {

            @Override
            protected Boolean doInBackground() throws Exception {
                bootLogger.debug("stampTask doInBackground");
                Boolean result = task.call();
                return result;
            }

            @Override
            protected void succeeded(Boolean result) {
                bootLogger.debug("stampTask succeeded");
                if (result.booleanValue()) {
                    stampBox.start();
                    stampBox.getFrame().setVisible(true);
                    providers.put("stampBox", stampBox);
                    windowSupport.getFrame().setVisible(true);
                } else {
                    System.exit(1);
                }
            }

            @Override
            protected void failed(Throwable cause) {
                bootLogger.debug("stampTask failed");
                bootLogger.debug(cause.getCause());
                bootLogger.debug(cause.getMessage());
                System.exit(1);
            }

            @Override
            protected void cancelled() {
                bootLogger.debug("stampTask cancelled");
                System.exit(1);
            }
        };
        //stampTask.setMillisToPopup(200);
        stampTask.execute();
    }
View Full Code Here

Examples of oracle.bpel.services.workflow.task.model.Task

               
                if (processName.equalsIgnoreCase("process")) {
                    //TODO: Change this value to the number of requests you wish to create
                    int numOfInstancesToCreate = 4;
                    for (int i=0; i < numOfInstancesToCreate; i++){
                        Task initdTask = initiateProcess(bpmCtx_, processDN);//null;
                       
                        // get the task number from the new task so we can use it to the get URL of the human workflow to display later.
                        int taskNum = initdTask.getSystemAttributes().getTaskNumber();
                       
                        initdTask = wfClient_.getTaskQueryService().getTaskDetailsByNumber(bpmCtx_, taskNum);
                       
                        Element rootElement = initdTask.getPayloadAsElement();
                        displayPayloadAsString((XMLElement)rootElement);
                       
                        // Manipulate payload values as necessary
                        String ticketNum = "";
                        Date dt = new Date();
                        SimpleDateFormat dateFormatMonthYear = new SimpleDateFormat("MMyy");
                        String ticketNumberMMyy = dateFormatMonthYear.format(dt);
                        ticketNum = ticketNumberMMyy + "-" + initdTask.getProcessInfo().getInstanceId();
                        rootElement.getElementsByTagName("ticketNumber").item(0).setTextContent(ticketNum);
                        initdTask.setPayloadAsElement(rootElement);
                       
                        displayPayloadAsString((XMLElement)initdTask.getPayloadAsElement());
                       
                        try {
                            initdTask = taskService_.updateTask(bpmCtx_, initdTask);
                        } catch (StaleObjectException e) {
                            e.printStackTrace();
                        }
                       
                        // Create a map to pass params to the WorklistUtil object. This is used to get the URL of the Human Workflow Task to display
                        Map params = new HashMap();
                        params.put(Constants.BPM_WORKLIST_TASK_ID, initdTask.getSystemAttributes().getTaskId());
                        params.put(Constants.BPM_WORKLIST_CONTEXT, bpmCtx_.getToken());
                        String url = "";
                        try {
                          url = WorklistUtil.getTaskDisplayURL(wfClient_, bpmCtx_, initdTask, null, "worklist", params);
                        } catch (Exception e) {
View Full Code Here

Examples of org.activiti.bpmn.model.Task

    super(fp);
  }

  @Override
  public PictogramElement add(IAddContext context) {
    final Task addedTask = (Task) context.getNewObject();
    final ContainerShape parent = context.getTargetContainer();

    // CONTAINER SHAPE WITH ROUNDED RECTANGLE
    final IPeCreateService peCreateService = Graphiti.getPeCreateService();
    final ContainerShape containerShape = peCreateService.createContainerShape(parent, true);
    final IGaService gaService = Graphiti.getGaService();

    DiagramBaseShape baseShape = DiagramBaseShape.ACTIVITY;

    if (ExtensionUtil.isCustomServiceTask(addedTask)) {
      final ServiceTask serviceTask = (ServiceTask) addedTask;
      final List<CustomServiceTask> customServiceTasks = ExtensionUtil.getCustomServiceTasks(ActivitiUiUtil.getProjectFromDiagram(getDiagram()));

      CustomServiceTask targetTask = null;

      for (final CustomServiceTask customServiceTask : customServiceTasks) {
        if (customServiceTask.getId().equals(serviceTask.getExtensionId())) {
          targetTask = customServiceTask;
          break;
        }
      }

      if (!DiagramBaseShape.ACTIVITY.equals(targetTask.getDiagramBaseShape())) {
        baseShape = targetTask.getDiagramBaseShape();
      }
    }

    int width = 0;
    int height = 0;
    GraphicsAlgorithm algorithm = null;

    switch (baseShape) {
    case ACTIVITY:
      // check whether the context has a size (e.g. from a create feature)
      // otherwise define a default size for the shape
      width = context.getWidth() <= 0 ? 105 : context.getWidth();
      height = context.getHeight() <= 0 ? 55 : context.getHeight();

      RoundedRectangle roundedRectangle; // need to access it later
      {
        // create invisible outer rectangle expanded by
        // the width needed for the anchor
        final Rectangle invisibleRectangle = gaService.createInvisibleRectangle(containerShape);
        gaService.setLocationAndSize(invisibleRectangle, context.getX(), context.getY(), width, height);

        // create and set visible rectangle inside invisible rectangle
        roundedRectangle = gaService.createRoundedRectangle(invisibleRectangle, 20, 20);
        algorithm = roundedRectangle;
        roundedRectangle.setParentGraphicsAlgorithm(invisibleRectangle);
        roundedRectangle.setStyle(StyleUtil.getStyleForTask(getDiagram()));
        gaService.setLocationAndSize(roundedRectangle, 0, 0, width, height);

        // create link and wire it
        link(containerShape, addedTask);
      }
      break;
    case GATEWAY:
      // check whether the context has a size (e.g. from a create feature)
      // otherwise define a default size for the shape
      width = context.getWidth() <= 0 ? 60 : context.getWidth();
      height = context.getHeight() <= 0 ? 60 : context.getHeight();

      Polygon polygon;
      {
        int xy[] = new int[] { 0, 30, 30, 0, 60, 30, 30, 60, 0, 30 };

        final Polygon invisiblePolygon = gaService.createPolygon(containerShape, xy);
        invisiblePolygon.setFilled(false);
        invisiblePolygon.setLineVisible(false);
        gaService.setLocationAndSize(invisiblePolygon, context.getX(), context.getY(), width, height);

        // create and set visible circle inside invisible circle
        polygon = gaService.createPolygon(invisiblePolygon, xy);
        algorithm = polygon;
        polygon.setParentGraphicsAlgorithm(invisiblePolygon);
        polygon.setStyle(StyleUtil.getStyleForTask(getDiagram()));
        gaService.setLocationAndSize(polygon, 0, 0, width, height);

        // create link and wire it
        link(containerShape, addedTask);
      }
      break;
    case EVENT:
      // check whether the context has a size (e.g. from a create feature)
      // otherwise define a default size for the shape
      width = context.getWidth() <= 0 ? 55 : context.getWidth();
      height = context.getHeight() <= 0 ? 55 : context.getHeight();

      Ellipse circle;
      {
        final Ellipse invisibleCircle = gaService.createEllipse(containerShape);
        invisibleCircle.setFilled(false);
        invisibleCircle.setLineVisible(false);
        gaService.setLocationAndSize(invisibleCircle, context.getX(), context.getY(), width, height);

        // create and set visible circle inside invisible circle
        circle = gaService.createEllipse(invisibleCircle);
        circle.setParentGraphicsAlgorithm(invisibleCircle);
        circle.setStyle(StyleUtil.getStyleForTask(getDiagram()));
        gaService.setLocationAndSize(circle, 0, 0, width, height);

        // create link and wire it
        link(containerShape, addedTask);
      }
      break;
    }

    // SHAPE WITH TEXT
    {
      // create shape for text
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set text graphics algorithm
      final MultiText text = gaService.createDefaultMultiText(getDiagram(), shape, addedTask.getName());
      text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        text.setFont(gaService.manageFont(getDiagram(), text.getFont().getName(), 11));
View Full Code Here

Examples of org.activiti.engine.task.Task

    ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("EasyBugFilingProcess", variables);
    String id = processInstance.getId();
    System.out.println("Started process instance id " + id);
    assertInActivity(id, "Handle_bug");
   
    Task task = taskService.createTaskQuery().taskAssignee("kermit").singleResult();
    variables = new HashMap<String, Object>();
    variables.put("isBug", Boolean.TRUE);
    taskService.complete(task.getId(), variables);
   
    assertProcessEnded(id);

    HistoricProcessInstance historicProcessInstance = historicDataService.createHistoricProcessInstanceQuery().processInstanceId(id).singleResult();
    assertNotNull(historicProcessInstance);
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.model.Task

    Tag t;

    if (JITWatchConstants.TAG_TASK.equals(name))
    {
      t = new Task(name, attrs, selfClosing, currentCompiler);
    }
    else
    {
      t = new Tag(name, attrs, selfClosing);
    }
View Full Code Here

Examples of org.akka.essentials.grid.Task

        // used when the new routee gets added to the server
        // we stop the currently running actor's on each client
        getContext().stop(getSelf());
      }
    } else if (message instanceof Task) {
      Task task = (Task) message;
      // check whether we have processed enough messages
      if (messageProcessedCounter == 100) {
        // tell the server, enough messages for me and shut me down
        getContext().stop(getSelf());
        getContext().system().shutdown();
      } else {
        log.info("Work Packet from server->" + task.getTaskNumber());
        messageProcessedCounter++;
        getSender().tell(new TaskFinished(task.getTaskNumber()));
      }
    }
  }
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.