GetTaskGif()

This code sample describes how to define the image used to represent the step in the Workflow Designer. This image changes depending on the performer of the step.

	Function String GetTaskGif( \
		Object prgCtx, \
		Record taskRec )
		
		String retVal
		Integer id = .GetTaskTypeObj().GetTaskPerformerId( taskRec )
		if ( IsDefined( id ) )
			retVal = .GetDisplayInfo( prgCtx, taskRec ).Gif
		else
			retVal = .fTaskGif
		end
		return( retVal )
	end