|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfuego.processmodel.Activity
fuego.papi.Activity
public abstract class Activity
This class represent an Activity into the process. To obtain a particular Activity you must obtain the process where the activity was added.
Process.getActivities()
,
Process.getActivity(String)
,
Process.getActivitiesForParticipant(Participant)
,
Process.getActivitiesForRoles(String[])
Field Summary |
---|
Fields inherited from class fuego.processmodel.Activity |
---|
AUTOMATIC, BEGIN, COMPENSATE, CONDITIONAL, CREATION, DECISION, END, GLOBAL, GLOBAL_AUTOMATIC, GLOBAL_CREATION, GRAB, GROUP, INTERACTIVE, INTERACTIVE_COMPONENT_CALL, INTERACTIVE_GRAB, JOIN, NOTIFICATION_WAIT, PROCESS_CREATION, PROCESS_NOTIFICATION, SPLIT, SPLIT_N, SUBFLOW, SUBPROCESS, TERMINATION_WAIT |
Constructor Summary | |
---|---|
Activity()
|
Method Summary | |
---|---|
abstract boolean |
canBeGrabbedBy(Activity grabActivity)
Returns true if this activity can be grabbed by the given grab activity, otherwise false. |
abstract boolean |
canBeSeenByParticipant(Participant participant)
Returns true if the given participant can see this activity. |
abstract boolean |
canBeSeenByRole(String role)
Return if this activity can be seen by the role. |
abstract boolean |
canGrab(String sourceActivity)
Returns true if this activity can grab from the given one, otherwise false. |
abstract boolean |
containsDocumentation(Locale locale)
Returns if this activity contains documentation for an specific locale. |
abstract String |
getActivityName()
Returns the activity name. |
static String |
getActivityName(String activityId)
Returns the activity name for the given activity id. |
abstract String |
getDescription(Locale locale)
Returns the localized description for the given Locale. |
abstract String |
getDocumentation(Locale locale)
Deprecated. use ProcessServiceSession.getActivityDocumentation(String, java.util.Locale) |
abstract fuego.collections.maps.LocaleStringMap |
getDocumentationMap()
|
abstract String |
getFolderName()
Returns the name of the activity folder into the working folder. |
abstract String |
getId()
Returns the activity Id. |
abstract int |
getIn()
Returns the activity identification number |
abstract String |
getLabel(Locale locale)
Returns the label of the activity for the given Locale. |
abstract fuego.collections.maps.LocaleStringMap |
getLabels()
Return all labels |
abstract Process |
getProcess()
Returns the parent process for this activity |
abstract String |
getProcessId()
Returns parent process Id for this activity |
static String |
getProcessId(String activityId)
Returns the process Id for the given activity id |
abstract String |
getRole()
Returns the associated role for this activity |
abstract Activity[] |
getSourceActivitiesForGrab()
Returns the activities where this activity can grab from. |
abstract Task |
getTask(int taskNumber)
Returns the named task defined for this activity |
abstract Task |
getTask(String taskId)
Returns the named task defined for this activity |
abstract Task[] |
getTasks()
Returns all the tasks defined for this activity |
abstract Object |
getVar(String variableId,
Locale locale)
Returns the value of any variable by id. |
abstract VarDefinition[] |
getVars()
Returns all the variable definitions for this activity. |
abstract boolean |
hasInstanceAccess()
Returns whether or not global activity has instance access |
abstract boolean |
hasLocalDocumentation()
Returns if this activity contains documentation stored in the folder name |
abstract boolean |
hasOutgoingTransitions()
Return if this activity has unconditional or conditional transitions to another activity. |
abstract boolean |
hasTransitionsToInteractiveActivities()
Return if this activity has any transition to an interactive activity |
abstract boolean |
isAbortEnabled()
Returns whether or not instances in this activity can be aborted |
abstract boolean |
isActive()
Returns whether or not this activity belongs to an active process Note: In the case of consolidated processes, it will return true if one of the process versions the activity belongs to is active |
abstract boolean |
isAutoCompleteEnabled()
Returns whether or not this activity will automatically be completed after all mandatory items are successfully processed. |
abstract boolean |
isInstancePresentation()
Return whether o not global activity is used to show the instance details |
abstract boolean |
isOnline()
Returns whether or not the process this activity belongs to is online Note: In the case of consolidated processes it will return true if any of the process versions this activity belongs to is online |
abstract boolean |
isReassignEnabled()
Returns the status of the activity option "Reasign" |
abstract boolean |
isResaignEnabled()
Deprecated. use isReassignEnabled() intead |
abstract boolean |
isSelectEnabled()
Returns true if the instances in this activity can be selected. |
abstract boolean |
isSuspendEnabled()
Returns whether or not instances in this activity can be aborted |
abstract boolean |
isUserSelectsTransitionEnabled()
Returns whether or not the user (participant) can select the transition to route the instance. |
static String |
makeId(String processId,
String activityName)
Builds the activity id from the processId and the activityName. activityId = "processId/activityName". |
abstract void |
setDocumentation(Locale locale,
String html)
|
abstract void |
setDocumentationMap(fuego.collections.maps.LocaleStringMap documentationMap)
|
Methods inherited from class fuego.processmodel.Activity |
---|
getName, getType, hasType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fuego.papi.MDObject |
---|
getName |
Constructor Detail |
---|
public Activity()
Method Detail |
---|
public abstract boolean isAbortEnabled()
public abstract boolean isActive()
public abstract boolean isAutoCompleteEnabled()
@Deprecated public abstract String getDocumentation(Locale locale)
ProcessServiceSession.getActivityDocumentation(String, java.util.Locale)
ProcessServiceSession.getActivityDocumentation(String, java.util.Locale)
.
getDocumentation
in interface MDObject
locale
- the desired locale
ProcessServiceSession.getActivityDocumentation(java.lang.String, java.util.Locale)
public abstract String getFolderName()
getFolderName
in interface MDObject
public abstract String getId()
getId
in interface MDObject
makeId(String,String)
public abstract int getIn()
public abstract boolean isInstancePresentation()
public abstract boolean isOnline()
public abstract Process getProcess()
public abstract String getProcessId()
@Deprecated public abstract boolean isResaignEnabled()
isReassignEnabled()
intead
public abstract boolean isReassignEnabled()
public abstract boolean hasInstanceAccess()
public abstract String getActivityName()
public abstract String getDescription(Locale locale)
getDescription
in interface MDObject
getDescription
in class Activity
locale
- Locale to obtain the description in that lenguage.
Locale
public abstract String getLabel(Locale locale)
getLabel
in interface MDObject
locale
- Locale to obtain the label in that lenguage.
Locale
public abstract fuego.collections.maps.LocaleStringMap getLabels()
Map
,
Locale.getLanguage()
public abstract String getRole()
public abstract boolean isSelectEnabled()
public abstract Activity[] getSourceActivitiesForGrab()
Activity
public abstract boolean isSuspendEnabled()
public abstract Task getTask(int taskNumber)
taskNumber
- task number
Task
public abstract Task getTask(String taskId)
taskId
- task id
Task
public abstract Task[] getTasks()
Task
public abstract boolean isUserSelectsTransitionEnabled()
public abstract boolean hasLocalDocumentation()
hasLocalDocumentation
in interface MDObject
public abstract boolean hasOutgoingTransitions()
public abstract boolean hasTransitionsToInteractiveActivities()
public abstract void setDocumentation(Locale locale, String html)
setDocumentation
in interface MDObject
public abstract void setDocumentationMap(fuego.collections.maps.LocaleStringMap documentationMap)
public abstract fuego.collections.maps.LocaleStringMap getDocumentationMap()
public abstract Object getVar(String variableId, Locale locale) throws InvalidVariableIdException
variableId
- The id of the variable whose value is requiredlocale
- The locale for the variable returned.
InvalidVariableIdException
- if is an invalid variable idpublic abstract VarDefinition[] getVars()
public abstract boolean canBeGrabbedBy(Activity grabActivity)
grabActivity
- The grab activity.
public abstract boolean canBeSeenByParticipant(Participant participant)
participant
- The participant with its roles
public abstract boolean canBeSeenByRole(String role)
role
- A String with the role id to check.
public abstract boolean canGrab(String sourceActivity)
sourceActivity
- The source activity name where to grab from.
public abstract boolean containsDocumentation(Locale locale)
containsDocumentation
in interface MDObject
locale
- specific java.util.Locale to verify if this activity contains documentation for that language.
public static String getProcessId(String activityId)
activityId
- The activity Id to obtain the process Id.
public static String getActivityName(String activityId)
activityId
- The activity Id to obtain the process Id.
public static String makeId(String processId, String activityName)
processId
- The process Id of the parent process of the activity.activityName
- The activity name.
getId()
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |