How to configure a service in scheduler with inputs

Hi All,

I have a requirement to configure a service in scheduler which has a input value,
i don’t want to define a new service in developer to supply the input value for the service which has to be placed in scheduler.

Could any one please let me know how to achieve this and give an input to the service in scheduler on a fly.

Below are the services which i want to configure as schedulers:

pub.art.connection:enableConnection

pub.art.listener:enableListener

pub.art.notification:enableListenerNotification

Regards,
Vikram

You can use pub.scheduler:addComplexTask, addOneTimeTask or addRepeatingTask. Each of these accepts a paramter named “input” which you can set with the inputs for the service being called.

Be advised, however, that if anyone uses IS Administrator to edit the task in any way the inputs will be lost.

Thanks for your quick response rob.

I am trying to add a repeating task by using pub.scheduler:addaddRepeatingTask

i have given all the required input values and other variables, but i am getting an exception while invoking the service "Could not run ‘addRepeatingTask’.

com.wm.app.b2b.server.ServiceException: [ISS.0085.9234] Invalid target node"

The target node combinations which i have tried giving are as follows"

localhost:port

Hostname:port

Alias:port

but still getting invalid target exception, could you please let me know what is the correct target format which we should supply while invoking the service.

Regards,
Vikram

I always use $any