1 Reply Latest reply on Apr 18, 2011 10:55 AM by László van den Hoek

    Required Variable Access Not Enforced

    Keith Hamburg Newbie

      I have a task containing a variable with "required" access...

      <start-state name="A">
       <task name="ATask" >
       <variable name="varA" access="write,required">
       <transition to="B" name="Bname"></transition>

      but the requirement isn't enforced. I can leave the field empty and transition to the next node without a problem. I am using the console application and with a generated form (generated and then modified by hand). Here is the form for that task:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       <f:facet name="header">
       <h:outputText value="#{taskName}"/>
       <!-- TASKFORM ROWS -->
       <f:facet name="header">
       <h:outputText value="A"/>
       <h:inputText value="#{var['varA']}" />
       <f:facet name="header">
       <h:outputText value="Actions"/>
       <!-- TASKFORM BUTTONS -->
       <tf:saveButton value="Save"/>
       <tf:transitionButton transition="B" value="B"/>

      Is this a bug, or is there something else I need to do to require the variable?