Class WfActivity

java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.enterprise._Simple
wt.enterprise.Simple
wt.workflow.engine._WfExecutionObject
wt.workflow.engine.WfExecutionObject
wt.workflow.engine._WfActivity
wt.workflow.engine.WfActivity
All Implemented Interfaces:
Externalizable, Serializable, wt.access._AccessControlled, wt.access._PolicyAccessControlled, wt.access._SecurityLabeled, AccessControlled, wt.access.PolicyAccessControlled, SecurityLabeled, wt.admin._DomainAdministered, DomainAdministered, wt.fc._NetFactor, wt.fc._ObjectMappable, wt.fc._Persistable, wt.fc.adminlock._AdministrativelyLockable, AdministrativelyLockable, wt.fc.BusinessInformation, NetFactor, ObjectMappable, Persistable, DisplayIdentification, wt.inf.container._WTContained, WTContained, wt.notify._Notifiable, Notifiable, wt.recent.RecentlyVisited, wt.workflow.engine._WfNode, WfNode
Direct Known Subclasses:
_Milestone, _ProjectProxy, wt.workflow.work._WfAssignedActivity, wt.workflow.robots._WfRobotActivity

@GenAsPersistable(superClass=WfExecutionObject.class,interfaces=WfNode.class,versions=-7862258174138194826L,properties={@GeneratedProperty(name="routerType",type=wt.workflow.engine.WfRouterType.class,javaDoc="This attribute tells whether the router is a conditional router, a manual router or none.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=40)),@GeneratedProperty(name="userEventList",type=wt.workflow.definer.UserEventVector.class,javaDoc="List of the user defined events. This is copied from the activity template object. Can\'t be edited.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=4000)),@GeneratedProperty(name="inputVariableMap",type=wt.workflow.definer.WfVariableMap.class,javaDoc="Input map from process to activity variables. This is copied from the link that joins the activity template object to its parent template. Can\'t be edited.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=4000)),@GeneratedProperty(name="outputVariableMap",type=wt.workflow.definer.WfVariableMap.class,javaDoc="Output map from activity to process variables. This is copied from the link that joins the activity template object to its parent template. Can\'t be edited.",accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=4000)),@GeneratedProperty(name="tripCount",type=int.class,initialValue="0")}) public abstract class WfActivity extends wt.workflow.engine._WfActivity
WfActivity represents a request for work in the context of the containing WfProcess. There can be many active WfActivity objects within a WfProcess at a given point in time. The lifetime of the activity is limited by that of its containing process.

The context of an activity is set by the containing process before the activity is activated depending on the variable map that relates local activity variables with global (process) variables.

A given variable may be used in many ways, as follows:

  • as input to the process, in which case it should occur in the inputPropertyMap,
  • as output, in which case it should occur in the outputPropertyMap,
  • as input and output, in which case it should occur in both the inputPropertyMap and outputPropertyMap, and,
  • exclusively locally, in which case it should occur in neither the inputPropertyMap nor outputPropertyMap
.

An activity may or not contain routing functionality. This is indicated by the router type of the activity that can be NONE (no routing functionality), CONDITIONAL (conditional or automatic routing) and MANUAL (manual routing). If an activity has routing functionality, then after it completes, a routing event is generated either by evaluating a "routing expression" or by getting input from the user about the routing event. The event information is used by outgoing links to for transfer of control decisions.

Supported API: true

Extendable: false

See Also:
  • Method Details

    • getParentProcess

      public WfProcess getParentProcess() throws WTException
      If the activity is contained in a process, this is returned; otherwise returns the innermost process that contains the block that is the activity's parent container.

      Supported API: true
      Returns:
      WfProcess
      Throws:
      WTException