mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user