0 Replies Latest reply on Dec 30, 2007 3:20 PM by LinkMc

    cfschedule Flex application

    LinkMc
      I am currently building a flex 3 application that will create, update and delete tasks in the cfadministrator from a flex application. We are using a shared hosting that has everything enabled except for rds and cfexecute.
      I have create 2 mysql db tables that will hold the schedule information and logging the tasks and errors of executing.

      My problem is how do i execute the a cfc that has cfschedule with my arguments that comes form the flex application. I know that if I place cfschedule in a cfm page and open it will interact with the task schedule in the administrator, but I don't really know how to execute cfschedule in a cfc.

      I am using ColdFusion 8 with MYSQL 5.0 and Flex 3


      Attach Code

      <cfcomponent output="false" alias="admin.SuperUser.TaskScheduler.cfc.ScheduleTask">
      <cffunction name="setSchedule" access="remote" returntype="any">

      <cfargument name="task" type="any" required="yes">
      <cfargument name="taskaction" type="string" required="yes">
      <cfargument name="url" type="string" required="yes">
      <cfargument name="startdate" type="date" required="yes">
      <cfargument name="starttime" type="string" required="yes">
      <cfargument name="enddate" type="date" required="no">
      <cfargument name="endtime" type="string" required="no">
      <cfargument name="urlusername" type="string" required="no">
      <cfargument name="urlpassword" type="string" required="no">
      <cfargument name="publish" type="string" required="no">
      <cfargument name="publishfile" type="string" required="no">
      <cfargument name="taskinterval" type="string" required="no">
      <cfargument name="operationtask" type="string" required="yes">
      <cfargument name="publishpath" type="string" required="no">
      <cfargument name="portnumber" type="numeric" required="no">
      <cfargument name="proxypassword" type="string" required="no">
      <cfargument name="proxyport" type="numeric" required="no">
      <cfargument name="proxyserver" type="string" required="no">
      <cfargument name="proxyuser" type="string" required="no">
      <cfargument name="requesttimeout" type="numeric" required="no">
      <cfargument name="resolveurl" type="string" required="no">


      <cfschedule
      task="#arguments.task#"
      action="#arguments.taskaction#"
      url="#arguments.url#"
      startdate="#arguments.startdate#"
      starttime="#arguments.starttime#"
      enddate="#arguments.enddate#"
      endtime="#arguments.endtime#"
      username="#arguments.urlusername#"
      password="#arguments.urlpassword#"
      file="#arguments.publishfile#"
      interval="#arguments.taskinterval#"
      operation="#arguments.operationtask#"
      path="#arguments.publishpath#"
      port="#arguments.portnumber#"
      proxypassword="#arguments.proxypassword#"
      proxyport="#arguments.proxyport#"
      proxyserver="#arguments.proxyserver#"
      proxyuser="#arguments.proxyuser#"
      publish="#arguments.publish#"
      requesttimeout="#arguments.requesttimeout#"
      resolveurl="#arguments.resolveurl#">

      </cffunction>
      </cfcomponent>