Package au.edu.qut.yawl.forms

Examples of au.edu.qut.yawl.forms.InterfaceD_XForm


      String jsessionid)
            throws YSchemaBuildingException, YSyntaxException, IOException,
            JDOMException, URISyntaxException, UnsupportedEncodingException {

        Map parameters = Collections.synchronizedMap(new TreeMap());
      InterfaceD_XForm idx = new InterfaceD_XForm(context.getInitParameter("YAWLXForms") + "/YAWLServlet");
     
      // set schema data
        String schema = createCaseSchema(caseID, sessionHandle, _worklistController);
        parameters.put("schema", schema);
       
        // set instance data
        SpecificationData specData = _worklistController.getSpecificationData(caseID, sessionHandle);
        InstanceBuilder ib = new InstanceBuilder(schema, specData.getRootNetID(), null);
        parameters.put("instance", ib.getInstance());
       
        // TODO need to query specData for the names of output params belonging to the case
       
        // set input parameter data (if any)
        //parameters.put("inputparams", getInputOutputParams(specData.getInputParams()));
       
        parameters.put("root", specData.getRootNetID());
        parameters.put("task", URLEncoder.encode(specData.getID(), "UTF-8"));
        parameters.put("task", specData.getID());
        parameters.put("specID", specData.getID());
        parameters.put("JSESSIONID", jsessionid);
       
        // send (post) data to yawlXForms thru interfaceD
        idx.sendWorkItemData(parameters, userID, specData.getID(), sessionHandle);
    }
View Full Code Here


      String jsessionid)
            throws YSchemaBuildingException, YSyntaxException, IOException,
            JDOMException, UnsupportedEncodingException {

        Map parameters = Collections.synchronizedMap(new TreeMap());
        InterfaceD_XForm idx = new InterfaceD_XForm(context.getInitParameter("YAWLXForms") + "/YAWLServlet");
       
        // set schema data
        String schema = createSchema(workItemID, sessionHandle, _worklistController);
        parameters.put("schema", schema);
               
        // retrieve list of input params to send to YAWLXForms that will display them
        // as read-only fields.
        WorkItemRecord item = _worklistController.getCachedWorkItem(workItemID);
        TaskInformation taskInfo = _worklistController.getTaskInformation(
                item.getSpecificationID(), item.getTaskID(), sessionHandle);
       
        // set instance data
        InstanceBuilder ib = new InstanceBuilder(schema, taskInfo.getDecompositionID(), item.getDataListString());
        parameters.put("instance", ib.getInstance());
       
        // set input params (if any exist)
        YParametersSchema paramsSignature = taskInfo.getParamSchema();
        parameters.put("inputparams", getInputOnlyParams(paramsSignature.getInputParams(), paramsSignature.getOutputParams()));
        parameters.put("root", taskInfo.getDecompositionID());
        parameters.put("task", URLEncoder.encode(taskInfo.getTaskID(), "UTF-8"));
        parameters.put("workItemID", item.getID());
        parameters.put("JSESSIONID", jsessionid);
       
        // send (post) data to yawlXForms thru interfaceD
        idx.sendWorkItemData(parameters, item, userID, sessionHandle);
    }
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.forms.InterfaceD_XForm

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.