601,100
562,"NULL"
586,
585,
564,
565,"hdlITYA=aXVZ0>^Uf9^=h95`T[?@`mW@^D@dP1qeGChysxRHEG^t7rOzUyu44xJl@N209kEc1Lwprgy]sfWi2XKu^Ei>BVa\rTR;[AlP@TDNto7c=\gHQNj1xKdMbbhfxP6f\lY=>;q[i@pyQ32[UQ^I;1cP@6vjuNVyhqFvXOhlwCWf\:;au\xNR\bkOj0^47p]Uz]>"
559,0
593,
594,
595,
597,
598,
596,
800,
801,
566,0
567,","
588,"."
589,
568,""""
570,
571,
569,0
592,0
599,1000
560,5
pSetupTaskLocking
pApplyTaskLockingDefaults
pTaskLockedString
pSetupTaskWaiting
pSetupTaskSequencing
561,5
2
2
2
2
2
590,5
pSetupTaskLocking,"N"
pApplyTaskLockingDefaults,"N"
pTaskLockedString,"Locked"
pSetupTaskWaiting,"N"
pSetupTaskSequencing,"N"
637,5
pSetupTaskLocking,Setup Descendent Task Locking Workflow Extensions (Y/N)
pApplyTaskLockingDefaults,Apply Default Task Locking (Y/N)
pTaskLockedString,Task Locked String
pSetupTaskWaiting,Setup Task Waiting Workflow Extensions (Y/N)
pSetupTaskSequencing,Setup Task Sequencing Workflow Extensions (Y/N)
577,0
578,0
579,0
580,0
581,0
582,0
572,135

#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****

EXECUTEPROCESS('sm_upgrade_v1_2');

IF (pSetupTaskLocking @= 'Y' % pSetupTaskWaiting @= 'Y' % pSetupTaskSequencing @= 'Y');
vAttribute = 'post_ti';
vValue = 'sm_workflow_extender';
EXECUTEPROCESS('}sm_wfx_system_attribute', 
'pAttribute', vAttribute, 
'pDefaultValue', vValue, 
'pAdmin', 'Y', 
'pClient', 'N');
ENDIF;

IF (pSetupTaskLocking @= 'Y');
vAttribute = 'Task Locked Flag';
IF (pTaskLockedString @= '');
pTaskLockedString = 'Locked';
ENDIF;
vValue = pTaskLockedString;
EXECUTEPROCESS('}sm_wfx_system_attribute', 
'pAttribute', vAttribute, 
'pDefaultValue', vValue, 
'pAdmin', 'Y', 
'pClient', 'N');

EXECUTEPROCESS('}sm_wfx_validation_list', 
'action', 'I', 
'Parent', 'Task_Locking', 
'Subset', 'Task_Locking', 
'pListItem1', 'Lock', 
'pListItem2', 'UnLock', 
'pListItem3', 'NONE');

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Locking',
'pDisplayName', 'Locks Descendent Tasks',
'pListType', 'dim',
'pListDim', '}sm_control_list_values',
'pListSubset', 'Task_Locking',
'pControlType', 'dropdown',
'pListDimAlias', 'List Value', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Lockable',
'pDisplayName', 'Unlocks Descendent Tasks',
'pListType', 'dim',
'pListDim', '}sm_control_list_values',
'pListSubset', 'yes_no',
'pControlType', 'dropdown',
'pListDimAlias', 'List Value', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

ENDIF;

IF (pSetupTaskWaiting @= 'Y' );

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Waits for Subtasks',
'pDisplayName', 'Waits for Subtasks',
'pListType', 'dim',
'pListDim', '}sm_task_status',
'pListSubset', '',
'pControlType', 'dropdown',
'pListDimAlias', 'Status', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Completes Waiting',
'pDisplayName', 'Completes Waiting', 
'pListType', 'dim',
'pListDim', '}sm_control_list_values',
'pListSubset', 'yes_no',
'pControlType', 'dropdown',
'pListDimAlias', 'List Value', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

ENDIF;

IF (pSetupTaskSequencing @= 'Y' );

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Waits for Predecessor Task',
'pDisplayName', 'Waits for Predecessor Task',
'pListType', 'dim',
'pListDim', '}sm_task_status',
'pListSubset', '',
'pControlType', 'dropdown',
'pListDimAlias', 'Status', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Triggers Dependent Tasks',
'pDisplayName', 'Triggers Dependent Tasks',
'pListType', 'dim',
'pListDim', '}sm_control_list_values',
'pListSubset', 'yes_no',
'pControlType', 'dropdown',
'pListDimAlias', 'List Value', 
'pWorkflowType', 'STATUS',
'pAttributeType', '', 
'pTaskLogAttr', '');

EXECUTEPROCESS('}sm_wfx_workflow_attribute',
'pAttrName', 'Predecessor Task',
'pDisplayName', 'Predecessor Task', 
'pListType', '',
'pListDim', '',
'pListSubset', '',
'pControlType', '',
'pListDimAlias', '', 
'pWorkflowType', 'TASK',
'pAttributeType', '', 
'pTaskLogAttr', '');

EXECUTEPROCESS('}sm_wfx_apply_task_attribute',
'pAttribute', 'Predecessor Task',
'pAttributeType', 'S',
'pDefaultValue', '', 
'pPlan', '<ALL>', 
'pVersion', '<ALL>');
ENDIF;
573,3

#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****
574,3

#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****
575,21

#****GENERATED STATEMENTS START****
#****GENERATED STATEMENTS FINISH****

IF (pSetupTaskLocking @= 'Y' &  pApplyTaskLockingDefaults @= 'Y');
vStatusIndex = 1;
vStatusDim = '}sm_task_status';
vStatusCount = DIMSIZ(vStatusDim);
WHILE (vStatusIndex <= vStatusCount);
vStatus = DIMNM(vStatusDim, vStatusIndex);
IF (vStatus @= 'Approved' % vStatus @= 'Completed' % vStatus @= 'Not Delegated' % vStatus @= 'Pending' % vStatus @= 'Submitted');
ATTRPUTS('Lock', vStatusDim, vStatus, 'Locking');
ENDIF;

ATTRPUTS('Y', vStatusDim, vStatus, 'Lockable');

vStatusIndex = vStatusIndex + 1;
END;

EXECUTEPROCESS( '}sm_wfx_locking_setup');
ENDIF;
576,CubeAction=1511	DataAction=1503	CubeLogChanges=0	
638,1
804,0
900,
901,
902,
903,
906,
907,
908,
904,0
905,0
909,0
910,0
911,
912,
913,
914,
915,
916,
