Re: [Dev] [DEV] Get task state from TaskService in ntask component

2014-11-27 Thread Ishara Cooray
Thanks Anjana. Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware On Thu, Nov 27, 2014 at 2:38 PM, Anjana Fernando wrote: > Hi Ishara, > > These are rough mappings to the Quartz properties that they have, only > FINISHED h

Re: [Dev] [DEV] Get task state from TaskService in ntask component

2014-11-27 Thread Anjana Fernando
Hi Ishara, These are rough mappings to the Quartz properties that they have, only FINISHED here is COMPLETED of them. There are some descriptions of those here [1]. Basically a summary would be:- * NORMAL: The task is scheduled to run, but an actual execution of the task is not happening at the m

Re: [Dev] [DEV] Get task state from TaskService in ntask component

2014-11-27 Thread Ishara Cooray
Hi Anjana, NORMAL, PAUSED, ERROR, FINISHED, NONE, BLOCKED, UNKNOWN are the task states that a particular task can have. Could you please clarify in which scenarios a task can go into these states? Also how can we identify a particular task is not scheduled properly? Thanks & Regards, Ishara Co

Re: [Dev] [DEV] Get task state from TaskService in ntask component

2014-11-26 Thread Ishara Cooray
Thanks Anjana. There is a method in taskManager.getAllTasks() which returns a list of TaskInfo. Regards, Ishara ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [DEV] Get task state from TaskService in ntask component

2014-11-25 Thread Anjana Fernando
Hi Ishara, The "taskType" is, as it says, the type of the task we are scheduling. It is to logically group a set of tasks, and is given to each task being scheduled. So after the task type, you will need the actual task name, which can be listed by the tasks from the TaskManager as I remember. So

[Dev] [DEV] Get task state from TaskService in ntask component

2014-11-25 Thread Ishara Cooray
i am using following code snippet to find the state of a particular task running on BAM. BundleContext ctx = BundleReference.class.cast(TaskService.class.getClassLoader()) .getBundle() .getBundleContext(); ServiceReference serviceReference = ctx.