Package org.fireflow.model

Examples of org.fireflow.model.TaskRef


     */
    protected void writeTaskRefs(List<TaskRef> taskRefs, Element parent) {
        Element taskRefsElement = Util4Serializer.addElement(parent, TASKREFS);
        Iterator<TaskRef>  iter = taskRefs.iterator();
        while (iter.hasNext()) {
            TaskRef taskRef = iter.next();
            Element taskRefElement = Util4Serializer.addElement(taskRefsElement, TASKREF);
            taskRefElement.addAttribute(REFERENCE, taskRef.getReferencedTask().getId());
        }
    }
View Full Code Here


        while(iter.hasNext()){
            Element elm = iter.next();
            String taskId = elm.attributeValue(REFERENCE);
            Task task = (Task)workflowProcess.findWFElementById(taskId);
            if (task!=null){
                TaskRef taskRef = new TaskRef(parent,task);
                taskRef.setSn(UUID.randomUUID().toString());
                taskRefs.add(taskRef);
            }
        }
    }
View Full Code Here

    protected void writeTaskRefs(List<TaskRef> taskRefs, Element parent,Document document) {
        Element taskRefsElement = Util4JAXPSerializer.addElement(document,parent, TASKREFS);
        Iterator<TaskRef> iter = taskRefs.iterator();
        while (iter.hasNext()) {
            TaskRef taskRef = iter.next();
            Element taskRefElement = Util4JAXPSerializer.addElement(document,taskRefsElement, TASKREF);
            taskRefElement.setAttribute(REFERENCE, taskRef.getReferencedTask().getId());
        }
    }
View Full Code Here

     */
    public List<Task> getTasks() {
        List<Task> tasks = new ArrayList<Task>();
        tasks.addAll(this.inlineTasks);
        for (int i=0;i<this.taskRefs.size();i++){
            TaskRef taskRef = taskRefs.get(i);
            tasks.add(taskRef.getReferencedTask());
        }
        return tasks;
    }
View Full Code Here

        while (iter.hasNext()) {
            Element elm = iter.next();
            String taskId = elm.getAttribute(REFERENCE);
            Task task = (Task) workflowProcess.findWFElementById(taskId);
            if (task != null) {
                TaskRef taskRef = new TaskRef(parent, task);
                taskRef.setSn(UUID.randomUUID().toString());
                taskRefs.add(taskRef);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.fireflow.model.TaskRef

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.