Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.orch
Class SDFOrchestratorTaskList

java.lang.Object
  extended by oracle.apps.fnd.applseed.orch.SDFOrchestratorTaskList

public class SDFOrchestratorTaskList
extends java.lang.Object

This class collects all the tasks that should be performed by SDF and maintains their status and dependencies.


Constructor Summary
SDFOrchestratorTaskList()
          Instantiates a new SDF orchestrator task list.
 
Method Summary
 void completeTask()
          Increment # of completed tasks.
 void FailTask()
           
 SDFOrchestratorTask findPendingTask()
          This method returns the first task that can be assigned to a handler.
 boolean hasErrors()
          Checks if there are failed tasks.
 boolean hasUncompletedTasks()
          Checks for uncompleted tasks.
 void readActions(org.w3c.dom.Document doc)
          Read actions from the xml file.
 void readFromFile(java.lang.String fileName)
          Read tasks from file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDFOrchestratorTaskList

public SDFOrchestratorTaskList()
Instantiates a new SDF orchestrator task list.

Method Detail

hasUncompletedTasks

public boolean hasUncompletedTasks()
Checks for uncompleted tasks.

Returns:
true, if there are still some uncompleted tasks

hasErrors

public boolean hasErrors()
Checks if there are failed tasks.

Returns:
true, if there are failed tasks.

completeTask

public void completeTask()
Increment # of completed tasks.


readFromFile

public void readFromFile(java.lang.String fileName)
                  throws org.xml.sax.SAXException,
                         java.io.IOException
Read tasks from file.

Parameters:
fileName - : the file name
Throws:
org.xml.sax.SAXException - if xml file is malformed
java.io.IOException - Signals that an I/O exception has occurred.

readActions

public void readActions(org.w3c.dom.Document doc)
Read actions from the xml file.

Parameters:
doc - : xml doc

findPendingTask

public SDFOrchestratorTask findPendingTask()
This method returns the first task that can be assigned to a handler. If there's no such tasks => it will return the fist task that can be assigned in the future.

Returns:
the task or nil if none of the tasks can ever be assigned

FailTask

public void FailTask()

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.