GetWFTypes()
This code sample describes how to define the different types of custom workflows in Livelink.
Function List GetWFTypes()
Assoc data
List retVal
//Set the type (wfType), subtype (wfSubType), and name of the
//new workflow type. Store these values in an Assoc named data,
//and then add the information in the Assoc to a list named
//retVal.
data.Type = 1
data.SubType = 100
data.Name = 'Custom Workflow Type'
retVal = { data }
//Create a new Assoc which will store the values of the next
//custom workflow type.
data = Assoc.CreateAssoc()
//Set the type (wfType), subtype (wfSubType), and name of
//another new workflow type. Store these values in the new data
//Assoc.
data.Type = 1
data.SubType = 101
data.Name = 'Another Custom Workflow Type'
//Append the information in the data Assoc to the end of the
//retVal list, and then return the list.
retVal = { @retVal, data }
return( retVal )
end