Script function SYS_STATE_JP_ACTIVE returns "N" for active workflows