Package com.uc4.api.objects
Class ConditionOrAction
java.lang.Object
com.uc4.api.objects.ConditionOrAction
- Direct Known Subclasses:
AbortAction,BlockAction,CancelProcessFlowAction,ChangeQueueAction,CheckActivitiesCondition,CheckConnectionCondition,CheckFileCondition,CheckHistoryCondition,CheckProcessCondition,ClearVariableAction,CurrentQueueCondition,CurrentTimeCondition,ExecuteObjectAction,ModifyStateAction,PublishValueAction,ReEvaluateAtAction,ReEvaluateInAction,RestartTaskAction,ReturnCodeCondition,RollbackAction,RunPathAction,RunTaskAction,SetValueAction,SetVariableAction,SkipTaskAction,StatusCondition,TimeSinceActivationCondition,UserDefinedCondition
Base class of all Conditions or Actions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of this objectstatic ActionCreates an action according to the id.static ConditionCreates a condition according to the id.booleanabstract intabstract StringgetId()getParameter(String name) Internal use only: Returns the value or message number of the specified parameter.abstract intabstract intinthashCode()abstract booleanisAction()booleanisActive()abstract booleanabstract booleanabstract booleanisIF()booleanisOnce()booleanisParameterAltView(String name) Returnstrueif the alternative view is enabled for the specified parameter If the parameter was not foundfalseis returned.voidsetActive(boolean active) Activates or deactivates a condition.voidsetOnce(boolean once) voidsetParameter(String name, String value, String type) Internal use only: Sets a condition parameter using the variable name and message number.
-
Field Details
-
PAR0
- See Also:
-
PAR1
- See Also:
-
PAR2
- See Also:
-
PAR3
- See Also:
-
params
-
-
Constructor Details
-
ConditionOrAction
public ConditionOrAction()
-
-
Method Details
-
getId
- Returns:
- ID of the condition or action
-
isAction
public abstract boolean isAction()- 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
-
isBeforeCondition
public abstract boolean isBeforeCondition()- Returns:
- true if the action/condition is allowed on the "Pre-Condition" tab
-
isAfterCondition
public abstract boolean isAfterCondition()- Returns:
- true if the action/condition is allowed on the "Post-Condition" tab
-
isIF
public abstract boolean isIF()- Returns:
- true if the action/condition is allowed in the condition of an IF workflow
-
getParameterMessageID
public abstract int getParameterMessageID()- Returns:
- Message number of the parameter message
-
getSkeletonMessageID
public abstract int getSkeletonMessageID()- Returns:
- Message number of this condition or action
-
getDisplayMessageID
public abstract int getDisplayMessageID()- Returns:
- Message number for displaying this condition
-
createConditionFromId
Creates a condition according to the id.- Parameters:
id- ID of the Condition- Returns:
- Condition
-
createActionFromId
Creates an action according to the id.- Parameters:
id- ID of the Action- Returns:
- Action
-
getParameter
Internal use only: Returns the value or message number of the specified parameter.- Parameters:
name- Name of the script variable: XC_P01, XC_P02, XC_P03, XC_P04- Returns:
- Value or an empty String if not found, never
null
-
isParameterAltView
Returnstrueif the alternative view is enabled for the specified parameter If the parameter was not foundfalseis returned.- Parameters:
name- Parameter name- Returns:
- true if the alternative view for Script variables is enabled, false if this is not the case.
-
setParameter
Internal use only: Sets a condition parameter using the variable name and message number.- Parameters:
name- Name of the script variable: XC_P01, XC_P02, XC_P03, XC_P04value- Value or a message number; example: "##911006"type- Parameter type:- V ... Value type
- A ... Value type in alternative view; used if a the value contains an Automation Engine Script variable
-
getPromptName
- Returns:
- Name of the Prompt Script
-
getScriptName
- Returns:
- Name of the Include
-
isOnce
public boolean isOnce()- Returns:
- true, if this condition should run once
-
setOnce
public void setOnce(boolean once) - Parameters:
once- true if this condition should run once
-
isActive
public boolean isActive()- Returns:
- true if this condition is active
-
setActive
public void setActive(boolean active) Activates or deactivates a condition.- Parameters:
active- true if the condition should be active, false if the condition should be inactive
-
hashCode
public int hashCode() -
equals
-
copy
Creates a deep copy of this object- Returns:
- A copy of this object
-