|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfuego.papi.VarDefinition
public class VarDefinition
This class contains all the information related with a process variable. Apart from the id, type, mask, and size of the variable, this class can provide the label related to any given location specified (on demand).
Field Summary | |
---|---|
static String |
ACTIVITY_DEADLINE_ID
The id of the default variable "Activity Deadline" |
static String |
ACTIVITY_ID
The id of the default variable "Activity" |
static String |
AUTHOR_DISPLAYNAME
The Display Name of the default variable "Author" for an Instance |
static String |
AUTHOR_ID
The id of the default variable "Author" for an Instance |
static String |
COPY_ID
The id of the default variable "Copy" |
static String |
CREATION_TIME_ID
The id of the default variable "Creation time" for an Instance |
static String |
CREATOR_ID
The id of the default variable "Creator" for an Attachment |
static String |
DEADLINE_ID
The id of the default variable "Deadline" |
static String |
DESCRIPTION_ID
The id of the default variable "Description" |
static String |
DOCUMENTATION_ID
The id of the default variable "Deadline" |
static String |
FILENAME_ID
The id of the default variable "Filename" for an Attachment |
static String |
HAS_ATTACHMENTS
If the instance has or not attachments |
static String |
HAS_NOTES
If the instance has or not notes |
static String |
INSTANCE_NUMBER
The id of the default variable "Process Instance Number" for an Instance |
static String |
LOCKER_ID
The id of the default variable "Locker" for an Attachment |
static String |
MAIN_TASK_PARTICIPANT_ID
The participant which has the instance main task selected |
static String |
NAME_ID
The id of the default variable "Name" for an Attachment |
static String |
PARENT_COPY_ID
The id of the default variable "Parent copy or thread" for an Instance |
static String |
PARTICIPANT_ID
The id of the default variable "Participant" |
static String |
PRIORITY_ID
The id of the default variable "Priority" |
static String |
PROCESS_DEADLINE_ID
The id of the default variable "Process Deadline" |
static String |
PROCESS_ID
The id of the default variable "Process" |
static String |
RECEIVED_ID
The id of the default variable "Received" |
static String |
SIZE_ID
The id of the default variable "Size" for an Attachment |
static String |
STATUS_ID
The id of the default variable "Status" |
static String |
TASK_ID
The id of the default variable "Task" for an Activity |
static String |
VERSION_ID
The id of the default variable "Version" for an Attachment |
Constructor Summary | |
---|---|
VarDefinition(String varId,
int varKind,
String varMask,
int varSize,
int varFractionSize,
Map varLabels)
|
|
VarDefinition(String varId,
int varKind,
String varMask,
int varSize,
Map varLabels)
|
Method Summary | |
---|---|
static VarDefinition[] |
createApplicationDefaults()
This methos returns the default variable definitions for an Application. |
static VarDefinition[] |
createAttachmentDefaults()
This methos returns the default variable definitions for an Attachment. |
static VarDefinition[] |
createInstanceDefaults()
This methos returns the default variable definitions for an Instance. |
static String |
getDatabaseColumnName(String varId)
Returns the database column name of the variable. |
static SortedMap<String,VarDefinition> |
getDefaultVarDefinition()
Return all defautl variables definition |
static VarDefinition |
getDefaultVarDefinition(String variableId)
Return a specific VarDefinition (Only for default variables, not incluide external variables). |
int |
getFractionSize()
This method returns the specific size of the instance variable fraction part. |
String |
getId()
This method returns the identificator of this variable. |
int |
getKind()
This method returns the Kind of the variable. |
String |
getLabel(Locale locale)
This method returns the label of the variable for the given location. |
Map |
getLabels()
Returns all labels for this variable |
String |
getMask()
This method returns a mask, usefull to print the value of this variable for any given instance. |
fuego.resources.Msg |
getMsg()
Returns the Msg with all labels for this variable. |
int |
getSize()
This method returns the specific size of the instance variable. In case the type of the varible is DECIMAL, the value returned by this method represents both int + fraction size. |
boolean |
isExternal()
External variable or not |
static boolean |
isExternal(String variableId)
Return if the variable identification is external vairable or not. |
void |
setFractionSize(int size)
This method sets the specific size of the instance variable fraction part. |
void |
setSize(int size)
This method sets the specific size of the instance variable. In case the type of the varible is DECIMAL, the value passed to this method represents both int + fraction size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NonNls public static final String DESCRIPTION_ID
@NonNls public static final String STATUS_ID
@NonNls public static final String PRIORITY_ID
@NonNls public static final String DEADLINE_ID
@NonNls public static final String DOCUMENTATION_ID
@NonNls public static final String RECEIVED_ID
@NonNls public static final String PROCESS_DEADLINE_ID
@NonNls public static final String ACTIVITY_DEADLINE_ID
@NonNls public static final String PROCESS_ID
@NonNls public static final String ACTIVITY_ID
@NonNls public static final String PARTICIPANT_ID
@NonNls public static final String COPY_ID
@NonNls public static final String TASK_ID
@NonNls public static final String AUTHOR_ID
@NonNls public static String AUTHOR_DISPLAYNAME
@NonNls public static final String CREATION_TIME_ID
@NonNls public static final String PARENT_COPY_ID
@NonNls public static final String INSTANCE_NUMBER
@NonNls public static final String NAME_ID
@NonNls public static final String CREATOR_ID
@NonNls public static final String VERSION_ID
@NonNls public static final String FILENAME_ID
@NonNls public static final String LOCKER_ID
@NonNls public static final String SIZE_ID
@NonNls public static final String HAS_ATTACHMENTS
@NonNls public static String HAS_NOTES
@NonNls public static String MAIN_TASK_PARTICIPANT_ID
Constructor Detail |
---|
public VarDefinition(String varId, int varKind, String varMask, int varSize, Map varLabels)
public VarDefinition(String varId, int varKind, String varMask, int varSize, int varFractionSize, Map varLabels)
Method Detail |
---|
public static String getDatabaseColumnName(String varId)
varId
- The variable Id to obtain the database column name
public static SortedMap<String,VarDefinition> getDefaultVarDefinition()
public static VarDefinition getDefaultVarDefinition(String variableId)
variableId
-
public static boolean isExternal(String variableId)
variableId
-
public static VarDefinition[] createApplicationDefaults()
public static VarDefinition[] createAttachmentDefaults()
public static VarDefinition[] createInstanceDefaults()
public void setFractionSize(int size)
size
- The new size of the variable.public int getFractionSize()
public String getId()
public int getKind()
public String getLabel(Locale locale)
locale
- The location where to find the label
public Map getLabels()
public String getMask()
public void setSize(int size)
size
- The new size of the variable.public int getSize()
public boolean isExternal()
public fuego.resources.Msg getMsg()
null
if the varible is external.
null
if the varible is external.
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |