Package com.uc4.api.objects
Class CheckActivitiesCondition
- java.lang.Object
-
- com.uc4.api.objects.ConditionOrAction
-
- com.uc4.api.objects.CheckActivitiesCondition
-
- All Implemented Interfaces:
Condition
public class CheckActivitiesCondition extends ConditionOrAction implements Condition
Checks the status of an activity.
-
-
Constructor Summary
Constructors Constructor Description CheckActivitiesCondition()
Creates a newCheckActivitiesCondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElse(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is false.void
addWhen(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.java.util.Iterator<ConditionOrAction>
elseIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is false.int
elseSize()
Returns the number of action/conditions which should be executed when this condition is false.int
getCount()
int
getDisplayMessageID()
java.lang.String
getId()
UC4ObjectName
getName()
java.lang.String
getOperator()
int
getParameterMessageID()
int
getSkeletonMessageID()
TaskState
getStatus()
boolean
isAction()
boolean
isAfterCondition()
boolean
isBeforeCondition()
boolean
isIF()
void
setCount(int count)
void
setName(UC4ObjectName name)
void
setOperator(java.lang.String operator)
void
setStatus(TaskState status)
java.util.Iterator<ConditionOrAction>
whenIterator()
The returned iterator can be used to get the actions/conditions which are executed when this condition is true.int
whenSize()
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
-
-
-
-
Method Detail
-
setName
public void setName(UC4ObjectName name)
- Parameters:
name
- Name of the UC4 object
-
setOperator
public void setOperator(java.lang.String operator)
- Parameters:
operator
- Operator which is used to compare the number of tasks
-
setCount
public void setCount(int count)
- Parameters:
count
- Number of tasks
-
setStatus
public void setStatus(TaskState status)
- Parameters:
status
- Filter for the status
-
getName
public UC4ObjectName getName()
- Returns:
- Name of the Job
-
getOperator
public java.lang.String getOperator()
- Returns:
- Operator which is used to compare the number of tasks
-
getCount
public int getCount()
- Returns:
- Number of tasks or
-1
if not defined.
-
getStatus
public TaskState getStatus()
- Returns:
- Filter for the status
-
isBeforeCondition
public boolean isBeforeCondition()
- Specified by:
isBeforeCondition
in interfaceCondition
- Specified by:
isBeforeCondition
in classConditionOrAction
- Returns:
- true if the action/condition is allowed on the "Pre-Condition" tab
-
isAfterCondition
public boolean isAfterCondition()
- Specified by:
isAfterCondition
in interfaceCondition
- Specified by:
isAfterCondition
in classConditionOrAction
- Returns:
- true if the action/condition is allowed on the "Post-Condition" tab
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceCondition
- Specified by:
getId
in classConditionOrAction
- Returns:
- ID of the condition or action
-
addWhen
public void addWhen(ConditionOrAction item)
Description copied from interface:Condition
Adds a condition or action to the list of conditions/actions which should be executed when this condition is true.
-
addElse
public void addElse(ConditionOrAction item)
Description copied from interface:Condition
Adds 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:Condition
Returns the number of action/conditions which should be executed when this condition is true.
-
elseSize
public int elseSize()
Description copied from interface:Condition
Returns the number of action/conditions which should be executed when this condition is false.
-
whenIterator
public java.util.Iterator<ConditionOrAction> whenIterator()
Description copied from interface:Condition
The returned iterator can be used to get the actions/conditions which are executed when this condition is true. The remove() method of thejava.util.Iterator
can be used to remove conditions or actions.- Specified by:
whenIterator
in interfaceCondition
- Returns:
- Iterator
-
elseIterator
public java.util.Iterator<ConditionOrAction> elseIterator()
Description copied from interface:Condition
The returned iterator can be used to get the actions/conditions which are executed when this condition is false. The remove() method of thejava.util.Iterator
can be used to remove conditions or actions.- Specified by:
elseIterator
in interfaceCondition
- Returns:
- Iterator
-
isAction
public boolean isAction()
- Specified by:
isAction
in classConditionOrAction
- Returns:
- true if the sub class is an instance of
com.uc4.api.objects.Action
or false if the sub class is an instance ofcom.uc4.api.objects.Condition
-
isIF
public boolean isIF()
- Specified by:
isIF
in classConditionOrAction
- Returns:
- true if the action/condition is allowed in the condition of an IF workflow
-
getParameterMessageID
public int getParameterMessageID()
- Specified by:
getParameterMessageID
in classConditionOrAction
- Returns:
- Message number of the parameter message
-
getSkeletonMessageID
public int getSkeletonMessageID()
- Specified by:
getSkeletonMessageID
in classConditionOrAction
- Returns:
- Message number of this condition or action
-
getDisplayMessageID
public int getDisplayMessageID()
- Specified by:
getDisplayMessageID
in classConditionOrAction
- Returns:
- Message number for displaying this condition
-
-