com.informatica.powercenter.sdk.mapfwk.core
Class TimerType

java.lang.Object
  extended by com.informatica.powercenter.sdk.mapfwk.core.TimerType

public class TimerType
extends java.lang.Object

Represents timer type in the Timer task Timer task has following two types of settings:

Absolute time: Allows to specify the time that the Integration Service starts running the next task in the workflow. You may specify the date and time, or you can choose a user-defined workflow variable to specify the time.

Relative time: Instruct the Integration Service to wait for a specified period of time after the Timer task, the parent workflow, or the top-level workflow starts.

These settings can be specified in the Timer task by setting the appropriate time type

See Also:
Timer

Field Summary
static java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_TIME
          Timer type - Start at absolute time
static java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_VARIABLE
          Timer type - Start at absolute variable
static java.lang.String TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW
          Timer type - Start relative to parent workflow
static java.lang.String TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK
          Timer type - Start relative to previous task
static java.lang.String TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
          Timer type - Start relative to top level workflow
 
Method Summary
static TimerType createAbsoluteTimer(java.util.Date date)
          Create an instance of absolute timer.
static TimerType createRelativeToPreviousTaskTimer(int days, int hours, int mins, java.lang.String relativeType)
          Create a relative timer
static TimerType createVariableTimer(java.lang.String variable)
          Create a variable timer
 java.util.Date getAbsoluteTime()
          Get the absoluteTime.
 java.lang.String getDateTimeVariable()
          Get the datetime variable for the timer
 int getDays()
          get the days
 int getHours()
          Get hours
 int getMins()
          get mins
 java.lang.String getTimerType()
          Get the timerType of the TimerType object
 void setAbsoluteTime(java.util.Date absoluteTime)
          Set the absolute time of the timer
 void setDateTimeVariable(java.lang.String dateTimeVariable)
          Set the datetime variable for the timer
 void setDays(int days)
          Set days
 void setHours(int hours)
          Set hours
 void setMins(int mins)
          set mins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMER_TYPE_START_AT_ABSOLUTE_TIME

public static final java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_TIME
Timer type - Start at absolute time

See Also:
Constant Field Values

TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK

public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK
Timer type - Start relative to previous task

See Also:
Constant Field Values

TIMER_TYPE_START_AT_ABSOLUTE_VARIABLE

public static final java.lang.String TIMER_TYPE_START_AT_ABSOLUTE_VARIABLE
Timer type - Start at absolute variable

See Also:
Constant Field Values

TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW

public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW
Timer type - Start relative to parent workflow

See Also:
Constant Field Values

TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW

public static final java.lang.String TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
Timer type - Start relative to top level workflow

See Also:
Constant Field Values
Method Detail

getTimerType

public java.lang.String getTimerType()
Get the timerType of the TimerType object

Returns:
String

createAbsoluteTimer

public static TimerType createAbsoluteTimer(java.util.Date date)
Create an instance of absolute timer.

Parameters:
date - The date at which the timer is to start
Returns:
TimerType

createVariableTimer

public static TimerType createVariableTimer(java.lang.String variable)
Create a variable timer

Parameters:
variable - The date/time workflow variable whose value is to be used as timer
Returns:
TimerType

createRelativeToPreviousTaskTimer

public static TimerType createRelativeToPreviousTaskTimer(int days,
                                                          int hours,
                                                          int mins,
                                                          java.lang.String relativeType)
Create a relative timer

Parameters:
days - days
hours - hours
mins - mins
relativeType - Use TimerType.TIMER_TYPE_START_RELATIVE_TO_PREVIOUSTASK, TimerType.TIMER_TYPE_START_RELATIVE_TO_PARENT_WORKFLOW or TimerType.TIMER_TYPE_START_RELATIVE_TO_TOPLEVEL_WORKFLOW
Returns:
TimerType

getAbsoluteTime

public java.util.Date getAbsoluteTime()
Get the absoluteTime.

Returns:
the absoluteTime

setAbsoluteTime

public void setAbsoluteTime(java.util.Date absoluteTime)
Set the absolute time of the timer

Parameters:
absoluteTime - the absoluteTime to set

getDateTimeVariable

public java.lang.String getDateTimeVariable()
Get the datetime variable for the timer

Returns:
the dateTimeVariable

setDateTimeVariable

public void setDateTimeVariable(java.lang.String dateTimeVariable)
Set the datetime variable for the timer

Parameters:
dateTimeVariable - the dateTimeVariable to set

getDays

public int getDays()
get the days

Returns:
the days

setDays

public void setDays(int days)
Set days

Parameters:
days - the days to set

getHours

public int getHours()
Get hours

Returns:
the hours

setHours

public void setHours(int hours)
Set hours

Parameters:
hours - the hours to set

getMins

public int getMins()
get mins

Returns:
the mins

setMins

public void setMins(int mins)
set mins

Parameters:
mins - the mins to set