Package au.edu.qut.yawl.worklist.model

Examples of au.edu.qut.yawl.worklist.model.WorklistController


        ServletContext context = getServletContext();
        _worklistController = (WorklistController) context.getAttribute(
                "au.edu.qut.yawl.worklist.model.WorklistController");
        
        if (_worklistController == null) {
            _worklistController = new WorklistController();
            _worklistController.setUpInterfaceBClient(context.getInitParameter("InterfaceB_BackEnd"));
            _worklistController.setUpInterfaceAClient(context.getInitParameter("InterfaceA_BackEnd"));
            context.setAttribute("au.edu.qut.yawl.worklist.model.WorklistController",
                    _worklistController);
        }
View Full Code Here


*/
public class SpecificationBrowser extends HttpServlet {


    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        WorklistController controller = null;
        ServletContext context = getServletContext();
        controller = (WorklistController) context.getAttribute(
                "au.edu.qut.yawl.worklist.model.WorklistController");
        if (controller == null) {
            controller = new WorklistController();
            controller.setUpInterfaceBClient(context.getInitParameter("InterfaceB_BackEnd"));
            controller.setUpInterfaceAClient(context.getInitParameter("InterfaceA_BackEnd"));
            context.setAttribute("au.edu.qut.yawl.worklist.model.WorklistController", controller);
        }
        response.setContentType("text/xml");
        StringBuffer output = new StringBuffer();
        PrintWriter outputWriter = response.getWriter();
        String specID = request.getParameter("specID");
        if (specID != null) {
            SpecificationData specData = controller.getSpecificationData(
                    specID,
                    (String) request.getSession().getAttribute("sessionHandle"));
            String specAsXML = specData.getAsXML();
            output.append(specAsXML);
        }
View Full Code Here

*/
public class EngineStateQueryer {

    public EngineStateQueryer() {

        WorklistController wc = new WorklistController();
        wc.setUpInterfaceBClient("http://localhost:8080/yawl/ib");
        String sessionHandle = null;
        try {
            sessionHandle = wc.connect("admin", "YAWL");

            List availableWork = wc.getAvailableWork("admin", sessionHandle);
            /*System.out.println(
                    "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n" +
                    "\t\tAvailable Work Items\n" +
                    "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
            */
            for (int i = 0; i < availableWork.size(); i++) {
                WorkItemRecord record = (WorkItemRecord) availableWork.get(i);
                System.out.println("record.toXML() = " + record.toXML());
            }

            List activeWork = wc.getActiveWork("admin", sessionHandle);
            /*System.out.println(
                    "\n\n" +
                    "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n" +
                    "\t\tActive Work Items\n" +
                    "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.worklist.model.WorklistController

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.