mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Added comments to task dialogs
- Added comments to workflow history - Fixed JavaScript problem when showing mandatory associations in read only mode git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5771 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1330,7 +1330,7 @@ view_completed_task_title=View Completed Task
|
|||||||
view_completed_task_desc=This dialog allows the completed task details to be viewed.
|
view_completed_task_desc=This dialog allows the completed task details to be viewed.
|
||||||
task_properties=Task Properties
|
task_properties=Task Properties
|
||||||
task_pooled_properties=Task Pool
|
task_pooled_properties=Task Pool
|
||||||
task=Task
|
task_type=Task Type
|
||||||
id=Id
|
id=Id
|
||||||
status=Status
|
status=Status
|
||||||
completed=Completed
|
completed=Completed
|
||||||
@@ -1369,6 +1369,7 @@ no_resources=No resources found.
|
|||||||
in_progress=In Progress
|
in_progress=In Progress
|
||||||
by=by
|
by=by
|
||||||
assignee=Assignee
|
assignee=Assignee
|
||||||
|
comment=Comment
|
||||||
|
|
||||||
# Workflow Definitions
|
# Workflow Definitions
|
||||||
wf_review_options=Review Options
|
wf_review_options=Review Options
|
||||||
|
@@ -58,8 +58,12 @@ public class AssociationGenerator extends BaseComponentGenerator
|
|||||||
// check disables the ok button if necessary, as the user
|
// check disables the ok button if necessary, as the user
|
||||||
// adds or removes items from the multi value list the
|
// adds or removes items from the multi value list the
|
||||||
// page will be refreshed and therefore re-check the status.
|
// page will be refreshed and therefore re-check the status.
|
||||||
|
// Only so this however id the component is not read-only
|
||||||
|
|
||||||
|
if (item.isReadOnly() == false)
|
||||||
|
{
|
||||||
super.setupMandatoryValidation(context, propertySheet, item,
|
super.setupMandatoryValidation(context, propertySheet, item,
|
||||||
component, true, "_current_value");
|
component, true, "_current_value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@@ -58,8 +58,12 @@ public class ChildAssociationGenerator extends BaseComponentGenerator
|
|||||||
// check disables the ok button if necessary, as the user
|
// check disables the ok button if necessary, as the user
|
||||||
// adds or removes items from the multi value list the
|
// adds or removes items from the multi value list the
|
||||||
// page will be refreshed and therefore re-check the status.
|
// page will be refreshed and therefore re-check the status.
|
||||||
|
// Only so this however id the component is not read-only
|
||||||
|
|
||||||
|
if (item.isReadOnly() == false)
|
||||||
|
{
|
||||||
super.setupMandatoryValidation(context, propertySheet, item,
|
super.setupMandatoryValidation(context, propertySheet, item,
|
||||||
component, true, "_current_value");
|
component, true, "_current_value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@@ -63,6 +63,7 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
private static final String MSG_ID = "id";
|
private static final String MSG_ID = "id";
|
||||||
private static final String MSG_CREATED = "created";
|
private static final String MSG_CREATED = "created";
|
||||||
private static final String MSG_ASSIGNEE = "assignee";
|
private static final String MSG_ASSIGNEE = "assignee";
|
||||||
|
private static final String MSG_COMMENT = "comment";
|
||||||
private static final String MSG_DATE_COMPLETED = "completed_on";
|
private static final String MSG_DATE_COMPLETED = "completed_on";
|
||||||
private static final String MSG_OUTCOME = "outcome";
|
private static final String MSG_OUTCOME = "outcome";
|
||||||
private static final String MSG_NO_HISTORY = "no_workflow_history";
|
private static final String MSG_NO_HISTORY = "no_workflow_history";
|
||||||
@@ -120,6 +121,14 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
List<WorkflowTask> tasks = Repository.getServiceRegistry(context).
|
List<WorkflowTask> tasks = Repository.getServiceRegistry(context).
|
||||||
getWorkflowService().queryTasks(query);
|
getWorkflowService().queryTasks(query);
|
||||||
|
|
||||||
|
if (tasks.size() == 0)
|
||||||
|
{
|
||||||
|
out.write("<div style='margin-left:18px;margin-top: 6px;'>");
|
||||||
|
out.write(bundle.getString(MSG_NO_HISTORY));
|
||||||
|
out.write("</div>");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// output surrounding table and style if necessary
|
// output surrounding table and style if necessary
|
||||||
out.write("<table cellspacing='2' cellpadding='1' border='0' width='100%'");
|
out.write("<table cellspacing='2' cellpadding='1' border='0' width='100%'");
|
||||||
if (this.getAttributes().get("style") != null)
|
if (this.getAttributes().get("style") != null)
|
||||||
@@ -136,14 +145,6 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
}
|
}
|
||||||
out.write(">");
|
out.write(">");
|
||||||
|
|
||||||
if (tasks.size() == 0)
|
|
||||||
{
|
|
||||||
out.write("<div style='margin-left:18px;margin-top: 6px;'>");
|
|
||||||
out.write(bundle.getString(MSG_NO_HISTORY));
|
|
||||||
out.write("</div>");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// output a header row
|
// output a header row
|
||||||
out.write("<tr align=left><th>");
|
out.write("<tr align=left><th>");
|
||||||
out.write(bundle.getString(MSG_DESCRIPTION));
|
out.write(bundle.getString(MSG_DESCRIPTION));
|
||||||
@@ -156,6 +157,8 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
out.write("</th><th>");
|
out.write("</th><th>");
|
||||||
out.write(bundle.getString(MSG_ASSIGNEE));
|
out.write(bundle.getString(MSG_ASSIGNEE));
|
||||||
out.write("</th><th>");
|
out.write("</th><th>");
|
||||||
|
out.write(bundle.getString(MSG_COMMENT));
|
||||||
|
out.write("</th><th>");
|
||||||
out.write(bundle.getString(MSG_DATE_COMPLETED));
|
out.write(bundle.getString(MSG_DATE_COMPLETED));
|
||||||
out.write("</th><th>");
|
out.write("</th><th>");
|
||||||
out.write(bundle.getString(MSG_OUTCOME));
|
out.write(bundle.getString(MSG_OUTCOME));
|
||||||
@@ -168,6 +171,7 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
String desc = (String)task.properties.get(WorkflowModel.PROP_DESCRIPTION);
|
String desc = (String)task.properties.get(WorkflowModel.PROP_DESCRIPTION);
|
||||||
Date createdDate = (Date)task.properties.get(ContentModel.PROP_CREATED);
|
Date createdDate = (Date)task.properties.get(ContentModel.PROP_CREATED);
|
||||||
String owner = (String)task.properties.get(ContentModel.PROP_OWNER);
|
String owner = (String)task.properties.get(ContentModel.PROP_OWNER);
|
||||||
|
String comment = (String)task.properties.get(WorkflowModel.PROP_COMMENT);
|
||||||
Date completedDate = (Date)task.properties.get(WorkflowModel.PROP_COMPLETION_DATE);
|
Date completedDate = (Date)task.properties.get(WorkflowModel.PROP_COMPLETION_DATE);
|
||||||
String transition = (String)task.properties.get(WorkflowModel.PROP_OUTCOME);
|
String transition = (String)task.properties.get(WorkflowModel.PROP_OUTCOME);
|
||||||
String outcome = "";
|
String outcome = "";
|
||||||
@@ -194,18 +198,20 @@ public class UIWorkflowHistory extends SelfRenderingComponent
|
|||||||
out.write(Utils.getDateTimeFormat(context).format(createdDate));
|
out.write(Utils.getDateTimeFormat(context).format(createdDate));
|
||||||
out.write("</td><td>");
|
out.write("</td><td>");
|
||||||
out.write(owner);
|
out.write(owner);
|
||||||
|
out.write("</td><td width='200'>");
|
||||||
|
out.write(comment == null ? "" : comment);
|
||||||
out.write("</td><td>");
|
out.write("</td><td>");
|
||||||
out.write(Utils.getDateTimeFormat(context).format(completedDate));
|
out.write(Utils.getDateTimeFormat(context).format(completedDate));
|
||||||
out.write("</td><td>");
|
out.write("</td><td>");
|
||||||
out.write(outcome);
|
out.write(outcome);
|
||||||
out.write("</td></tr>");
|
out.write("</td></tr>");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// output the end of the table
|
// output the end of the table
|
||||||
out.write("</table>");
|
out.write("</table>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void encodeEnd(FacesContext context) throws IOException
|
public void encodeEnd(FacesContext context) throws IOException
|
||||||
|
Reference in New Issue
Block a user