GetWFTypeName()
Before you modify the GetWFTypeName() script, you must define the workflow types in the GetWFTypes() script.The following code sample describes how to retrieve the names of the workflow types that you define in that script:
Function Assoc GetWFTypeName( \ Integer wfType, \ Integer wfSubType ) Assoc retVal Boolean handled = False String name = Undefined //If the wfType and wfSubType integer values are recognized, //assign the name of the corresponding workflow type and set the //handled variable to TRUE, indicating that a valid name has been //assigned to the workflow type. If the wfType and wfSubType //values are not recognized, the handled variable is set to FALSE //and the wfType and wfSubType integer values are automatically //passed to the next child object. if ( ( wfType == 1 ) && ( wfSubType == 100 ) ) name = 'Custom Workflow Type' handled = True elseif ( ( wfType == 1 ) && ( wfSubType == 101 ) ) name = 'Another Custom Workflow Type' handled = True end //Assign the results to fields in the retval Assoc, and then //return retVal. retVal.Handled = handled retVal.Name = name return( retVal ) end