[CMF-checkins] CVS: CMF/DCWorkflow/dtml - state_variables.dtml:1.1 transition_variables.dtml:1.1 states.dtml:1.2 transitions.dtml:1.3

Shane Hathaway shane@digicool.com
Fri, 31 Aug 2001 10:36:43 -0400


Update of /cvs-repository/CMF/DCWorkflow/dtml
In directory cvs.zope.org:/tmp/cvs-serv7877/dtml

Modified Files:
	states.dtml transitions.dtml 
Added Files:
	state_variables.dtml transition_variables.dtml 
Log Message:
- Thanks to Ulrich Eck (ueck@net-labs.de), you can now set variables
  on states and transitions.  Great job!

- Changed expressions to TALES.

- Added a second default workflow consisting of the "classic" default.
  


=== Added File CMF/DCWorkflow/dtml/state_variables.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<p class="form-help">
When objects move to this state the workflow variables will be assigned
the values below.
</p>

<dtml-if getVariableValues>

<form action="&dtml-absolute_url;" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0" nowrap>
<tr class="list-header">
  <td>&nbsp;</td>
  <td align="left" valign="top">
  <div class="form-label">
  <strong>Variable</strong>
  </div>
  </td>
  <td align="left">
  <div class="form-label">
  <strong>Value</strong>
  </div>
  </td>
</tr>

<dtml-in getVariableValues sort>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
  <td align="left" valign="top">
   <input type="checkbox" name="ids:list" value="&dtml-sequence-key;"/>
  </td>
  <td align="left" nowrap>
  <div class="list-item">
  &dtml-sequence-key;
  </div>
  </td>
  <td align="left">
   <input type="text" name="varval_&dtml-sequence-key;" value="&dtml-sequence-item;" size="50" />
  </td>
</tr>
</dtml-in>

<tr>
<td colspan="3" align="left">
<div class="form-element">
<input class="form-element" type="submit" name="setVariables:method" value="Save Changes" />
<input class="form-element" type="submit" name="deleteVariables:method" value="Delete" />
</div>
</td>
</tr>
</table>
</form>

</dtml-if>


<form action="addVariable" method="POST">
 <table>
  <tr>
   <td>Add a variable value</td>
  </tr>
  <tr>
   <td>Variable</td>
   <td><select name="id">
    <dtml-in getWorkflowVariables>
     <option value="&dtml-sequence-item;">
      <dtml-var sequence-item>
     </option>
    </dtml-in>
   </select>
  </td>
 </tr>
 <tr>
  <td>Value</td><td><input type="text" name="value" value="" /></td>
 </tr>
 <tr><td><input type="submit" name="submit" value="Add" /></td></tr>
</table>
</form>

<dtml-var manage_page_footer>


=== Added File CMF/DCWorkflow/dtml/transition_variables.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<p class="form-help">
When the transistion is executed, the workflow variables are
updated according to the expressions below.
</p>

<dtml-if getVariableExprs>

<form action="&dtml-absolute_url;" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0" nowrap>
<tr class="list-header">
  <td>&nbsp;</td>
  <td align="left" valign="top">
  <div class="form-label">
  <strong>Variable</strong>
  </div>
  </td>
  <td align="left">
  <div class="form-label">
  <strong>Expression</strong>
  </div>
  </td>
</tr>

<dtml-in getVariableExprs sort>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
  <td align="left" valign="top">
   <input type="checkbox" name="ids:list" value="&dtml-sequence-key;"/>
  </td>
  <td align="left" nowrap>
  <div class="list-item">
  &dtml-sequence-key;
  </div>
  </td>
  <td align="left">
   <input type="text" name="varexpr_&dtml-sequence-key;" value="&dtml-sequence-item;" size="50" />
  </td>
</tr>
</dtml-in>

<tr>
<td colspan="3" align="left">
<div class="form-element">
<input class="form-element" type="submit" name="setVariables:method" value="Save Changes" />
<input class="form-element" type="submit" name="deleteVariables:method" value="Delete" />
</div>
</td>
</tr>
</table>
</form>

</dtml-if>

<form action="addVariable" method="POST">
 <table>
  <tr>
   <td>Add a variable expression</td>
  </tr>
  <tr>
   <td>Variable</td>
   <td><select name="id">
    <dtml-in getWorkflowVariables>
     <option value="&dtml-sequence-item;">
      <dtml-var sequence-item>
     </option>
    </dtml-in>
   </select>
  </td>
 </tr>
 <tr>
  <td>Expression</td>
  <td><input type="text" name="text" size="50" value="" /></td>
 </tr>
 <tr><td><input type="submit" name="submit" value="Add" /></td></tr>
</table>
</form>

<dtml-var manage_page_footer>


=== CMF/DCWorkflow/dtml/states.dtml 1.1 => 1.2 ===
  </dtml-in>
  </dtml-let>
- <dtml-if getVarValues>
+ <dtml-if getVariableValues>
  <tr>
   <th align="right">Variables</th>
   <th></th>
  </tr>
- <dtml-in getVarValues sort>
+ <dtml-in getVariableValues sort>
   <tr>
    <td></td>
    <td>


=== CMF/DCWorkflow/dtml/transitions.dtml 1.2 => 1.3 ===
   <th></th>
  </tr>
- <dtml-in var_exprs sort>
+ <dtml-in getVariableExprs sort>
   <tr>
    <td></td>
    <td>
-    &dtml-sequence-key; = <dtml-var expr="getVarExprText(_['sequence-key'])"
-      fmt="html_quote">
+    &dtml-sequence-key; = &dtml-sequence-item;
    </td>
   </tr>
  </dtml-in>