org.ow2.bonita.facade.def.majorElement
Interface ActivityDef

All Superinterfaces:
DefinitionRecord, ProcessDefinitionRecord, java.io.Serializable

public interface ActivityDef
extends ProcessDefinitionRecord, java.io.Serializable


Nested Class Summary
static class ActivityDef.FinishMode
           
static interface ActivityDef.IterationDef
           
static class ActivityDef.StartMode
           
 
Method Summary
 java.lang.String getActivityId()
           
 java.lang.String getBlockId()
          Not supported.
 java.util.Set<DataFieldDef> getDataFields()
          Bonita engine allows to specify datafields for activities.
 java.util.Set<DeadlineDef> getDeadlines()
          Deadlines are used to execute a specified java class upon the expiration of a specified period of time.
 java.lang.String getDescription()
          Short textual description of the activity.
 java.lang.String getDocumentation()
          The address (e.g. path- and filename) for a help file or a description file of the activity.
 ActivityDef.FinishMode getFinishMode()
          Not supported.
 java.util.Set<HookDef> getHooks()
          Hooks are user defined logic that can be triggered at some points of the life of the activity.
 java.lang.String getIcon()
          Address (path- and filename) for an icon to represent the activity in a graphical modeller.
 java.util.Set<ActivityDef.IterationDef> getIterations()
           
 java.lang.String getLimit()
          Expected duration for time management purposes (e.g. starting an escalation procedure etc.)
 java.lang.String getPerformer()
          Returns the performer of the activity.
 PerformerAssignDef getPerformerAssign()
          Performer assignment allows to perform various assignment rules within the task module.
 java.lang.String getPriority()
          A value that describes the initial priority of this activity when it starts execution.
 SimulationInformationDef getSimulationInformation()
          Estimations for simulation of an Activity.
 ActivityDef.StartMode getStartMode()
          If StartMode=Manual a task entity is created by the engine and stored in the task repository and is waiting to be take in account by an end user.
 SubFlowDef getSubFlow()
          Returns the SubFlowDef interface if this activity has subflow implementation otherwise returns null.
 java.util.Set<ToolDef> getTools()
          Returns (unordered) set of ToolDef interfaces.
 java.util.Set<TransitionRestrictionDef> getTransitionRestrictions()
          Gives the routing behavior if outgoing transitions or/and incoming transitions are defined.
 org.ow2.bonita.facade.uuid.ActivityDefinitionUUID getUUID()
          Returns the value of the package Id attribute defined into the xpdl file.
 boolean isNoImplementation()
          Activity can be defined either with Route or Implementation or BlockActivity element.
 boolean isRoute()
          Activity can be defined either with Route or Implementation or BlockActivity element.
 
Methods inherited from interface org.ow2.bonita.facade.def.majorElement.ProcessDefinitionRecord
getProcessDefinitionUUID
 
Methods inherited from interface org.ow2.bonita.facade.def.majorElement.DefinitionRecord
getName, getPackageDefinitionUUID
 

Method Detail

getUUID

org.ow2.bonita.facade.uuid.ActivityDefinitionUUID getUUID()
Returns the value of the package Id attribute defined into the xpdl file.

Returns:
The package processDefinitionUUID.

getActivityId

java.lang.String getActivityId()

getDescription

java.lang.String getDescription()
Short textual description of the activity.


getLimit

java.lang.String getLimit()
Expected duration for time management purposes (e.g. starting an escalation procedure etc.) inunits of DurationUnit. It is counted from the starting date/time of the Process. The consequences of reaching the limit value is depending on the engine.
This is not yet supported.


isRoute

boolean isRoute()
Activity can be defined either with Route or Implementation or BlockActivity element.

Returns:
true if the activity has been defined as a Route activity otherwise returns false.

isNoImplementation

boolean isNoImplementation()
Activity can be defined either with Route or Implementation or BlockActivity element. In case activity has been defined with an Implementation element, its child element could be either No or Tool or SubFlow element.

Returns:
true if the No element is defined within the Implementation element otherwise false.

getSubFlow

SubFlowDef getSubFlow()
Returns the SubFlowDef interface if this activity has subflow implementation otherwise returns null.


getTools

java.util.Set<ToolDef> getTools()
Returns (unordered) set of ToolDef interfaces. Returns an empty set if no tools implementations are defined.


getBlockId

java.lang.String getBlockId()
Not supported.


getPerformer

java.lang.String getPerformer()
Returns the performer of the activity. For an activity with startMode=Manual the performer element contains a defined participant processDefinitionUUID. For an activity with startMode=Automatic the performer element contains the generic participant SYSTEM.


getStartMode

ActivityDef.StartMode getStartMode()
If StartMode=Manual a task entity is created by the engine and stored in the task repository and is waiting to be take in account by an end user.
If StartMode=Automatic no task is created. the activity is automatically performed

Returns:
The StartMode enumeration value.

getFinishMode

ActivityDef.FinishMode getFinishMode()
Not supported.


getPriority

java.lang.String getPriority()
A value that describes the initial priority of this activity when it starts execution. If this attribute is not defined but a priority is defined in the Process definition then that is used.
By default it is assumed that the priority levels are the natural numbers starting with zero, and that the higher the value the higher the priority (i.e.: 0,...., n).
Not yet supported.


getDeadlines

java.util.Set<DeadlineDef> getDeadlines()
Deadlines are used to execute a specified java class upon the expiration of a specified period of time. returns (unordered) set of Deadlines. returns empty set if no deadline are defined within the activity.


getSimulationInformation

SimulationInformationDef getSimulationInformation()
Estimations for simulation of an Activity. No default. Not supported.


getIcon

java.lang.String getIcon()
Address (path- and filename) for an icon to represent the activity in a graphical modeller. May be used to override the modeller icon for an activity.


getDocumentation

java.lang.String getDocumentation()
The address (e.g. path- and filename) for a help file or a description file of the activity.


getTransitionRestrictions

java.util.Set<TransitionRestrictionDef> getTransitionRestrictions()
Gives the routing behavior if outgoing transitions or/and incoming transitions are defined. Two types of transition element exist: SPLIT and JOIN.

Returns:
The (unordered) set of TransitionRestrictionDef interfaces.

getDataFields

java.util.Set<DataFieldDef> getDataFields()
Bonita engine allows to specify datafields for activities. As xpdl v1 does not allow this definition, extended attributes are specified for this purpose.

Returns:
The (unordered) set of DataFieldDef interfaces.

getHooks

java.util.Set<HookDef> getHooks()
Hooks are user defined logic that can be triggered at some points of the life of the activity.
Those points are:
If the activity has startMode=Manual then these points of the life of the activity is synchronized with ones of the task.

Returns:
The (unordered) set of HookDef interfaces.

getPerformerAssign

PerformerAssignDef getPerformerAssign()
Performer assignment allows to perform various assignment rules within the task module.
All the users defined into the role type can see and execute this one. By adding this functionality, we can:

Returns:
The PerformerAssignDef interface.

getIterations

java.util.Set<ActivityDef.IterationDef> getIterations()