Added bpm:reassignable property to bpm:workflowTask with default value of true and added to invite task with default value of false.

Also fixed the hidden transition handling in task form processor, cancel for invite task is no longer returned and thus rendered in the UI.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21583 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-08-04 07:00:40 +00:00
parent 9f315acff6
commit f2c0221855
3 changed files with 22 additions and 5 deletions

View File

@@ -245,6 +245,12 @@
<multiple>true</multiple>
<default></default>
</property>
<!-- Flag to determine whether the owner can reassign their task -->
<property name="bpm:reassignable">
<type>d:boolean</type>
<default>true</default>
</property>
</properties>
<associations>

View File

@@ -48,6 +48,9 @@
<property name="bpm:hiddenTransitions">
<default>cancel</default>
</property>
<property name="bpm:reassignable">
<default>false</default>
</property>
</overrides>
<mandatory-aspects>
<aspect>inwf:nominatedInvitationStats</aspect>

View File

@@ -27,6 +27,7 @@ package org.alfresco.repo.forms.processor.workflow;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -194,10 +195,17 @@ public class TaskFormProcessor extends AbstractWorkflowFormProcessor<WorkflowTas
private List<String> getHiddenTransitions(WorkflowTask task)
{
Serializable hiddenValues = task.getProperties().get(WorkflowModel.PROP_HIDDEN_TRANSITIONS);
if(hiddenValues!=null && hiddenValues instanceof List<?>)
if (hiddenValues != null)
{
if (hiddenValues instanceof List<?>)
{
return (List<String>) hiddenValues;
}
else if (hiddenValues instanceof String)
{
return Arrays.asList(((String)hiddenValues).split(","));
}
}
return Collections.emptyList();
}