tracker issue : CF-4198308

select a category, or use search below
(searches all categories and all time range)
Title:

CFIDE.scheduler.ITaskEventHandler init method not called

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Oliver Jones / Oliver Jones ()

Created: 02/02/2017

Components: Scheduler

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.02.299200 /

Priority/Frequency: Normal /

Locale/System: / Windows 7 SP1 64-bit

Vote Count: 0

Problem Description: CFIDE.scheduler.ITaskEventHandler init method not called

Steps to Reproduce:
Create simple event handler:
/**
 * Created by OJONES48 on 02/02/2017.
 */
component implements="CFIDE.scheduler.ITaskEventHandler" {

    public void function init () {
        writeDump(var="Executing init method", output="console");
        writeDump(var=application, output="console");
    }

    public boolean function onTaskStart (struct context) {
        return true;
    }

    public void function onMisfire (struct context) {

    }

    public void function onTaskEnd (struct context) {

    }

    public void function onError (struct context) {

    }

    public void function execute (struct context) {
        writeDump(var="Task Executed", output="console");
    }
}

Actual Result: Nothing is output

Expected Result: Output to console

Any Workarounds:

Attachments:

Comments:

Hi Oliver, We do not initialize the object of the eventhandler and directly call the functions .Hence the init method is not called. This is not a bug . Thanks, Suchika
Comment by Suchika S.
1252 | March 10, 2017 01:27:29 PM GMT
We do not initialize the object of the event-handler and directly call the functions and so the init method is not called.This is not a bug , hence we are closing the bug.
Comment by Suchika S.
1253 | August 01, 2017 06:39:18 AM GMT