|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.papi.InstanceId
fuego.papi.InstanceInfo
| Field Summary |
| Fields inherited from class fuego.papi.InstanceId |
NAME_SEPARATOR, ORGANIZATION_SEPARATOR |
| Constructor Summary | |
InstanceInfo()
|
|
| Method Summary | |
abstract Activity |
getActivity()
Return the activity for this instance |
abstract fuego.lang.Time |
getActivityDeadline()
Returns the deadline to complete the current activity |
abstract String |
getActivityId()
Returns the activity identification of this instance |
abstract String |
getActivityName()
Returns the activity name of this instance |
abstract int |
getAuthor()
Return the instance creator. |
abstract String |
getAuthorId()
Return the instance author id. |
fuego.lang.Time |
getCreationTime()
Instance creation time. |
abstract fuego.lang.Time |
getDeadline()
Returns the deadline for this instance in its current activity |
abstract String |
getDescription()
Returns the instance description |
abstract String |
getId()
Return the instance identification. |
abstract int |
getInternalState()
|
abstract int |
getNumberOfThreads()
Returns the number of threads (copies) this instance has. |
abstract int |
getParentThreadIn()
Returns the parent instance thread identification number |
abstract String |
getParticipantId()
Returns the participant selecting this instance. |
abstract int |
getParticipantIn()
Returns the participant identification number of this instance |
abstract int |
getPendingTaskIn()
Gets the pending task number of the task that must be re-run. |
abstract int |
getPriority()
Returns the instance's priority |
abstract Process |
getProcess()
Deprecated. WARNING: Do not invoke this method without previously initializate the ProcessService. |
abstract fuego.lang.Time |
getProcessDeadline()
Returns the instance process deadline. |
abstract String |
getProcessId()
Rerturns the process Id of this instance. |
abstract fuego.lang.Time |
getReceptionTime()
Time when this process instance reached the current activity |
abstract String |
getRoleId()
Returns the role identification of this instance |
abstract int |
getRoleIn()
Returns the role identification number of this instance |
abstract InstanceStamp |
getStamp()
This method creates and returns an object (InstanceStamp) which is needed in order to perform any operation with this instance. |
static InstanceStamp |
getStamp(String stampId)
This method creates and returns an object (InstanceStamp) which is needed in order to perform any operation with this instance. |
static InstanceStamp |
getStamp(String instanceId,
String activityName)
This method creates and returns an object (InstanceStamp) which is needed in order to perform any operation with this instance. |
abstract InstanceStamp |
getStampForActivity(String activityName)
This method creates and returns an object (InstanceStamp) which is needed in order to perform any operation with this instance. |
abstract int |
getStatus()
Returns the instance status |
abstract String |
getStatusDescription(Locale locale)
Returns the instance status desciption |
abstract Task |
getTask(int taskNumber)
Returns the metadata task for the specific task index |
abstract Task |
getTask(String taskId)
Returns the metadata task for the specific task id |
abstract int |
getTaskCount()
This method returns the current task |
abstract int |
getTaskIn(int taskNumber)
Returns the task identification number for the task number. |
abstract int |
getTaskInternalStatus(int taskNumber)
|
abstract String |
getTaskLastExecutionParticipant(int taskNumber)
Return the last participant UID that execute the specific task. |
abstract fuego.lang.Time |
getTaskLastExecutionTime(int taskNumber)
Return the last time execution of the specific task. |
abstract String |
getTaskParticipantId(int taskNumber)
Rerturns the participant selecting the task. |
abstract int |
getTaskRetryCounter(int taskNumber)
Returns the retryCounter for the passed task |
abstract Task[] |
getTasks()
Returns the metadata task for the task in this instace |
abstract String |
getTaskStatusDescription(int taskNumber,
Locale locale)
Returns the task status desciption |
abstract Object |
getVar(String variableId)
Returns the value of any variable by id. |
abstract Object |
getVar(String variableId,
Locale locale)
Returns the value of any variable by id for a given locale. |
abstract boolean |
hasPendingTasks()
This methods returns true if the process instance has mandatory items that still need to be runned. |
abstract boolean |
hasRepeatableTasks()
This methods returns true if the process instance has any repeatable item. |
abstract void |
invalidateTask(int taskNumber)
This method invalidates the specific task index |
abstract boolean |
isAborted()
Returns whether or not the process instance is aborted |
abstract boolean |
isActivityCompleted()
Returns whether or not the process instance has the activity completed |
abstract boolean |
isCompleted()
Returns whether or not the process instance is completed |
abstract boolean |
isException()
Returns whether or not the process instance is an exception |
abstract boolean |
isExecuting()
Returns if this instance is executing or not. |
abstract boolean |
isGrabbed()
Returns whether or not the process instance is grabbed |
abstract boolean |
isPending()
Returns whether or not the process instance is pending |
abstract boolean |
isRunning()
Returns whether or not the process instance is running |
abstract boolean |
isSelected()
Returns if this instance is selected or not. |
boolean |
isSelectedBy(String participantId)
Package method |
abstract boolean |
isSuspended()
Returns whether or not the process instance is suspended |
abstract boolean |
isTaskCompleted(int taskNumber)
Returns whether or not this process instance item is already completed |
abstract boolean |
isTaskRunning(int taskNumber)
Returns whether or not the process instance item is being executed |
abstract boolean |
isTaskSelected(int taskNumber)
Returns whether or not this process instance item is currently selected Note: Repeatable items can be selected even if they have already been completed |
abstract boolean |
isTaskValid(int taskNumber)
Returns if the specific task index is valid or not in this instance |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
Builds the id in the way instanceId+ORGANIZATION_SEPARATOR+organization. If it is needed to build an instanceId, use makeId() instead. To get the Organization use getOrganization, to obtain the instanceId alone use getInstanceId. |
static String |
makeId(String processId,
int instanceIn,
int threadIn)
Build the instance id based on the different values. instanceId = "PrcessId/InstanceIn/ThreadIn" |
String |
toString()
Gets the String representation of the instance |
| Methods inherited from class fuego.papi.InstanceId |
compare, compareTo, equals, equals, getInstanceId, getInstanceId, getInstanceIn, getInstanceIn, getOrganization, getProcessId, getProcessIn, getThreadIn, getThreadIn, hashCode, isProcessId, isValidInstanceId, makeGlobalId, makeId, makeId |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InstanceInfo()
| Method Detail |
public static final String makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
makeId(java.lang.String,int,int)
public static final String makeId(String processId,
int instanceIn,
int threadIn)
processId - instanceIn - threadIn -
getId()public abstract Activity getActivity()
Activitypublic abstract boolean isActivityCompleted()
public abstract fuego.lang.Time getActivityDeadline()
public abstract String getActivityId()
public abstract String getActivityName()
public abstract int getAuthor()
public abstract String getAuthorId()
public abstract boolean isCompleted()
public abstract fuego.lang.Time getDeadline()
public fuego.lang.Time getCreationTime()
public abstract String getDescription()
public abstract boolean isException()
public abstract boolean isExecuting()
public abstract boolean isGrabbed()
public abstract String getId()
makeId(java.lang.String,int,int)public abstract int getInternalState()
public abstract int getNumberOfThreads()
public abstract int getParentThreadIn()
public abstract String getParticipantId()
public abstract int getParticipantIn()
public abstract boolean isPending()
public abstract int getPendingTaskIn()
public abstract int getPriority()
public abstract Process getProcess()
public abstract fuego.lang.Time getProcessDeadline()
public abstract String getProcessId()
public abstract fuego.lang.Time getReceptionTime()
public abstract String getRoleId()
public abstract int getRoleIn()
public abstract boolean isRunning()
public abstract boolean isSelected()
public abstract InstanceStamp getStamp()
public abstract int getTaskCount()
public abstract int getTaskIn(int taskNumber)
taskNumber - Task Number to obtein the Task Identification Number.
public abstract int getTaskInternalStatus(int taskNumber)
public abstract String getTaskLastExecutionParticipant(int taskNumber)
taskNumber - Task Number to obtein the participant Id
public abstract fuego.lang.Time getTaskLastExecutionTime(int taskNumber)
taskNumber - Task Number to obtein the Time
public abstract String getTaskParticipantId(int taskNumber)
taskNumber - Task Number to obtein the participant Id
public abstract int getTaskRetryCounter(int taskNumber)
public abstract boolean isTaskRunning(int taskNumber)
taskNumber -
public abstract boolean isTaskSelected(int taskNumber)
taskNumber -
public abstract String getTaskStatusDescription(int taskNumber,
Locale locale)
taskNumber - The task number.locale - The locale for the description of the status.
public abstract boolean isTaskValid(int taskNumber)
public abstract Task[] getTasks()
Task
public abstract Object getVar(String variableId,
Locale locale)
variableId - The id of the variable whose value is required.locale - The locale to use for those variables which can be localized.
List of localizable variables: @see VarDefinition#ACTIVITY_ID
public abstract Object getVar(String variableId)
variableId - The id of the variable whose value is required
public abstract boolean hasPendingTasks()
public abstract boolean hasRepeatableTasks()
public static InstanceStamp getStamp(String instanceId,
String activityName)
instanceId - The is of the instance that will be inside the stamp.activityName - The name of the activity where this instance is suposed to be.
public static InstanceStamp getStamp(String stampId)
stampId - The identificator of the stamp (instanceId/activityName).
public abstract boolean isAborted()
public abstract InstanceStamp getStampForActivity(String activityName)
activityName - The name of the activity where this instance is suposed to be.
public abstract int getStatus()
Statuspublic abstract String getStatusDescription(Locale locale)
locale - The locale for the description of the status.
public abstract boolean isSuspended()
public abstract Task getTask(int taskNumber)
taskNumber - Task index for obtein the metadata.
Taskpublic abstract Task getTask(String taskId)
taskId - Task identification
Taskpublic abstract boolean isTaskCompleted(int taskNumber)
taskNumber -
public abstract void invalidateTask(int taskNumber)
taskNumber - Task index in the task arraypublic final boolean isSelectedBy(String participantId)
public String toString()
InstanceId
toString in class InstanceId
|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||