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

E22564-02

oracle.apps.fnd.applseed.orch
Class SDFOrchestratorTask

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

public class SDFOrchestratorTask
extends java.lang.Object

Structure that represents one SDF task


Nested Class Summary
static class SDFOrchestratorTask.Status
          The Enum Status.
 
Method Summary
 void AddDependency(SDFOrchestratorTask task)
          Adds the dependency.
 boolean canBeAssigned()
          Can the task be assigned? Yes if it is not started yet, and all it's prerequisites are completed.
 boolean canBeFinished()
          Can the task be successfully finished in the future? Yes if it is not failed or completed already and none of it's prerequisites has failed.
 void complete()
          Mark the task as completed.
 void fail()
          Mark the task as failed.
 java.util.List<SDFOrchestratorTask> getDependOn()
           
 java.lang.String getName()
          Gets the task name.
 java.lang.String getParams()
          Gets the parameters of the task.
 SDFOrchestratorTask.Status getStatus()
          Gets the status of the task.
 SDFOrchestratorTask getWaitingOn()
           
 boolean hasAnyPreTaskFailed()
          Has any pre task failed
 void setStatus(SDFOrchestratorTask.Status status)
          Sets the status of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Gets the task name.

Returns:
the task name

getParams

public java.lang.String getParams()
Gets the parameters of the task.

Returns:
the parameters of the task

getDependOn

public java.util.List<SDFOrchestratorTask> getDependOn()

getWaitingOn

public SDFOrchestratorTask getWaitingOn()

complete

public void complete()
Mark the task as completed.


fail

public void fail()
Mark the task as failed.


getStatus

public SDFOrchestratorTask.Status getStatus()
Gets the status of the task.

Returns:
the status of the task

setStatus

public void setStatus(SDFOrchestratorTask.Status status)
Sets the status of the task.

Parameters:
status - : the new status

hasAnyPreTaskFailed

public boolean hasAnyPreTaskFailed()
Has any pre task failed

Returns:
false, if no pre task has failed

canBeAssigned

public boolean canBeAssigned()
Can the task be assigned? Yes if it is not started yet, and all it's prerequisites are completed.

Returns:
true, if the task can be assigned

canBeFinished

public boolean canBeFinished()
Can the task be successfully finished in the future? Yes if it is not failed or completed already and none of it's prerequisites has failed.

Returns:
true, the task be successfully finished in the future

AddDependency

public void AddDependency(SDFOrchestratorTask task)
Adds the dependency.

Parameters:
task - : task on which this task depends

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

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.