mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Added client pieces for handling ad hoc workflow tasks
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3614 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -4,22 +4,24 @@
|
||||
<!-- Properties -->
|
||||
<!-- -->
|
||||
|
||||
<!-- Generic workflow task -->
|
||||
|
||||
<config evaluator="node-type" condition="bpm:workflowTask">
|
||||
<property-sheet>
|
||||
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-property name="bpm:taskId" ignore-if-missing="false" />
|
||||
<show-property name="bpm:startDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:status" ignore-if-missing="false" />
|
||||
<show-property name="bpm:dueDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:priority" ignore-if-missing="false" />
|
||||
</property-sheet>
|
||||
</config>
|
||||
|
||||
<!-- Review and Approve workflow tasks -->
|
||||
|
||||
<config evaluator="node-type" condition="wf:reviewTask">
|
||||
<property-sheet>
|
||||
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-property name="bpm:taskId" ignore-if-missing="false" />
|
||||
<show-property name="bpm:startDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:status" ignore-if-missing="false" />
|
||||
<show-property name="bpm:dueDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:priority" ignore-if-missing="false" />
|
||||
@@ -36,6 +38,41 @@
|
||||
</property-sheet>
|
||||
</config>
|
||||
|
||||
<!-- Ad hoc workflow tasks -->
|
||||
|
||||
<config evaluator="node-type" condition="wf:submitAdhocTask">
|
||||
<property-sheet>
|
||||
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-property name="wf:adhocDescription" ignore-if-missing="false" />
|
||||
<show-property name="wf:adhocPriority" ignore-if-missing="false" />
|
||||
<show-property name="wf:adhocDueDate" ignore-if-missing="false" />
|
||||
<show-property name="wf:notifyMe" />
|
||||
<separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-association name="wf:assignee" ignore-if-missing="false" />
|
||||
</property-sheet>
|
||||
</config>
|
||||
|
||||
<config evaluator="node-type" condition="wf:adhocTask">
|
||||
<property-sheet>
|
||||
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-property name="bpm:taskId" ignore-if-missing="false" />
|
||||
<show-property name="wf:adhocDescription" ignore-if-missing="false" />
|
||||
<show-property name="bpm:status" ignore-if-missing="false" />
|
||||
<show-property name="bpm:dueDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:priority" ignore-if-missing="false" />
|
||||
</property-sheet>
|
||||
</config>
|
||||
|
||||
<config evaluator="node-type" condition="wf:completedAdhocTask">
|
||||
<property-sheet>
|
||||
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
|
||||
<show-property name="bpm:taskId" ignore-if-missing="false" />
|
||||
<show-property name="wf:adhocDescription" ignore-if-missing="false" />
|
||||
<show-property name="bpm:dueDate" ignore-if-missing="false" />
|
||||
<show-property name="bpm:priority" ignore-if-missing="false" />
|
||||
</property-sheet>
|
||||
</config>
|
||||
|
||||
<!-- -->
|
||||
<!-- Actions -->
|
||||
<!-- -->
|
||||
@@ -117,7 +154,6 @@
|
||||
<action idref="details_doc" />
|
||||
<action idref="checkout_doc" />
|
||||
<action idref="cancelcheckout_doc" />
|
||||
<action idref="remove_package_item" />
|
||||
</action-group>
|
||||
|
||||
<action-group id="workflow_collection_actions">
|
||||
|
@@ -293,7 +293,12 @@ public class StartWorkflowWizard extends BaseWizardBean
|
||||
List<WorkflowDefinition> workflowDefs = this.workflowService.getDefinitions();
|
||||
for (WorkflowDefinition workflowDef : workflowDefs)
|
||||
{
|
||||
this.availableWorkflows.add(new SelectItem(workflowDef.id, workflowDef.title));
|
||||
String label = workflowDef.title;
|
||||
if (workflowDef.description != null && workflowDef.description.length() > 0)
|
||||
{
|
||||
label = label + " (" + workflowDef.description + ")";
|
||||
}
|
||||
this.availableWorkflows.add(new SelectItem(workflowDef.id, label));
|
||||
this.workflows.put(workflowDef.id, workflowDef);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user