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,10
pAttrName
pDisplayName
pListType
pListDim
pListSubset
pControlType
pListDimAlias
pWorkflowType
pAttributeType
pTaskLogAttr
561,10
2
2
2
2
2
2
2
2
2
2
590,10
pAttrName,""
pDisplayName,""
pListType,"dim"
pListDim,"}sm_control_list_values"
pListSubset,"yes_no"
pControlType,"dropdown"
pListDimAlias,""
pWorkflowType,"STATUS"
pAttributeType,""
pTaskLogAttr,""
637,10
pAttrName,Attribute Name
pDisplayName,Display Name
pListType,List Type
pListDim,List Dim
pListSubset,List Dim Subset
pControlType,Control Type
pListDimAlias,List Dim Alias
pWorkflowType,Workflow Type (STATUS
pAttributeType,Attribute Type (*)
pTaskLogAttr,Task Log Attribute
577,0
578,0
579,0
580,0
581,0
582,0
572,56

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

IF (pWorkflowType @= 'ACTION');
vDim = '}sm_task_action';
vAttrType = 'Task Action';
ELSEIF (pWorkflowType @= 'STATUS');
vDim = '}sm_task_status';
vAttrType = 'Task Status';
ELSEIF (pWorkflowType @= 'TASK');
vAttrType = 'Task Attributes';
ELSE;
vDim = pWorkflowType;
vAttrType = pAttributeType;
ENDIF;
vAttributeDim = '}sm_control_attributes';
vTaskAttributeDim = '}sm_control_task_attributes';
vAttributeCube = '}sm_control_attribute_settings';

IF (pAttrName @= '' % pDisplayName @= '');
PROCESSQUIT;
ENDIF;

IF (vDim @<> '');
ATTRINSERT(vDim, '', pAttrName, 'S');
ENDIF;

IF (DIMIX(vAttributeDim, pAttrName) = 0);
DIMENSIONELEMENTINSERT(vAttributeDim, '', pAttrName, 'N');
ENDIF;

IF (pWorkflowType @= 'TASK');

vLogAttr = pAttrName;
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Version Attributes', vLogAttr, 0);
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Text', vLogAttr, 0);

ELSEIF (pTaskLogAttr @<> '');

vLogAttr = pTaskLogAttr | ' By User';
IF (DIMIX(vAttributeDim, vLogAttr) = 0);
DIMENSIONELEMENTINSERT(vAttributeDim, '', vLogAttr,'N');
ENDIF;
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Version Attributes', vLogAttr, 0);
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Text', vLogAttr, 0);

vLogAttr = pTaskLogAttr | ' Datetime';
IF (DIMIX(vAttributeDim, vLogAttr) = 0);
DIMENSIONELEMENTINSERT(vAttributeDim, '', vLogAttr,'N');
ENDIF;
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Version Attributes', vLogAttr, 0);
DIMENSIONELEMENTCOMPONENTADD(vTaskAttributeDim, 'Text', vLogAttr, 0);

ENDIF;

573,3

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

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

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

IF (pAttrName @= '' % pDisplayName @= '');
PROCESSQUIT;
ENDIF;

CELLPUTS(pDisplayName, vAttributeCube, pAttrName, vAttrType, 'display_name');
CELLPUTS(pControlType, vAttributeCube, pAttrName, vAttrType, 'control_type');
CELLPUTS(pListSubset, vAttributeCube, pAttrName, vAttrType, 'list_subset');
CELLPUTS(pListType, vAttributeCube, pAttrName, vAttrType, 'list_type');
CELLPUTS(pListDim, vAttributeCube, pAttrName, vAttrType, 'list_dim');
CELLPUTS(pListDimAlias, vAttributeCube, pAttrName, vAttrType, 'list_dim_alias');


IF (pWorkflowType @= 'TASK');

vLogAttr = pAttrName;
vSubset = 'sm_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);
vSubset = 'sm_multi_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);

ELSEIF (pTaskLogAttr @<> '');

vLogAttr = pTaskLogAttr | ' By User';
vSubset = 'sm_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);
vSubset = 'sm_multi_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);

vLogAttr = pTaskLogAttr | ' Datetime';
vSubset = 'sm_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);
vSubset = 'sm_multi_task_attributes';
SUBSETELEMENTINSERT(vAttributeDim, vSubset, vLogAttr, SUBSETGETSIZE(vAttributeDim, vSubset) + 1);

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,
