[CMF-checkins] CVS: CMF - guard.dtml:1.1 state_permissions.dtml:1.1 state_properties.dtml:1.1 states.dtml:1.1 transition_properties.dtml:1.1 transitions.dtml:1.1 variable_properties.dtml:1.1 variables.dtml:1.1 workflow_permissions.dtml:1.1 workflow_properties.dtml:1.1 worklist_properties.dtml:1.1 worklists.dtml:1.1
shane@digicool.com
shane@digicool.com
Mon, 11 Jun 2001 15:33:49 -0400 (EDT)
Update of /cvs-repository/CMF/DCWorkflow/dtml
In directory korak.digicool.com:/tmp/cvs-serv30200/dtml
Added Files:
guard.dtml state_permissions.dtml state_properties.dtml
states.dtml transition_properties.dtml transitions.dtml
variable_properties.dtml variables.dtml
workflow_permissions.dtml workflow_properties.dtml
worklist_properties.dtml worklists.dtml
Log Message:
Added DCWorkflow product to public CVS.
--- Added File guard.dtml in package CMF ---
<table>
<tr>
<th align="left">Permission(s)</th>
<td><input type="text" name="guard_permissions" value="&dtml-getPermissionsText;" /></td>
<th align="left">Role(s)</th>
<td><input type="text" name="guard_roles" value="&dtml-getRolesText;" /></td>
</tr>
<tr>
<th align="left">Expression</th>
<td colspan="3">
<input type="text" name="guard_expr" value="&dtml-getExprText;" size="50" />
</td>
</tr>
</table>
--- Added File state_permissions.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p class="form-help">
When objects are in this state they will take on the role to permission
mappings defined below. Only the <a href="../manage_permissions">permissions
managed by this workflow</a> are shown.
</p>
<form action="setPermissions" method="POST">
<table width="100%" cellspacing="0" cellpadding="2" border="0" nowrap>
<tr class="list-header">
<td> </td>
<td align="left" valign="top">
<div class="form-label">
<strong>Permission</strong>
</div>
</td>
<td align="left" colspan="<dtml-var expr="_.len(getAvailableRoles())">">
<div class="form-label">
<strong>Roles</strong>
</div>
</td>
</tr>
<tr class="row-normal">
<td align="left" valign="top">
<div class="form-label">
<strong>
Acquire<BR>permission<BR>settings?
</strong>
</div>
</td>
<td></td>
<dtml-in getAvailableRoles>
<td align="left">
<div class="list-item">
<dtml-var sequence-item>
</div>
</td>
</dtml-in>
</tr>
<dtml-in getManagedPermissions sort>
<dtml-let permission=sequence-item>
<dtml-with expr="getPermissionInfo(permission)" mapping>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
<td align="left" valign="top">
<dtml-let checked="acquired and 'checked' or ' '">
<input type="checkbox" name="acquire_&dtml-permission;" &dtml-checked; />
</dtml-let>
</td>
<td align="left" nowrap>
<div class="list-item">
&dtml-permission;
</div>
</td>
<dtml-in getAvailableRoles sort>
<td align="center">
<dtml-let checked="_['sequence-item'] in roles and 'checked' or ' '">
<input type="checkbox" name="&dtml-permission;|&dtml-sequence-item;" &dtml-checked; />
</dtml-let>
</td>
</dtml-in>
</tr>
</dtml-with>
</dtml-let>
</dtml-in>
<tr>
<td colspan="<dtml-var expr="_.len(getAvailableRoles())+2">" align="left">
<div class="form-element">
<input class="form-element" type="submit" name="submit" value="Save Changes" />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
--- Added File state_properties.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="setProperties" method="POST">
<table>
<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;" size="50" /></td>
</tr>
<tr>
<th align="left" valign="top">Possible Transitions</th>
<td>
<dtml-in getAvailableTransitionIds sort>
<dtml-let checked="_['sequence-item'] in transitions and 'checked' or ' '">
<input type="checkbox" name="transitions:list"
value="&dtml-sequence-item;" &dtml-checked; /> &dtml-sequence-item;
<dtml-let t_title="getTransitionTitle(_['sequence-item'])">
<dtml-if t_title>(&dtml-t_title;)</dtml-if>
</dtml-let>
</dtml-let>
<br />
<dtml-else>
<em>No transitions defined.</em>
</dtml-in>
</select>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>
--- Added File states.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<dtml-in values sort=id>
<tr bgcolor="#eeeeee">
<th align="left" colspan="2">
<input type="checkbox" name="ids:list" value="&dtml-id;" />
<dtml-if expr="id == initial_state">*</dtml-if>
<a href="&dtml.url_quote-id;/manage_properties">&dtml-id;</a>
&dtml-title;
</th>
</tr>
<dtml-let state_id=id>
<dtml-in getTransitions>
<tr>
<td width="10%"></td>
<td>
<a href="../transitions/&dtml-sequence-item;/manage_properties"
>&dtml-sequence-item;</a>
<dtml-let t_title="getTransitionTitle(_['sequence-item'])">
<dtml-if t_title>(&dtml-t_title;)</dtml-if>
</dtml-let>
</td>
</tr>
<dtml-else>
<tr>
<td></td>
<td><em>No transitions.</em></td>
</tr>
</dtml-in>
</dtml-let>
<dtml-if getVarValues>
<tr>
<th align="right">Variables</th>
<th></th>
</tr>
<dtml-in getVarValues sort>
<tr>
<td></td>
<td>
&dtml-sequence-key; = &dtml-sequence-item;
</td>
</tr>
</dtml-in>
</dtml-if>
<dtml-else>
<tr><td><em>No states defined.</em></td></tr>
</dtml-in>
</table>
<dtml-if values>
<input type="submit" name="manage_renameForm:method" value="Rename" />
<input type="submit" name="deleteStates:method" value="Delete" />
<input type="submit" name="setInitialState:method" value="Set Initial State" />
</dtml-if>
<hr />
<h3>Add a state</h3>
<p>Id <input type="text" name="id" value="" />
<input type="submit" name="addState:method" value="Add" /></p>
</form>
<dtml-var manage_page_footer>
--- Added File transition_properties.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="setProperties" method="POST">
<table>
<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;" size="50" /></td>
</tr>
<tr>
<th align="left">Destination state</th>
<td>
<select name="new_state_id" size="1">
<dtml-let selected="not new_state_id and 'selected' or ' '">
<option value="" &dtml-selected;>(Remain in state)</option>
</dtml-let>
<dtml-in getAvailableStateIds sort>
<dtml-let selected="new_state_id == _['sequence-item'] and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let>
</dtml-in>
</select>
</td>
</tr>
<tr>
<th align="left">Trigger type</th>
<td>
<dtml-let checked="trigger_type==0 and 'checked' or ' '">
<input type="radio" name="trigger_type" value="0" &dtml-checked; />
Automatic
</dtml-let>
</td>
</tr>
<tr>
<th></th>
<td>
<dtml-let checked="trigger_type==1 and 'checked' or ' '">
<input type="radio" name="trigger_type" value="1" &dtml-checked; />
Initiated by user action
</dtml-let>
</tr>
</tr>
<tr>
<th></th>
<td>
<dtml-let checked="trigger_type==2 and 'checked' or ' '">
<input type="radio" name="trigger_type" value="2" &dtml-checked; />
Initiated by WorkflowMethod
</dtml-let>
</tr>
</tr>
<tr>
<th align="left">Script</th>
<td>
<select name="script_name">
<option value="">(None)</option>
<dtml-in getAvailableScriptIds sort>
<dtml-let selected="script_name == _['sequence-item'] and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let>
</dtml-in>
</select>
</td>
</tr>
<tr>
<th align="left" valign="top">Guard</th>
<td>
<dtml-with getGuard>
<dtml-var guardForm>
</dtml-with>
</td>
</tr>
<tr>
<th align="left" valign="top">Display in actions box</th>
<td>
<table>
<tr>
<th align="left">Name (formatted)</th>
<td>
<input type="text" name="actbox_name"
value="&dtml-actbox_name;" size="50" />
</td>
</tr>
<tr>
<th align="left">URL (formatted)</th>
<td>
<input type="text" name="actbox_url"
value="&dtml-actbox_url;" size="50" />
</td>
</tr>
<tr>
<th align="left">Category</th>
<td>
<input type="text" name="actbox_category"
value="&dtml-actbox_category;" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>
--- Added File transitions.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<dtml-in values sort=id>
<tr bgcolor="#eeeeee">
<th align="left" colspan=2">
<input type="checkbox" name="ids:list" value="&dtml-id;" />
<a href="&dtml.url_quote-id;/manage_properties">&dtml-id;</a>
&dtml-title;
</th>
</tr>
<tr>
<th width="10%"></th>
<td>
Destination state: <code><dtml-if new_state_id>&dtml-new_state_id;<dtml-else>(Remain in state)</dtml-if></code> <br />
Trigger: <dtml-var expr="(trigger_type == 0 and 'Automatic') or
(trigger_type == 1 and 'User action') or
(trigger_type == 2 and 'WorkflowMethod')">
<br />
<dtml-if getGuardSummary><dtml-var getGuardSummary><br /></dtml-if>
<dtml-if actbox_name>Adds to actions box: <code>&dtml-actbox_name;</code></dtml-if>
</td>
</tr>
<dtml-if var_exprs>
<tr>
<th align="right">Variables</th>
<th></th>
</tr>
<dtml-in var_exprs sort>
<tr>
<td></td>
<td>
&dtml-sequence-key; = <dtml-var expr="getVarExprText(_['sequence-key'])"
fmt="html_quote">
</td>
</tr>
</dtml-in>
</dtml-if>
<dtml-else>
<tr><td><em>No transitions defined.</em></td></tr>
</dtml-in>
</table>
<dtml-if values>
<input type="submit" name="manage_renameForm:method" value="Rename" />
<input type="submit" name="deleteTransitions:method" value="Delete" />
</dtml-if>
<hr />
<h3>Add a transition</h3>
<p>Id <input type="text" name="id" value="" />
<input type="submit" name="addTransition:method" value="Add" /></p>
</form>
<dtml-var manage_page_footer>
--- Added File variable_properties.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="setProperties" method="POST">
<table>
<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th align="left">Description</th>
<td><input type="text" name="description" value="&dtml-description;"
size="50" /></td>
</tr>
<tr>
<th align="left">
<div class="form-label">
Make available to catalog
</div>
</th>
<td>
<div class="form-element">
<dtml-let checked="for_catalog and 'checked' or ' '">
<input type="checkbox" name="for_catalog" value="1" &dtml-checked; />
</dtml-let>
</div>
</td>
</tr>
<tr>
<th align="left">
<div class="form-label">
Store in workflow status
</div>
</th>
<td>
<div class="form-element">
<dtml-let checked="for_status and 'checked' or ' '">
<input type="checkbox" name="for_status" value="1" &dtml-checked; />
</dtml-let>
</div>
</td>
</tr>
<tr>
<th align="left">
<div class="form-label">
Default value
</div>
</th>
<td>
<div class="form-element">
<input type="text" name="default_value" value="&dtml-default_value;" />
</div>
</td>
</tr>
<tr>
<th align="left">
<div class="form-label">
Default expression<br />(overrides default value)
</div>
</th>
<td>
<div class="form-element">
<input type="text" name="default_expr" value="&dtml-getDefaultExprText;" size="50" />
</div>
</td>
</tr>
<tr>
<th align="left" valign="top">
<div class="form-label">
Info guard
</div>
</th>
<td>
<dtml-with getInfoGuard>
<dtml-var guardForm>
</dtml-with>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>
--- Added File variables.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<dtml-in values sort=id>
<tr bgcolor="#eeeeee">
<th align="left" colspan="2">
<input type="checkbox" name="ids:list" value="&dtml-id;" />
<a href="&dtml.url_quote-id;/manage_properties">&dtml-id;</a>
&dtml-description;
</th>
</tr>
<tr>
<th width="10%"></th>
<td>
Available to catalog:
<code><dtml-if for_catalog>Yes<dtml-else>No</dtml-if></code><br />
Stored in status:
<code><dtml-if for_status>Yes<dtml-else>No</dtml-if></code><br />
<dtml-if default_value>
Default value: <code>&dtml-default_value;</code><br />
</dtml-if>
<dtml-if getDefaultExprText>
Default expr: <code>&dtml-getDefaultExprText;</code><br />
</dtml-if>
<dtml-if getInfoGuardSummary>
<dtml-var getInfoGuardSummary><br />
</dtml-if>
</td>
</tr>
<dtml-else>
<tr><td><em>No variables defined.</em></td></tr>
</dtml-in>
</table>
<dtml-if values>
<input type="submit" name="manage_renameForm:method" value="Rename" />
<input type="submit" name="deleteVariables:method" value="Delete" />
</dtml-if>
</form>
<hr />
<form action="addVariable" method="POST">
<h3>Add a variable</h3>
<p>Id <input type="text" name="id" value="" />
<input type="submit" name="submit" value="Add" /></p>
</form>
<hr />
<form action="setStateVar" method="POST">
State variable name: <input type="text" name="id" value="&dtml-getStateVar;" />
<input type="submit" name="submit" value="Change" />
<i class="form-help">(Be careful!)</i>
</form>
<dtml-var manage_page_footer>
--- Added File workflow_permissions.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<table>
<tr>
<td class="form-help">
The selected permissions are managed by this workflow. The role to permission
mappings for an object in this workflow depend on its state.
</td>
</tr>
<dtml-in permissions sort>
<tr>
<td>
<input type="checkbox" name="ps:list" value="&dtml-sequence-item;">
&dtml-sequence-item;
</td>
</tr>
<dtml-else>
<tr>
<td>
<em>No permissions are managed by this workflow.</em>
</td>
</tr>
</dtml-in>
</table>
<dtml-if permissions>
<input type="submit" name="delManagedPermissions:method" value="Remove selected" />
</dtml-if>
<hr />
<h3>Add a managed permission</h3>
<select name="p">
<dtml-in getPossiblePermissions><dtml-if
expr="_['sequence-item'] not in permissions">
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
</dtml-if></dtml-in>
</select>
<input type="submit" name="addManagedPermission:method" value="Add" />
</form>
<dtml-var manage_page_footer>
--- Added File workflow_properties.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="setProperties" method="POST">
<table>
<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;"/></td>
</tr>
</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>
--- Added File worklist_properties.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="setProperties" method="POST">
<table>
<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th align="left">Description</th>
<td>
<input type="text" name="description" value="&dtml-description;" size="50" />
</td>
</tr>
<tr>
<th align="left" valign="top">
<div class="form-label">
Cataloged variable matches
</div>
</th>
<td>
<table>
<dtml-in getAvailableCatalogVars>
<tr>
<th align="left">&dtml-sequence-item; =</th>
<td>
<dtml-let value="getVarMatch(_['sequence-item'])">
<input type="text" name="var_match_&dtml-sequence-item;"
value="&dtml-value;" />
</dtml-let>
</td>
</tr>
</dtml-in>
</table>
</td>
</tr>
<tr>
<th align="left" valign="top">Display in actions box</th>
<td>
<table>
<tr>
<th align="left">Name (formatted)</th>
<td>
<input type="text" name="actbox_name"
value="&dtml-actbox_name;" size="50" />
</td>
</tr>
<tr>
<th align="left">URL (formatted)</th>
<td>
<input type="text" name="actbox_url"
value="&dtml-actbox_url;" size="50" />
</td>
</tr>
<tr>
<th align="left">Category</th>
<td>
<input type="text" name="actbox_category"
value="&dtml-actbox_category;" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<th align="left" valign="top">
<div class="form-label">
Guard
</div>
</th>
<td>
<dtml-with getGuard>
<dtml-var guardForm>
</dtml-with>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>
--- Added File worklists.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="&dtml-absolute_url;" method="POST">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<dtml-in values sort=id>
<tr bgcolor="#eeeeee">
<th align="left" colspan="2">
<input type="checkbox" name="ids:list" value="&dtml-id;" />
<a href="&dtml.url_quote-id;/manage_properties">&dtml-id;</a>
&dtml-description;
</th>
</tr>
<tr>
<th width="10%"></th>
<td>
<dtml-if name_fmt>
Name format: <code>&dtml-name_fmt;</code><br />
</dtml-if>
<dtml-if var_matches>
Catalog matches:
<dtml-in expr="var_matches.items()" sort>
<code>&dtml-sequence-key;</code> = <code>&dtml-sequence-item;</code>
<dtml-unless sequence-end>;</dtml-unless>
</dtml-in>
<br />
</dtml-if>
<dtml-if getGuardSummary>
<dtml-var getGuardSummary><br />
</dtml-if>
</td>
</tr>
<dtml-else>
<tr><td><em>No worklists defined.</em></td></tr>
</dtml-in>
</table>
<dtml-if values>
<input type="submit" name="manage_renameForm:method" value="Rename" />
<input type="submit" name="deleteWorklists:method" value="Delete" />
</dtml-if>
</form>
<hr />
<form action="addWorklist" method="POST">
<h3>Add a worklist</h3>
<p>Id <input type="text" name="id" value="" />
<input type="submit" name="submit" value="Add" /></p>
</form>
<dtml-var manage_page_footer>