Package com.uc4.api.objects
Class TimeSinceActivationCondition
java.lang.Object
com.uc4.api.objects.ConditionOrAction
com.uc4.api.objects.TimeSinceActivationCondition
- All Implemented Interfaces:
Condition
Checks time that has passed since the activation of the task.
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElse(ConditionOrAction item) Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.voidaddWhen(ConditionOrAction item) Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.The returned iterator can be used to get the actions/conditions which are executed when this condition is false.intelseSize()Returns the number of action/conditions which should be executed when this condition is false.intgetId()intintgetTime()booleanisAction()booleanbooleanbooleanisIF()voidSets the Operator of the time condition.voidSets the time for the time condition.The returned iterator can be used to get the actions/conditions which are executed when this condition is true.intwhenSize()Returns the number of action/conditions which should be executed when this condition is true.Methods inherited from class com.uc4.api.objects.ConditionOrAction
copy, createActionFromId, createConditionFromId, equals, getParameter, getPromptName, getScriptName, hashCode, isActive, isOnce, isParameterAltView, setActive, setOnce, setParameter
-
Constructor Details
-
TimeSinceActivationCondition
public TimeSinceActivationCondition()Creates a newTimeSinceActivationCondition.
-
-
Method Details
-
setOperator
Sets the Operator of the time condition.nullis not allowed, in this case a NullPointerException will be thrown.- Parameters:
operator- Operator
-
setTime
Sets the time for the time condition.- Parameters:
time- Time
-
getOperator
- Returns:
- Operator for the time condition (LESS_THAN or MORE_THAN)
-
getTime
- Returns:
- Time
-
isBeforeCondition
public boolean isBeforeCondition()- Specified by:
isBeforeConditionin interfaceCondition- Specified by:
isBeforeConditionin classConditionOrAction- Returns:
- true if the action/condition is allowed on the "Pre-Condition" tab
-
isAfterCondition
public boolean isAfterCondition()- Specified by:
isAfterConditionin interfaceCondition- Specified by:
isAfterConditionin classConditionOrAction- Returns:
- true if the action/condition is allowed on the "Post-Condition" tab
-
getId
- Specified by:
getIdin interfaceCondition- Specified by:
getIdin classConditionOrAction- Returns:
- ID of the condition or action
-
addWhen
Description copied from interface:ConditionAdds a condition or action to the list of conditions/actions which should be executed when this condition is true. -
addElse
Description copied from interface:ConditionAdds a condition or action to the list of conditions/actions which should be executed when this condition is false. -
whenSize
public int whenSize()Description copied from interface:ConditionReturns the number of action/conditions which should be executed when this condition is true. -
elseSize
public int elseSize()Description copied from interface:ConditionReturns the number of action/conditions which should be executed when this condition is false. -
whenIterator
Description copied from interface:ConditionThe returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of thejava.util.Iteratorcan be used to remove conditions or actions.- Specified by:
whenIteratorin interfaceCondition- Returns:
- Iterator
-
elseIterator
Description copied from interface:ConditionThe returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of thejava.util.Iteratorcan be used to remove conditions or actions.- Specified by:
elseIteratorin interfaceCondition- Returns:
- Iterator
-
isAction
public boolean isAction()- Specified by:
isActionin classConditionOrAction- Returns:
- true if the sub class is an instance of
com.uc4.api.objects.Actionor false if the sub class is an instance ofcom.uc4.api.objects.Condition
-
isIF
public boolean isIF()- Specified by:
isIFin classConditionOrAction- Returns:
- true if the action/condition is allowed in the condition of an IF workflow
-
getParameterMessageID
public int getParameterMessageID()- Specified by:
getParameterMessageIDin classConditionOrAction- Returns:
- Message number of the parameter message
-
getSkeletonMessageID
public int getSkeletonMessageID()- Specified by:
getSkeletonMessageIDin classConditionOrAction- Returns:
- Message number of this condition or action
-
getDisplayMessageID
public int getDisplayMessageID()- Specified by:
getDisplayMessageIDin classConditionOrAction- Returns:
- Message number for displaying this condition
-