Examples of ProcessType


Examples of com.apress.progwt.client.domain.ProcessType

            throws JSONException {
        JSONWrapper jsw = new JSONWrapper(object);

        if (clazz == ProcessType.class) {

            ProcessType rtn = new ProcessType();

            rtn.setId(jsw.getLong("id"));
            rtn.setName(jsw.getString("name"));
            rtn.setUseByDefault(jsw.getBoolean("useByDefault"));
            rtn.setStatus_order(jsw.getInt("status_order"));
            rtn.setPercentage(jsw.getBoolean("percentage"));
            rtn.setDated(jsw.getBoolean("dated"));
            return (T) rtn;
        }

        throw new UnsupportedOperationException(
                "No deserializer for class " + clazz);
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

     */
    public static String serialize(JSONSerializable obj) {
        JSONWrapper jsonObject = new JSONWrapper();

        if (obj instanceof ProcessType) {
            ProcessType processType = (ProcessType) obj;
            jsonObject.put("id", processType.getId());
            jsonObject.put("name", processType.getName());
            jsonObject.put("useByDefault", processType.isUseByDefault());
            jsonObject.put("status_order", processType.getStatus_order());
            jsonObject.put("percentage", processType.isPercentage());
            jsonObject.put("dated", processType.isDated());
        }

        return jsonObject.getObject().toString();
    }
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

        Application sap = new Application(sc);
        currentUser.addRanked(sap);

        String NAME = "Mailed";
        ProcessType processType = new ProcessType(NAME);
        currentUser.getProcessTypes().add(processType);

        ProcessValue processValue = new ProcessValue();
        sap.getProcess().put(processType, processValue);

        schoolDAO.save(currentUser);

        User savedUser = userDAO.getUserByUsername(currentUser
                .getUsername());
        assertEquals(1, savedUser.getSchoolRankings().size());

        assertEquals(9, savedUser.getProcessTypes().size());

        ProcessType savedPT = null;
        // iterate to the last one
        Iterator i = currentUser.getProcessTypes().iterator();
        while (i.hasNext()) {
            savedPT = (ProcessType) i.next();
        }
        assertEquals(NAME, savedPT.getName());

        Application savedSAP = savedUser.getSchoolRankings().get(0);

        ProcessValue savedPValue = savedSAP.getProcess().get(savedPT);
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

        Application dartApplication = savedUser.getSchoolRankings()
                .get(0);

        assertEquals(dart, dartApplication.getSchool());

        ProcessType considering = getUser().getProcessTypes().get(0);

        ProcessValue processValue = new ProcessValue();
        Calendar d = Calendar.getInstance();
        d.set(2005, 3, 10);
        processValue.setDueDate(d.getTime());
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

            throws SiteException {

        Application application = commandService.get(Application.class,
                schoolAppID);

        ProcessType type = (ProcessType) commandService.get(
                ProcessType.class, processTypeID);

        assertUserIsAuthenticated(application.getUser());

        application.getProcess().put(type, value);
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

    protected void createAndReturnSuggestions(Request request,
            Callback callback, List<? extends Object> results) {
        List<ProcessSuggestion> suggestions = new ArrayList<ProcessSuggestion>();

        for (Object obj : results) {
            ProcessType process = (ProcessType) obj;
            Log.debug("Found processType " + process);
            suggestions.add(new ProcessSuggestion(process, request
                    .getQuery()));
        }
        callback.onSuggestionsReady(request, new Response(suggestions));
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

            Image dragImage = ConstHolder.images.bullet_blue()
                    .createImage();

            ProcessTimeLineEntry pte = (ProcessTimeLineEntry) tlo
                    .getHasDate();
            ProcessType processType = pte.getProcessType();

            String imageName = processType.getImageName();
            if (imageName != null) {
                if (imageName.equals("applying")) {
                    mainWidget = ConstHolder.images.applying()
                            .createImage();
                } else if (imageName.equals("accepted")) {
                    mainWidget = ConstHolder.images.accepted()
                            .createImage();
                } else if (imageName.equals("rejected")) {
                    mainWidget = ConstHolder.images.rejected()
                            .createImage();
                } else if (imageName.equals("applied")) {
                    mainWidget = ConstHolder.images.applied()
                            .createImage();
                } else if (imageName.equals("considering")) {
                    mainWidget = ConstHolder.images.considering()
                            .createImage();
                }
            } else {
                if (processType.isPercentage()) {
                    mainWidget = new ProcessPercentWidget(controller,
                            processType, pte.getProcessValue());
                } else {
                    mainWidget = new ProcessCheckboxWidget(controller,
                            processType, pte.getProcessValue());
                }
                mainLabel = new Label(processType.getName(), false);
            }

            tlow = new TLOWrapper(zoomableTimeline, tlo, dragImage,
                    mainWidget, mainLabel);
View Full Code Here

Examples of com.apress.progwt.client.domain.ProcessType

    public ApplicationStatusChooserWidget(Application application,
            ServiceCache serviceCache) {

        this.serviceCache = serviceCache;

        ProcessType currentStatus = application.getCurrentStatus();

        lab = new Label(currentStatus.getName());
        lab.addClickListener(new ClickListener() {
            public void onClick(Widget sender) {
                showOptions();
            }
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccProcessType.ProcessType

        DuccId duccId = resourceMapIterator.next();
        IResource resource = resourceMap.get(duccId);
        Node node = resourceMap.get(duccId).getNode();
        NodeIdentity nodeId = node.getNodeIdentity();
        if(!processMap.containsKey(duccId)) {
          ProcessType processType = null;
          switch(duccWorkJob.getServiceDeploymentType()) {
          case custom:
          case other:
            processType = ProcessType.Pop;
            break;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccProcessType.ProcessType

          while(upcIterator.hasNext()) {
            IUimaPipelineAEComponent upc = upcIterator.next();
            logger.debug(methodName, null, processId, "pipelineInfo: "+inventoryProcess.getNodeIdentity()+" "+inventoryProcess.getPID()+" "+upc.getAeName()+" "+upc.getAeState()+" "+upc.getInitializationTime());
          }
        }
        ProcessType processType = inventoryProcess.getProcessType();
        if(processType != null) {
          DuccId jobId = OrchestratorCommonArea.getInstance().getProcessAccounting().getJobId(processId);
          if(jobId != null) {
            IDuccWork duccWork = workMap.findDuccWork(jobId);
            if(duccWork != null) {
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.