org.yawlfoundation.yawl.scheduling
Class FormGenerator

java.lang.Object
  extended by org.yawlfoundation.yawl.scheduling.FormGenerator
All Implemented Interfaces:
Constants

public class FormGenerator
extends Object
implements Constants

shows custom form for configuring utilisation plan

Version:
$Id: FormGenerator.java 30323 2011-05-17 10:50:07Z tbe $
Author:
tbe

Field Summary
 
Fields inherited from interface org.yawlfoundation.yawl.scheduling.Constants
ADDRESS_TYPE_EMAIL, ADDRESS_TYPE_IP, ADDRESS_TYPE_SMS, CSS_BOOLEANINPUT, CSS_DATEINPUT, CSS_DURATIONINPUT, CSS_ERRORINPUT, CSS_ERRORTEXT, CSS_INTINPUT, CSS_REQUIRED, CSS_TEXTINPUT, CSS_WARNINGINPUT, CSS_WARNINGTEXT, CSV_DELIMITER, DELIMITER, LANGUAGE_ATTRIBUTE_NAME, LANGUAGE_DEFAULT, LANGUAGES, MSGREL_AFTER, MSGREL_BEFORE, RESOURCE_STATUS_AVAILABLE, RESOURCE_STATUS_NOTAVAILABLE, RESOURCE_STATUS_REQUESTED, RESOURCE_STATUS_RESERVED, RESOURCE_STATUS_UNCHECKED, RESOURCE_STATUS_UNKNOWN, UTILISATION_TYPE_BEGIN, UTILISATION_TYPE_END, UTILISATION_TYPE_PLAN, WORD_SEPARATORS, XML_ACTIVITY, XML_ACTIVITYNAME, XML_ACTIVITYTYPE, XML_ADDRESS, XML_ADDRESSTYPE, XML_CAPABILITY, XML_CASEID, XML_CATEGORY, XML_CHANNEL, XML_DUMMY, XML_DURATION, XML_ENDTASKID, XML_ERROR, XML_EVENT_RECEIVE, XML_FILTERMODEL, XML_FROM, XML_ID, XML_MAX, XML_MESSAGE_SEND, XML_MESSAGEPUSH_SEND, XML_MESSAGES, XML_MIN, XML_MSGBODY, XML_MSGDURATION, XML_MSGREL, XML_MSGTO, XML_MSGTRANSFER, XML_MSGUTILISATIONTYPE, XML_OTHERACTIVITYNAME, XML_OTHERUTILISATIONTYPE, XML_PAYLOAD, XML_REQUESTTYPE, XML_RESCHEDULING, XML_RESERVATION, XML_RESERVATIONID, XML_RESOURCE, XML_RESOURCE_TYPE, XML_ROLE, XML_RUP, XML_RUP_LIGHT, XML_STARTTASKID, XML_STATUS, XML_STATUSTOBE, XML_SUBCATEGORY, XML_TEXT, XML_THISUTILISATIONTYPE, XML_TIMESTAMP, XML_TO, XML_UNIT, XML_UTILISATION, XML_UTILISATION_TYPE, XML_UTILISATIONREL, XML_UTILISATIONTYPE, XML_WARNING, XML_WORKLOAD, XSDDatatypes_Boolean, XSDDatatypes_DateTime, XSDDatatypes_Double, XSDDatatypes_Duration, XSDDatatypes_Int, XSDDatatypes_Long, XSDDatatypes_String
 
Constructor Summary
FormGenerator(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 ConfigManager getConfig()
           
protected  StringBuffer getForm(Case cas, boolean haveTosave)
          parses the ResourceUtilisationPlan and 1) generates HTML form for input of ResourceUtilisationPlan 2) generates list with keys for Reservations and UtilisationRelations to check
static org.jdom.Element getTemplate(String elementName)
          TODO@tbe: can we generate this templates from XSD?
 String outForm()
           
 void updateActivities(org.jdom.Document doc)
          - remove empty 'dummy' resOrUtils - set RequestType to POU, but only if SOU or EOU is not set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormGenerator

public FormGenerator(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
Method Detail

getConfig

public ConfigManager getConfig()

outForm

public String outForm()

updateActivities

public void updateActivities(org.jdom.Document doc)
                      throws org.jdom.JDOMException
- remove empty 'dummy' resOrUtils - set RequestType to POU, but only if SOU or EOU is not set

Throws:
org.jdom.JDOMException

getForm

protected StringBuffer getForm(Case cas,
                               boolean haveTosave)
                        throws IOException,
                               org.jdom.JDOMException
parses the ResourceUtilisationPlan and 1) generates HTML form for input of ResourceUtilisationPlan 2) generates list with keys for Reservations and UtilisationRelations to check

Parameters:
cas -
haveTosave -
Returns:
Throws:
IOException
org.jdom.JDOMException

getTemplate

public static org.jdom.Element getTemplate(String elementName)
TODO@tbe: can we generate this templates from XSD?

Parameters:
elementName -
Returns:


Copyright © 2004-2012 The YAWL Foundation.