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

72742: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud)
      72387: Merged V4.1-BUG-FIX (4.1.10) to V4.2-BUG-FIX (4.2.3)
         72283: Merged V4.1.9 (4.1.9) to V4.1-BUG-FIX (4.1.10)
            72217: MNT-10122: Merged DEV to PATCHES/V4.1.9
               71475: MNT-10122: Related to MNT-2234 - Incorrect workflow history when using jBPM. 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74740 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-06-25 15:38:46 +00:00
parent badd76e80d
commit 39a10ee82d

View File

@@ -78,6 +78,7 @@ public class WorkflowModelBuilder
public static final String TASK_PROPERTIES = "properties";
public static final String TASK_PROPERTIY_LABELS = "propertyLabels";
public static final String TASK_OWNER = "owner";
public static final String TASK_CREATOR = "creator";
public static final String TASK_STATE = "state";
public static final String TASK_DESCRIPTION = "description";
public static final String TASK_TITLE = "title";
@@ -201,6 +202,9 @@ public class WorkflowModelBuilder
Serializable owner = task.getProperties().get(ContentModel.PROP_OWNER);
model.put(TASK_OWNER, getPersonModel(owner));
Serializable creator = task.getProperties().get(ContentModel.PROP_CREATOR);
model.put(TASK_CREATOR, getPersonModel(creator));
// task properties
Map<String, Object> propertyModel = buildProperties(task, propertyFilters);
model.put(TASK_PROPERTIES, propertyModel);