Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

66051: ACE-1154: Outcome of the Review and Approve task is not displayed in the "My Completed Task" component.
   Oracle specific issue: Set default value for outcome label.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@66290 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-04-02 22:37:20 +00:00
parent 1635212c1e
commit 330a5c3465
2 changed files with 14 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
public class WorkflowTaskNode extends TransientMapNode {
private static final long serialVersionUID = 1L;
private static final String DEFAULT_TRANSITION_TITLE = "bpm_businessprocessmodel.transition.title";
private Map<String, Object> propertyWrapper;
private WorkflowTask workflowTask;
@@ -57,11 +58,13 @@ public class WorkflowTaskNode extends TransientMapNode {
{
outcome = transition;
}
if (outcome != null)
{
propertyWrapper.put("outcome", outcome);
}
}
//ACE-1154
if (outcome == null)
{
outcome = I18NUtil.getMessage(DEFAULT_TRANSITION_TITLE);
}
propertyWrapper.put("outcome", outcome);
// add the workflow instance id and name this taks belongs to
propertyWrapper.put("workflowInstanceId", workflowTask.getPath().getInstance().getId());