RM-1050 (Rule "add record type" work for completed record)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@56665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-10-14 20:18:51 +00:00
parent ffed82d10c
commit 57f8b24b3e

View File

@@ -58,10 +58,11 @@ public class AddRecordTypeAction extends RMActionExecuterAbstractBase
*/
@Override
protected void executeImpl(Action action, NodeRef actionedUponNodeRef)
{
if (nodeService.exists(actionedUponNodeRef) == true &&
{
if (nodeService.exists(actionedUponNodeRef) == true &&
freezeService.isFrozen(actionedUponNodeRef) == false &&
recordService.isRecord(actionedUponNodeRef) == true)
recordService.isRecord(actionedUponNodeRef) == true &&
recordService.isDeclared(actionedUponNodeRef) == false)
{
String recordTypes = (String) action.getParameterValue(PARAM_ADD_RECORD_TYPES);
String[] types = recordTypes.split(",");