Interface IDfActivity
- All Superinterfaces:
IDfPersistentObject
,IDfSysObject
,IDfTypedObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Flag bit used to indicate that this package can be empty at the end of this activity.static final int
Flag bit used to indicate that this package is visible to this activity.static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.documentum.fc.client.IDfPersistentObject
CURRENCY_CHECK_ALWAYS, CURRENCY_CHECK_FIRST_ACCESS, CURRENCY_CHECK_NEVER, CURRENCY_CHECK_ONCE_PER_SCOPE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConditionRouteCase
(String routeCaseIdentifier, IDfList conditions, IDfList outputPorts) Adds a route case to the activity.void
addPackageInfo
(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation) Adds a package definition to a port in the activity.void
addPackageInfoEx
(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation, int packageFlag) Adds a package definition to a port in the activity.void
addPackageInfoEx
(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation, int packageFlag, int packageReportFlag) Adds a package definition to a port in the activity.void
addPerformerCondition
(String conditionName, String condition, IDfList performers) Adds a performer case to the activity.void
Adds a port to the activity.void
addPostTimerAction
(IDfId action, int minutes) Establishes a timer at the end of the series.void
addPreTimerAction
(IDfId action, int minutes) Establishes a timer at the end of the series.void
addRouteCase
(String routeCaseIdentifier, String condition, IDfList outputPorts) Adds a route case to the activity.int
Returns the number of routing conditions in the activity.Returns the object ID of the repository object that stores the route case conditions.getConditionName
(int index) Returns the name of a route case.getConditionPort
(int index) Returns the output ports associated with a specified route case.getConditions
(String routeCaseIdentifier) Returns the list (or list of lists) of transition condition definitions for the named route case.int
Returns the control flag attribute of the activity.Returns the state of the activity definition.int
Returns information about how the activity's runtime instance handles execution failure.Returns the object ID of the method object that executes the activity's actions.int
Returns the retry interval if the method execution fails for the activityint
Returns the maximum retry number if the method execution fails for the activityint
Returns the exec_subtype attribute of the activity.int
Returns the time-out period, in seconds, for the method that executes the activity's actions.int
Returns the execution type of the activity.int
Returns the number of packages associated with the activity.int
getPackageFlag
(int index) Returns the flag of a specified package.getPackageId
(int index) Returns the object ID of a specified package.getPackageLabel
(int index) Returns the version label associated with the package.getPackageName
(int index) Returns the name of a specified package.getPackageOperation
(int index) Returns information about the operation to be performed on a specified package.int
getPackageReportFlag
(int index) Returns the report flag of a specified package.Returns a query result collection containing the following attributes:getPackageType
(int index) Returns the type of a specified package.int
getPerfCondIndex
(String condName) Returns the index position of the corresponding condition in the expression object for the given performer condition.getPerformerCondition
(String condtionName) For the given condition name, return the corresponding performer condition.int
Returns the number of performer conditions in the activity.Returns the object ID of the repository object that stores the performer conditions.getPerformerConditionName
(int index) Returns the name of a performer condition.Return a String list that contains the name of the performer conditions.getPerformerConditionUser
(int index) Returns the user associated with a specified performer condition.int
Indicates whether the activity's performer can delegate or extend the activity.Returns the name of the user or group intended to perform the activity.int
Returns the number of values the performer name attribute has.getPerformers
(String conditionName) For the given condition name, return a String list of performers used for this condition.int
Returns the kind of user who can perform the activity.int
Returns the number of ports in the activity.getPortName
(int index) Returns the name of a specified port.getPortType
(int index) Returns the type of a specified port.int
Returns the post-timer value defined for the activity.getPostTimerAction
(int index) Returns the ID of a timer action object at the given index within a timer series.int
Returns the number of timer actions within the series.int
getPostTimerIncrement
(int index) Returns the interval in minutes that must pass before the timer is fired.int
Returns the pre-timer value for the activity.getPreTimerAction
(int index) Returns the ID of a timer action object at the given index within a timer series.int
Returns the number of timer actions within the series.int
getPreTimerIncrement
(int index) Returns the interval in minutes that must pass before the timer is fired.getRepeatingPerformerName
(int index) Returns the performer name attribute at the specified index.Returns the package name used to resolve performer aliasing.int
Returns the performer aliasing resolve type of the activity.getRouteCaseCondition
(String RouteCaseIdentifier) Returns the route case condition of the given route case identifier.Returns a String list that contains the name of the route case identifiers.getRouteCasePorts
(String RouteCaseIdentifier) Returns a String list that contains the output ports of the given route case identifier.boolean
Indicates whether the activity requires a sign off.Returns a subject for the task inbox item, the subject will be constructed at the creation time of the inbox itemint
Returns the number of completed tasks that are required to trigger the next activities.int
Returns when and how to trigger the selected outgoing paths when activity is manual transitionint
Returns the maximum number of output ports user can select at runtime when activity is manual transitionint
Returns the type of transition defined for the activity.Returns the expected event type that can trigger the activity.int
Returns the number of input ports in the activity that must be triggered to start the activity.boolean
Indicates whether or not this activity supports compatibility (pre-5.3) route cases.void
install()
Installs a validated activity.void
Moves a validated activity to the draft state.boolean
Indicates whether the results of the activity's actions are saved to a document.boolean
Indicates if the final timer in the series should repeat.boolean
Indicates if the final timer in the series should repeat.boolean
Indicates whether the activity is a public or private activity.boolean
Indicates whether the activity can be invoked multiple times when the workflow is running.Factory method for attribute value transition conditions.Factory method for XPath transition conditions.void
removePackageInfo
(String portName, String packageName) Removes a package definition from the activity.void
removePerformerCondition
(String conditionName) Removes a route case from the activity.void
removePort
(String portName) Removes a port from the activity.void
Removes all pre-timers from this activity.void
Removes all pre-timers from this activity.void
removeRouteCase
(String routeCaseIdentifier) Removes a route case from the activity.void
setControlFlag
(int flag) Sets the control flag attribute of the activity.void
setExecErrHandling
(int execErrHandling) Sets the failure-handling protocol for the activity's execution.void
setExecMethodId
(IDfId execMethodId) Identifies the method that executes the activity's actions.void
setExecRetryInterval
(int execRetryInterval) Sets the retry interval if the activity's execution fails.void
setExecRetryMax
(int execRetryMax) Sets the maximum retry number if the activity's execution fails.void
setExecSaveResults
(boolean execSaveResults) Defines whether to save the results of an automatic activity execution.void
setExecSubtype
(int subType) Defines the activity's exec_subtype.void
setExecTimeOut
(int execTimeOut) Sets the time-out period for the method that executes the activity's actions.void
setExecType
(int execType) Defines the activity's execution type as manual or automatic.void
setPerformerFlag
(int performerFlag) Defines whether the activity's performer can delegate or extend the activity.void
setPerformerName
(String performerName) Defines the user or group you want to perform the activity.void
setPerformerType
(int performerType) Defines who can perform the activity.void
setPostTimer
(int postTimer) Defines the expected maximum number of hours to complete the activity.void
setPostTimerRepeatLastAction
(boolean repeatLast) Sets an indicator for whether or not the final timer in a series should repeat.void
setPreTimer
(int preTimer) Sets the pre-timer interval for the activity.void
setPreTimerRepeatLastAction
(boolean repeatLast) Sets an indicator for whether or not the final timer in a series should repeat.void
setPrivate
(boolean isPrivate) Defines the activity as public or private.void
setRepeatableInvoke
(boolean repeatableInvoke) Defines whether the activity can be invoked multiple times when the workflow is running.void
setRepeatingPerformerName
(int index, String name) Sets the performer name attribute at a specified index.void
setResolvePackageName
(String resolvePkgName) Sets the package name used to resolve performer aliasing.void
setResolveType
(int resolveType) Sets the performer aliasing resolve type of the activity.void
setSignoffRequired
(boolean signoffRequired) Defines whether the activity requires a sign off.void
setTaskSubject
(String name) Set a subject for the task inbox item, the subject will be constructed at the creation time of the inbox itemvoid
setTransitionEvalCount
(int count) Set the number of completed tasks that are required to trigger the next activities.void
setTransitionFlag
(int flag) Together with the transition eval count, set when and how to trigger the selected outgoing paths when activity is manual transitionvoid
setTransitionMaxOutputCount
(int count) Set the maximum number of output ports user can select at runtime when activity is manual transitionvoid
setTransitionType
(int transitionType) Defines the transition type for the activity.void
setTriggerEvent
(String triggerEvent) Sets the event type that is expected to trigger the activity.void
setTriggerThreshold
(int triggerThreshold) Defines the trigger threshold for the activity.void
Uninstalls an activity.void
validate()
Validates the package definitions associated with the activity.Methods inherited from interface com.documentum.fc.client.IDfPersistentObject
addChildRelative, addParentRelative, apiExec, apiGet, apiSet, destroy, fetch, fetchWithCaching, getAttrAssistance, getAttrAssistanceWithValues, getAttrAsstDependencies, getChildRelatives, getParentRelatives, getPartition, getType, getValidator, getVStamp, getWidgetType, isDeleted, isDirty, isInstanceOf, isNew, isReplica, lock, lockEx, registerEvent, removeChildRelative, removeParentRelative, revert, save, setPartition, signoff, unRegisterEvent, unRegisterEventEx, validateAllRules, validateAttrRules, validateAttrRulesWithValue, validateAttrRulesWithValues, validateObjRules, validateObjRulesWithValues
Methods inherited from interface com.documentum.fc.client.IDfSysObject
addDigitalSignature, addESignature, addNote, addReference, addRendition, addRenditionEx, addRenditionEx2, addRenditionEx3, appendContent, appendContentEx, appendFile, appendFileEx, appendPart, areAttributesModifiable, assemble, asVirtualDocument, attachPolicy, bindFile, branch, cancelCheckout, cancelCheckoutEx, cancelScheduledDemote, cancelScheduledPromote, cancelScheduledResume, cancelScheduledSuspend, canDemote, canPromote, canResume, canSuspend, checkin, checkinEx, checkout, checkoutEx, demote, destroyAllVersions, detachPolicy, disassemble, freeze, getAccessDate, getAccessorApplicationPermit, getAccessorCount, getAccessorName, getAccessorPermit, getAccessorPermitType, getAccessorXPermit, getAccessorXPermitNames, getACL, getACLDomain, getACLName, getAclRefValid, getAcsRequests, getAliasSet, getAliasSetId, getAntecedentId, getApplicationType, getAssembledFromId, getAuthors, getAuthorsCount, getBranchCount, getCabinetId, getChronicleId, getCollectionForContent, getCollectionForContentEx2, getCollectionForContentEx3, getCollectionForContentEx4, getComponentId, getComponentIdCount, getCompoundArchitecture, getContainId, getContainIdCount, getContent, getContentAvailability, getContentEx, getContentEx2, getContentEx3, getContentsId, getContentSize, getContentSize, getContentState, getContentStateCount, getContentType, getCreationDate, getCreatorName, getCurrentState, getCurrentStateName, getDirectDescendant, getDoubleContentAttr, getExceptionStateName, getFile, getFileEx, getFileEx2, getFolderId, getFolderIdCount, getFormat, getFrozenAssemblyCount, getFullText, getGroupName, getGroupPermit, getHasEvents, getHasFolder, getHasFrozenAssembly, getImplicitVersionLabel, getKeywords, getKeywordsCount, getLatestFlag, getLinkCount, getLinkHighCount, getLocations, getLockDate, getLockMachine, getLockOwner, getLogEntry, getMasterDocbase, getModifier, getModifyDate, getNextStateName, getObjectName, getOtherFileSize, getOwnerName, getOwnerPermit, getPageCount, getPath, getPathEx, getPathEx2, getPermissions, getPermit, getPermitEx, getPolicyId, getPolicyName, getPreviousStateName, getReferenceCount, getRemoteId, getRenditions, getResolutionLabel, getResumeState, getResumeStateName, getRetainerCount, getRetainerId, getRetainUntilDate, getRetentionDate, getRouters, getSpecialApp, getStatus, getStorageType, getStringContentAttr, getSubject, getTimeContentAttr, getTitle, getTypeName, getVdmPath, getVdmPathDQL, getVersionLabel, getVersionLabelCount, getVersionLabels, getVersionPolicy, getVersions, getWorkflows, getWorldPermit, getXPermit, getXPermitList, getXPermitNames, grant, grantPermit, hasPermission, insertContent, insertContentEx, insertFile, insertFileEx, insertPart, isArchived, isCheckedOut, isCheckedOutBy, isContentTransferCapabilityEnabled, isFrozen, isHidden, isImmutable, isLinkResolved, isPublic, isReference, isSuspended, isVirtualDocument, link, mark, mount, print, promote, prune, queue, refreshReference, removeContent, removeNote, removePart, removeRendition, removeRenditionEx, removeRenditionEx2, resolveAlias, resume, revertACL, revoke, revokePermit, saveAsNew, saveLock, scheduleDemote, schedulePromote, scheduleResume, scheduleSuspend, setACL, setACLDomain, setACLName, setApplicationType, setArchived, setAuthors, setCompoundArchitecture, setContent, setContentEx, setContentEx2, setContentType, setDoubleContentAttribute, setFile, setFileEx, setFullText, setGroupName, setGroupPermit, setHidden, setIsVirtualDocument, setKeywords, setLinkResolved, setLogEntry, setObjectName, setOwnerName, setOwnerPermit, setPath, setResolutionLabel, setSpecialApp, setStatus, setStorageType, setStringContentAttribute, setSubject, setTimeContentAttribute, setTitle, setWorldPermit, suspend, unfreeze, unlink, unmark, updatePart, updatePartEx, useACL, verifyESignature
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Field Details
-
EXEC_SUBTYPE_DEFAULT
static final int EXEC_SUBTYPE_DEFAULT- See Also:
-
EXEC_SUBTYPE_INBOUND
static final int EXEC_SUBTYPE_INBOUND- See Also:
-
EXEC_SUBTYPE_INBOUND_INITIATE
static final int EXEC_SUBTYPE_INBOUND_INITIATE- See Also:
-
EXEC_SUBTYPE_MANUAL_INITIATE
static final int EXEC_SUBTYPE_MANUAL_INITIATE- See Also:
-
PORT_TYPE_INPUT
- See Also:
-
PORT_TYPE_OUTPUT
- See Also:
-
PORT_TYPE_REVERT
- See Also:
-
PORT_TYPE_EXCEPTION
- See Also:
-
USE_CONDITION_PERFORMER
- See Also:
-
PACKAGE_IS_VISIBLE
static final int PACKAGE_IS_VISIBLEFlag bit used to indicate that this package is visible to this activity.- See Also:
-
PACKAGE_CAN_BE_EMPTY
static final int PACKAGE_CAN_BE_EMPTYFlag bit used to indicate that this package can be empty at the end of this activity.- See Also:
-
-
Method Details
-
validate
Validates the package definitions associated with the activity. Callingvalidate
requires Relate permission on the activity or Sysadmin or Superuser privileges. If the method is successful, it sets the activity's state to validated.- Throws:
DfException
- if the server returns an error
-
invalidate
Moves a validated activity to the draft state. Callingvalidate
requires Relate permission on the activity or Sysadmin or Superuser privileges.- Throws:
DfException
- if the server returns an error
-
install
Installs a validated activity. Callinginstall
requires Relate permission on the activity or Sysadmin or Superuser privileges. If the method is successful, it sets the activity's state to installed.- Throws:
DfException
- if the server returns an error
-
uninstall
Uninstalls an activity.uninstall
moves an installed activity back to the validated state. Any running workflows that reference the activity are halted. Any installed process definitions that include the activity are set to the uninstalled state. Callinguninstall
requires Relate permission on the activity or Sysadmin or Superuser privileges.- Throws:
DfException
- if the server returns an error
-
addPort
Adds a port to the activity. Ports are the means by which a package moves from one activity to another in a workflow. Each port in an activity must have a unique name. The activity must be in the draft or validated state to add a port. If the activity is in the validated state, adding a port sets the activity back to the draft state. After you add a port, useaddPackageInfo(java.lang.String, java.lang.String, java.lang.String, com.documentum.fc.common.IDfId, java.lang.String, java.lang.String)
oraddPackageInfoEx(java.lang.String, java.lang.String, java.lang.String, com.documentum.fc.common.IDfId, java.lang.String, java.lang.String, int)
to add a package definition to the port. For more information about workflows and defining activities, refer to Server Fundamentals.- Parameters:
portName
- a name for the new port. The name must be unique among the port names in the activity.portType
- defines what kind of port this is. Valid values are: INPUT, OUTPUT, and REVERT.- Throws:
DfException
- if the server returns an error
-
removePort
Removes a port from the activity. Ports are the means by which a package moves from one activity to another in a workflow. Each port in an activity has a unique name. The activity must be in the draft or validated state to remove a port. If the activity is in the validated state, removing a port sets the activity back to the draft state. For more information about workflows and activities, refer to Server Fundamentals.- Parameters:
portName
- the name of the port you want to remove.- Throws:
DfException
- if the server returns an error
-
addPackageInfo
void addPackageInfo(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation) throws DfException Adds a package definition to a port in the activity. A package definition represents an object that the activity handles. The activity must be in the draft or validated state to add a package definition to one of its ports. If the activity is in the validated state, adding a package definition sets the activity back to the draft state. The port identified inportName
must exist in the activity. The package definition must be compatible with the definition of the package defined for the port to which the port specified inportName
is linked. For example, ifportName
represents an output port, the definition must be compatible with the input port to whichportName
is linked. Refer to Content Server Fundamentals for details about package compatability. This method sets the r_package_flag attribute to 1, meaning the package is visible and cannot be empty. If you want to set the behavior controlled by this attribute differently, useaddPackageInfoEx(java.lang.String, java.lang.String, java.lang.String, com.documentum.fc.common.IDfId, java.lang.String, java.lang.String, int)
. For more information about packages and activities, refer to Server Fundamentals.- Parameters:
portName
- name of the port to which you are adding the packagepackageName
- name of the package. This must be unique among the packages defined in the activity.packageType
- the object type of the packagepackageId
- an IDfID object that contains the package's object ID. If you don't provide a version label in thepackageLabel
parameter, the object identified by the object ID is bound to the port. If you include thepackageLabel
parameter, the method searches the version tree to which the object belongs and binds the version with the specified label to the port.packageLabel
- the version label of the package. This is an optional argument. If you include this argument, the method binds the specified version of the package to the port. If you don't include this argument, the version identified bypackageId
is bound to the port.packageOperation
- identifies the application that will be used to perform the actions associated with the activity. This argument is intended primarily for automatic activities.- Throws:
DfException
- if the server returns an error
-
removePackageInfo
Removes a package definition from the activity. A package definition represents an object that the activity handles. The activity must be in the draft or validated state to remove a package definition. If the activity is in the validated state, removing a package definition sets the activity back to the draft state. For more information about packages and activities, refer to Server Fundamentals.- Parameters:
portName
- the name of the port with which the package is associatedpackageName
- the name of the package- Throws:
DfException
- if the server returns an error
-
addRouteCase
void addRouteCase(String routeCaseIdentifier, String condition, IDfList outputPorts) throws DfException Adds a route case to the activity. A route case identifies a boolean condition and the output ports associated with that condition. Route cases support activities that have a transition type defined as automatic. When the activity is completed, the conditional logic in the route cases is evaluated and a set of output ports selected as a result. The activity must be in the draft or validated state to add a route case. If the activity is in the validated state, adding a route case sets the activity back to the draft state. You can use the tokens dm_workflow, dmi_workitem, or dmi_package in the condition to refer to the workflow, work item, or package object. For example:String condition = "dm_workflow.object_name='test'"; act.addRouteCase("routecase1",condition,null);
If you reference dmi_workitem, Content Server interprets that to mean the work item referenced in the r_last_witem attribute of the workflow. If you reference dmi_package, Content Server uses the first component in the package to resolve the condition. Additionally, when you use dmi_package, the condition can only reference an attribute defined for the object type specified in the package definition. For example, if the package definition specifies dm_sysobject, but the package component is "my_sysObj_subtype", the condition must reference an attribute defined for dm_sysobject. It cannot reference an attribute defined for "my_sysobj_subtype".
For more information about route cases, refer to Server Fundamentals.- Parameters:
routeCaseIdentifier
- the name of the route case or the keywordexception
to identify an exception route case.condition
- the boolean condition for the route case. Specify this asnull
if therouteCaseIdentifier
isexception
if you want to change the output port list for the existing route case condition.outputPorts
- an IDfList interface that contains the names of the selected output ports. These are the ports that will be selected if thecondition
evaluates totrue
. This can benull
if you only want to change the condition associated with the route case.- Throws:
DfException
- if the server returns an error
-
removeRouteCase
Removes a route case from the activity. A route case identifies a Boolean condition and the output ports associated with that condition. Route cases support activities that have a transition type defined as automatic. When the activity is completed, the conditional logic in the route cases is evaluated and a set of output ports selected as a result. The activity must be in the draft or validated state to remove a route case. If the activity is in the validated state, removing a route case sets the activity back to the draft state. For more information about route cases, refer to Server Fundamentals.- Parameters:
routeCaseIdentifier
- the name of the route case. Use the keyword EXCEPTIONAL to remove the exception route case.- Throws:
DfException
- if the server returns an error
-
getRouteCaseIdentifiers
Returns a String list that contains the name of the route case identifiers. If there is no route case condition setup, returns an empty list.- Returns:
- a String list that contains the name of the route case identifiers.
- Throws:
DfException
-
getRouteCaseCondition
Returns the route case condition of the given route case identifier.- Parameters:
RouteCaseIdentifier
- the name of the route case or the keywordEXCEPTIONAL
to identify an exception route case.- Returns:
- the route case condition
- Throws:
DfException
-
getRouteCasePorts
Returns a String list that contains the output ports of the given route case identifier.- Parameters:
RouteCaseIdentifier
- the name of the route case or the keywordEXCEPTIONAL
to identify an exception route case.- Returns:
- a String list
- Throws:
DfException
-
isPrivate
Indicates whether the activity is a public or private activity. A public activity definition is intended for use in workflow definitions (a dm_process object) written by any user. A private definition is intended for use only by the person who created the activity definition. This property is informational only. The server does not enforce the privacy constraint.- Returns:
true
if the activity is private;false
if the activity if public- Throws:
DfException
- if the server returns an error
-
setPrivate
Defines the activity as public or private. A public activity definition is intended for use in workflow definitions (a dm_process object) written by any user. A private definition is intended for use only by the person who created the activity definition. This property is informational only. The server does not enforce the privacy constraint. The default is private if you do not explicity set the activity to public.- Parameters:
isPrivate
- set this totrue
to define the activity as private orfalse
to define the activity as public.- Throws:
DfException
- if the server returns an error
-
getDefinitionState
Returns the state of the activity definition. An activity has one of three states: draft, validated, and installed. All activities in a workflow definition must be installed before a user can start an instance of the workflow.- Returns:
- returns draft, validated, or installed
- Throws:
DfException
- if the server returns an error
-
getTriggerThreshold
Returns the number of input ports in the activity that must be triggered to start the activity. An activity can have one or more input ports. In some cases, a workflow design requires multiple input ports in an activity to receive their packages before the activity can start. The trigger threshold is the minimum number of input ports that must receive their packages to start the activity. For more information about activities and the trigger threshold, refer to Server Fundamentals.- Returns:
- The minimum number of input ports that must be triggered to start the activity.
- Throws:
DfException
- if the server returns an error
-
setTriggerThreshold
Defines the trigger threshold for the activity. An activity can have one or more input ports. In some cases, a workflow design requires multiple input ports in an activity to receive their packages before the activity can start. The trigger threshold is the minimum number of input ports that must receive their packages to start the activity. For more information about activities and the trigger threshold, refer to Server Fundamentals.- Parameters:
triggerThreshold
- an integer number from 0 to the total number of input ports in the activity. 0 is only valid for begin-type activities.- Throws:
DfException
- if the server returns an error
-
getTriggerEvent
Returns the expected event type that can trigger the activity. An activity can be started by a specified event. One triggering event can be defined for an activity (seesetTriggerEvent(java.lang.String)
). If an activity has both a trigger event and a trigger threshold defined, both most be met to start the activity. For more information about triggering thresholds and events, refer to Server Fundamentals.- Returns:
- The name of the triggering event
- Throws:
DfException
- if the server returns an error
-
setTriggerEvent
Sets the event type that is expected to trigger the activity. An activity can be started by a specified event. One triggering event can be defined for an activity. If an activity has both a trigger event and a trigger threshold defined, both most be met to start the activity. For more information about triggering thresholds and events, refer to Server Fundamentals.- Parameters:
triggerEvent
- an event name, in the format dm_eventname; for example, dm_signoff or dm_lock.- Throws:
DfException
- if the server returns an error
-
getPreTimer
Returns the pre-timer value for the activity. A pre-timer value defines the maximum expected time interval between the start of the workflow and the start of the activity. If the interval is exceeded, a message is sent to the workflow's supervisor. The interval is expressed in hours.- Returns:
- The number of hours defined in the pre-timer interval. A value of 0 means the timer is not in use.
- Throws:
DfException
- if a server error occurs
-
setPreTimer
Sets the pre-timer interval for the activity. A pre-timer value defines the maximum expected time interval between the start of the workflow and the start of the activity. If the interval is exceeded, a message is sent to the workflow's supervisor. The interval is expressed in hours.- Parameters:
preTimer
- an integer value representing the maximum number of expected hours between the start of the workflow and the start of the activity. Setting this to 0 means that the timer is not in use.- Throws:
DfException
- if a server error occurs
-
getPostTimer
Returns the post-timer value defined for the activity. The post-timer value defines the expected maximum number of hours to complete the activity. The timer is started when the activity starts. If the activity is not completed within the number of hours defined in the post-timer, a message is sent to the workflow's supervisor.- Returns:
- The number of hours defined in the post-timer. A value of 0 means the timer is not in use.
- Throws:
DfException
- if the server returns an error
-
setPostTimer
Defines the expected maximum number of hours to complete the activity. The post-timer value defines the expected maximum number of hours to complete the activity. The timer is started when the activity starts. If the activity is not completed within the number of hours defined in the post-timer, a message is sent to the workflow's supervisor.- Parameters:
postTimer
- an integer reprenting the expected maximum number of hours to complete the activity. Setting this to 0 means that the timer is not in use.- Throws:
DfException
- if the server returns an error
-
isRepeatableInvoke
Indicates whether the activity can be invoked multiple times when the workflow is running.- Returns:
true
if the activity can be invoked multiple times;false
if the activity can be invoked only once- Throws:
DfException
- if the server returns an error
-
setRepeatableInvoke
Defines whether the activity can be invoked multiple times when the workflow is running.- Parameters:
repeatableInvoke
- set this totrue
if the activity can be invoked multiple times, or tofalse
if the activity can be invoked only once.- Throws:
DfException
- if the server returns an error
-
getExecType
Returns the execution type of the activity. An activity's execution type is either manual or automatic. Manual activities are performed by people. Automatic activities are performed by procedures or applications invoked by dm_method objects. For more information about the execution type, refer to Server Fundamentals.- Returns:
- 0, indicating manual execution, or 1, indicating automatic execution
- Throws:
DfException
- if the server returns an error
-
setExecType
Defines the activity's execution type as manual or automatic. Each activity has some associated actions. These actions can be manually performed, by a person, or automatically performed, using a dm_method object. For more information about manual and automatic execution, refer to Server Fundamentals.- Parameters:
execType
- 0, to define the activity execution as manual; 1, to define the execution as automatic.- Throws:
DfException
- if the server returns an error
-
getExecMethodId
Returns the object ID of the method object that executes the activity's actions. Each activity has some associated actions. These actions can be manually performed, by a user, or automatically performed, using a dm_method object. This method is valid only for automatic activities. To determine if an activity is automatic or manual, usegetExecType()
. For more information about manual and automatic execution, refer to Server Fundamentals.- Returns:
- An IDfId interface to the method's object ID
- Throws:
DfException
- if the server returns an error
-
setExecMethodId
Identifies the method that executes the activity's actions. If the activity's execution type is defined as automatic, you must specify the method that executes the activity's actions. For more information about automatic execution, refer to Server Fundamentals.- Parameters:
execMethodId
- an IDfId interface to the method's object ID- Throws:
DfException
- if the server returns an error
-
isExecSaveResults
Indicates whether the results of the activity's actions are saved to a document. This method is useful only for automatic activities (activities whose actions are performed by invoking a method). For automatic activities, you can choose to save the results generated by the actions to a document. To retrieve the object ID of the document that contains the results, useIDfWorkitem.getExecResultId()
.- Returns:
true
if the results are saved to a document;false
if the results are not saved- Throws:
DfException
- if the server returns an error
-
setExecSaveResults
Defines whether to save the results of an automatic activity execution. If the activity's execution is defined as automatic, you can choose to save the results of the execution in a document.- Parameters:
execSaveResults
- set this totrue
if you want to save the results of an automatic activity or tofalse
if you don't want to save the results.- Throws:
DfException
- if the server returns an error- See Also:
-
getExecTimeOut
Returns the time-out period, in seconds, for the method that executes the activity's actions. This method is only useful for automatic activities. The time-out value defined in the activity is used on the command line when the method is executed and overrides any time-out period defined in the method itself. For more information about about time-out periods for methods, refer to the Server Administrator's Guide.- Returns:
- The number of seconds in the time-out period
- Throws:
DfException
- if the server returns an error
-
setExecTimeOut
Sets the time-out period for the method that executes the activity's actions. This method is only useful for automatic activities. The time-out value defined in the activity is used on the command line when the method is executed and overrides any time-out period defined in the method itself. For more information about time-out periods for methods, refer to the Server Administrator's Guide.- Parameters:
execTimeOut
- the number of seconds in the time-out period- Throws:
DfException
- if the server returns an error
-
getExecErrHandling
Returns information about how the activity's runtime instance handles execution failure. For more information about activity execution, refer to Server Fundamentals.- Returns:
- 0, meaning the execution failed and stopped; or 1, meaning the execution is marked as failed but proceeds; or 2, meaning the execution failed and the workflow was terminated.
- Throws:
DfException
- if the server returns an error
-
setExecErrHandling
Sets the failure-handling protocol for the activity's execution. For more information about activity execution, refer to Server Fundamentals.- Parameters:
execErrHandling
- set this to 0 to stop the execution if failure occurs or to 1 to proceed even if failure occurs- Throws:
DfException
- if the server returns an error
-
getExecRetryMax
Returns the maximum retry number if the method execution fails for the activity For more information about activity execution, refer to Server Fundamentals.- Returns:
- The maximum retry number0 if the execution failed.
- Throws:
DfException
- if the server returns an error
-
setExecRetryMax
Sets the maximum retry number if the activity's execution fails. For more information about activity execution, refer to Server Fundamentals.- Parameters:
execRetryMax
- set this to 0 if want no retry if execution fails.- Throws:
DfException
- if the server returns an error
-
getExecRetryInterval
Returns the retry interval if the method execution fails for the activity For more information about activity execution, refer to Server Fundamentals.- Returns:
- The retry interval if the execution failed.
- Throws:
DfException
- if the server returns an error
-
setExecRetryInterval
Sets the retry interval if the activity's execution fails. For more information about activity execution, refer to Server Fundamentals.- Parameters:
execRetryInterval
- set this to 0 if want to retry immediately if execution fails.- Throws:
DfException
- if the server returns an error
-
getExecSubtype
Returns the exec_subtype attribute of the activity. An activity's exec_type is either 0 (outbound) or 1 (inbound). For more information about the execution type, refer to Server Fundamentals.- Returns:
- IDfActivity.EXEC_SUBTYPE_OUTBOUND indicating outbound activity; or IDfActivity.EXEC_SUBTYPE_INBOUND, indicating inbound activity.
- Throws:
DfException
- if the server returns an error
-
setExecSubtype
Defines the activity's exec_subtype. For more information about regular and fault-handling activity, refer to Server Fundamentals.- Parameters:
subType
- 0, to define the activity as outbound activity; 1, to define the activity as inbound activity.- Throws:
DfException
- if the server returns an error
-
getPerformerType
Returns the kind of user who can perform the activity.- Returns:
- An integer value that corresponds to the user who
can perform the activity. Valid values and their correspondences are:
Value Meaning 0 Workflow supervisor 1 Repository owner 2 Last performer of previous activity 3 A user 4 All members in a group 5 Any user in a group 6 Member of a group who has the least workload 7 One member of a group, selected in round-robin approach
- Throws:
DfException
- if the server returns an error
-
setPerformerType
Defines who can perform the activity. The possible performers of an activity depend on whether the activity is manual or automatic. For a complete explanation of manual and automatic activities and their performers, refer to Server Fundamentals.- Parameters:
performerType
- set this to the integer value that corresponds to who can perform the activity. For manual activities, valid values and their correspondences are:Value Meaning 0 Workflow supervisor 1 Repository owner 2 Last performer of previous activity 3 A user 4 All members in a group 5 Any user in a group 6 Member of a group who has the least workload 7 One member of a group, selected in round-robin approach
For choices 4-7, the group name must be specified in performer_name.
For automatic activities, valid values and their correspondences are:Value Meaning 0 Workflow supervisor 1 Repository owner 2 Last performer of previous activity 3 A user
You must have Superuser privileges to assign values 1-3 for automatic activities.- Throws:
DfException
- if the server returns an error- See Also:
-
getPerformerName
Returns the name of the user or group intended to perform the activity. For more information about activity performers, refer to Server Fundamentals.- Returns:
- The name of the user or group intended to perform the activity.
- Throws:
DfException
- if the server returns an error
-
setPerformerName
Defines the user or group you want to perform the activity. This setting, in conjunction with the performer type, determines who can perform the activity. The performer type is set usingsetPerformerType(int)
. For information about the relationship of the performer type and performer name, refer to Server Fundamentals.- Parameters:
performerName
- the name of the user or group that you want to perform the activity.- Throws:
DfException
- if the server returns an error
-
getPerformerFlag
Indicates whether the activity's performer can delegate or extend the activity. Delegation allows the activity performer to delegate the generated workitem to another user. Extension allows the activity's performer to add additional performers at run time. For more information about delegation and extension, refer to Server Fundamentals.- Returns:
- An integer value that indicates whether delegation, extension,
or some combination of these is allowed. Valid values and their meanings
are:
Value Meaning 0 No delegation and no extension 1 Delegation allowed 2 Extension allowed 3 Delegation and extension allowed
- Throws:
DfException
- if the server returns an error
-
setPerformerFlag
Defines whether the activity's performer can delegate or extend the activity. Delegation allows the activity performer to delegate the generated workitem to another user. Extension allows the activity's performer to add additional performers at run time. For more information about delegation and extension, refer to Server Fundamentals.- Parameters:
performerFlag
- set this to the integer value that corresponds to the abilities you want to give the performer. Valid values and their correspondences are:Value Meaning 0 No delegation and no extension 1 Delegation allowed 2 Extension allowed 3 Delegation and extension allowed
- Throws:
DfException
- if the server returns an error
-
getTransitionType
Returns the type of transition defined for the activity. The type of transition defined for an activity determines how output ports are selected when the activity is completed. For more information, refer to Server Fundamentals.- Returns:
- An integer that corresponds to the kind of transition. Valid
values and their meanings are:
Value Meaning 0 Prescribed 1 Manual 2 Automatic
- Throws:
DfException
- if the server returns an error
-
setTransitionType
Defines the transition type for the activity. The type of transition defined for an activity determines how output ports are selected when the activity is completed. If the transistion type is undefined, the default isprescribed
, meaning that the package is sent to all output ports. For more information, refer to Server Fundamentals.- Parameters:
transitionType
- set this to the integer value that corresponds to the kind of transition you want for the activity. Valid values and their meanings are:Value Meaning 0 Prescribed - package is forwarded to all output ports 1 Manual - activity performers choose the output ports 2 Automatic - route case conditional logic defines output ports
- Throws:
DfException
- if the server returns an error
-
getConditionId
Returns the object ID of the repository object that stores the route case conditions. Route cases define boolean conditions used in automatic activities to select output ports. When the activity completes, the server evaluates the conditions and selects the output ports associated with the first condition that is true.- Returns:
- IDfId an interface to the object ID of the repository object that stores the route case conditions
- Throws:
DfException
- if the server returns an error
-
getSignoffRequired
Indicates whether the activity requires a sign off.- Returns:
true
if the activity requires a sign off;false
if it does not- Throws:
DfException
- if the server returns an error
-
setSignoffRequired
Defines whether the activity requires a sign off.- Parameters:
signoffRequired
- set this totrue
to require the activity performer to sign off, orfalse
if no sign off is required.- Throws:
DfException
- if the server returns an error
-
getPortCount
Returns the number of ports in the activity. Ports are the means by which a package is moved from one activity to another. For more information about ports, refer to Server Fundamentals.- Returns:
- The number of ports in the activity
- Throws:
DfException
- if the server returns an error
-
getPortName
Returns the name of a specified port. Port names are stored in a repeating attribute. This method retrieves the name of the port at the specified index position in the attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPortCount()
to retrieve the value of n.- Parameters:
index
- the index position of the port name that you want to retrieve- Returns:
- The name of the port
- Throws:
DfException
- if the server returns an error
-
getPortType
Returns the type of a specified port. Port types are stored in a repeating attribute. The port type at any particular index position in the attribute identifies the type of the port in the corresponding index position in the port_name attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPortCount()
to retrieve the value of n.- Parameters:
index
- the index position of the port whose type you want to retrieve- Returns:
- The type of the port. One of: INPUT, OUTPUT, or REVERT
- Throws:
DfException
- if the server returns an error
-
getPackageCount
Returns the number of packages associated with the activity. Packages are the objects on which the activity performs operations. For more information about packages and activities, refer to Server Fundamentals.- Returns:
- The number of packages
- Throws:
DfException
- if the server returns an error
-
getPackageName
Returns the name of a specified package. Package names are stored in a repeating attribute. This method retrieves the name of the package at the specified index position in the attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n.- Parameters:
index
- the index position of the package whose name you want to retrieve- Returns:
- The name of the package
- Throws:
DfException
- if the server returns an error
-
getPackageType
Returns the type of a specified package. Package types are stored in a repeating attribute. The value at any particular index position in the attribute identifies the type of the package identified in the corresponding index position in the r_package_id attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n.- Parameters:
index
- the index position of the package whose type you want to retrieve- Returns:
- The type of the package
- Throws:
DfException
- if the server returns an error
-
getPackageOperation
Returns information about the operation to be performed on a specified package. The information is primarily useful for automatic activities. Refer to Server Fundamentals for more information. A package's operation information is stored in a repeating attribute. The information at any particular index position in the attribute is associated with the package defined at the corresponding index position in the r_package_id attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n.- Parameters:
index
- the index position of the package whose operation information you want to obtain.- Returns:
- The operation information
- Throws:
DfException
- if the server returns an error
-
getPackageId
Returns the object ID of a specified package. Package IDs are stored in a repeating attribute. This method returns the object ID of a package at a specified index position in that attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n.- Parameters:
index
- the index position of the package whose ID you want to obtain- Returns:
- The object ID of the package
- Throws:
DfException
- if the server returns an error
-
getPackageLabel
Returns the version label associated with the package. Package version labels are stored in a repeating attribute. This method returns the package label at a specified index position in the attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n.- Parameters:
index
- the index position of the package in the repeating attributes that store package definitions.- Returns:
- The version label
- Throws:
DfException
- if the server returns an error
-
getConditionCount
Returns the number of routing conditions in the activity. Each routing condition in the activity is associated with one route case. The server uses the routing conditions defined in route cases to select output ports for automatic activities. For more information about route cases and automatic activites, refer to Server Fundamentals.- Returns:
- The number of route cases in the activity
- Throws:
DfException
- if the server returns an error
-
getConditionName
Returns the name of a route case. Route case names are stored in a repeating attribute. This method retrieves the route case name at a specified index position in the attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetConditionCount()
to retrieve the value of n.- Parameters:
index
- the index position of the route case whose name you want to retrieve- Returns:
- The name of the route case
- Throws:
DfException
- if the server returns an error
-
getConditionPort
Returns the output ports associated with a specified route case. A route case defines a set of output ports to use if the conditions in the route case's condition are true. Route cases are used by automatic activities. Route cases are added to an activity usingaddRouteCase(java.lang.String, java.lang.String, com.documentum.fc.common.IDfList)
. The output ports are stored in a repeating attribute. The ports in a particular index position in the attribute are the ports associated with the route case defined at the same index postion in r_condition_name. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetConditionCount()
to retrieve the value of n.- Parameters:
index
- the index position of the route case whose output ports you want to retrieve.- Returns:
- getConditionPort A list of the output ports, separated by commas
- Throws:
DfException
- if the server returns an error
-
getPerformerConditionCount
Returns the number of performer conditions in the activity. Each performer condition in the activity is associated with one performer condition. The server uses the performer conditions defined to resolve performers for activities. For more information about performer conditions, refer to Server Fundamentals.- Returns:
- The number of performer conditions in the activity
- Throws:
DfException
- if the server returns an error
-
getPerformerConditionName
Returns the name of a performer condition. Performer condition names are stored in a repeating attribute. This method retrieves the performer condition name at a specified index position in the attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPerformerConditionCount()
to retrieve the value of n.- Parameters:
index
- the index position of the performer condition whose name you want to retrieve- Returns:
- The name of the performer condition
- Throws:
DfException
- if the server returns an error
-
getPerformerConditionId
Returns the object ID of the repository object that stores the performer conditions. Performer conditions define boolean conditions used in automatic activities to select output ports. When the activity completes, the server evaluates the conditions and selects the output ports associated with the first condition that is true.- Returns:
- IDfId an interface to the object ID of the repository object that stores the route case conditions
- Throws:
DfException
- if the server returns an error
-
getPerformerConditionUser
Returns the user associated with a specified performer condition. A performer condition defines a set of users to use if the condition is true. Performer conditions are used by automatic activities. Route cases are added to an activity usingaddRouteCase(java.lang.String, java.lang.String, com.documentum.fc.common.IDfList)
. The output ports are stored in a repeating attribute. The ports in particular index position in the attribute are the ports associated with the route case defined at the same index postion in r_condition_name. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetConditionCount()
to retrieve the value of n.- Parameters:
index
- the index position of the route case whose output ports you want to retrieve.- Returns:
- getConditionPort A list of the output ports, separated by commas
- Throws:
DfException
- if the server returns an error
-
getResolveType
Returns the performer aliasing resolve type of the activity.- Returns:
- an integer indicating the performer aliasing resolve type of the activity
- Throws:
DfException
- if the server returns an error
-
setResolveType
Sets the performer aliasing resolve type of the activity. - 0 (Normal/default) - 1 (Package) - 2 (Previous performer and Group)- Parameters:
resolveType
- the resolve type for the performer aliasing of the activity- Throws:
DfException
- if the server returns an error
-
getResolvePackageName
Returns the package name used to resolve performer aliasing.- Returns:
- the package name used to resolve performer aliasing when package is the resolve type for the activity.
- Throws:
DfException
- if the server returns an error
-
setResolvePackageName
Sets the package name used to resolve performer aliasing.- Parameters:
resolvePkgName
- the package name used to resolve performer aliasing when package is the resolve type for the activity.- Throws:
DfException
- if the server returns an error
-
getPerformerNameCount
Returns the number of values the performer name attribute has.- Returns:
- value count of the attribute performer_name
- Throws:
DfException
- if server error occurs- See Also:
-
getRepeatingPerformerName
Returns the performer name attribute at the specified index.- Parameters:
index
- Index at which performer_name returns- Returns:
- performer_name at index
- Throws:
DfException
- if server error occurs- See Also:
-
setRepeatingPerformerName
Sets the performer name attribute at a specified index.- Parameters:
index
- Index at which performer_name is setname
- Name set to performer_name- Throws:
DfException
- if server error occurs- See Also:
-
getControlFlag
Returns the control flag attribute of the activity.- Returns:
- an integer indicating the control_flag of the activity
- Throws:
DfException
- if server error occurs- See Also:
-
setControlFlag
Sets the control flag attribute of the activity.- Parameters:
flag
- new control flag value- Throws:
DfException
- if server error occurs- See Also:
-
getTransitionMaxOutputCount
Returns the maximum number of output ports user can select at runtime when activity is manual transition- Returns:
- maximum number of output ports user can select at runtime
- Throws:
DfException
-
setTransitionMaxOutputCount
Set the maximum number of output ports user can select at runtime when activity is manual transition- Parameters:
count
-- Throws:
DfException
-
getTransitionEvalCount
Returns the number of completed tasks that are required to trigger the next activities.- Returns:
- number of completed tasks to trigger the next activities
- Throws:
DfException
-
setTransitionEvalCount
Set the number of completed tasks that are required to trigger the next activities.- Parameters:
count
-- Throws:
DfException
-
getTransitionFlag
Returns when and how to trigger the selected outgoing paths when activity is manual transition- Returns:
- when and how to trigger the selected outgoing paths
- Throws:
DfException
-
setTransitionFlag
Together with the transition eval count, set when and how to trigger the selected outgoing paths when activity is manual transition- Parameters:
flag
-- Throws:
DfException
-
getTaskSubject
Returns a subject for the task inbox item, the subject will be constructed at the creation time of the inbox item- Returns:
- subject for the task inbox item
- Throws:
DfException
-
setTaskSubject
Set a subject for the task inbox item, the subject will be constructed at the creation time of the inbox item- Parameters:
name
-- Throws:
DfException
-
addPackageInfoEx
void addPackageInfoEx(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation, int packageFlag) throws DfException Adds a package definition to a port in the activity. A package definition represents an object that the activity handles. The activity must be in the draft or validated state to add a package definition to one of its ports. If the activity is in the validated state, adding a package definition sets the activity back to the draft state. The package definition must be compatible with the definition of the package defined for the port to which the port specified inportName
is linked. For example, ifportName
represents an output port, the definition must be compatible with the input port to whichportName
is linked. Refer to Content Server Fundamentals for details about package compatability. The port identified inportName
must exist in the activity.Setting the
packageFlag
argument to make the package invisible to this activity has the following behavioral consequences for the package:removePackage
andappendNote
cannot be called against an invisible package.- The GET_INBOX administration method does not return objects associated with an invisible package.
- When the text in a task_subject attribute is resolved, references to invisible packages are not resolved.
- In email templates, references to invisible packages are not resolved.
addPackageInfoEx(java.lang.String, java.lang.String, java.lang.String, com.documentum.fc.common.IDfId, java.lang.String, java.lang.String, int)
. For more information about packages and activities, refer to Server Fundamentals. For more information about packages and activities, refer to Server Fundamentals.- Parameters:
portName
- name of the port to which you are adding the packagepackageName
- name of the package. This must be unique among the packages defined in the activity.packageType
- the object type of the packagepackageId
- an IDfID object that contains the package's object ID. If you don't provide a version label in thepackageLabel
parameter, the object identified by the object ID is bound to the port. If you include thepackageLabel
parameter, the method searches the version tree to which the object belongs and binds the version with the specified label to the port.packageLabel
- the version label of the package. This is an optional argument. If you include this argument, the method binds the specified version of the package to the port. If you don't include this argument, the version identified bypackageId
is bound to the port.packageOperation
- identifies the application that will be used to perform the actions associated with the activity. This argument is intended primarily for automatic activities.packageFlag
- identitifes whether this package is visible to this activity and whether this package is allowed to be empty. This is an optional flag. The default is 1, meaning the package is visible but cannot be empty. Valid values are: 0: Not visible, cannot be empty 1: Visible, cannot be empty 2: Not visible, can be empty 3: Visible, can be empty- Throws:
DfException
- if the server returns an error
-
addPackageInfoEx
void addPackageInfoEx(String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation, int packageFlag, int packageReportFlag) throws DfException Adds a package definition to a port in the activity. This method is an exention of the following method: addPackageInfoEx (String portName, String packageName, String packageType, IDfId packageId, String packageLabel, String packageOperation, int packageFlag) The packageReportFlag argument in this method controls whether this package will be reported at workflow runtime. Note that Workflow Manager does not recognize the packageReportFlag setting. Consequently, all packages will not be reported at workflow runtime if workflows are managed using WFM. For more information about packages and activities, refer to Server Fundamentals.- Parameters:
portName
- name of the port to which you are adding the packagepackageName
- name of the package. This must be unique among the packages defined in the activity.packageType
- the object type of the packagepackageId
- an IDfID object that contains the package's object ID. If you don't provide a version label in thepackageLabel
parameter, the object identified by the object ID is bound to the port. If you include thepackageLabel
parameter, the method searches the version tree to which the object belongs and binds the version with the specified label to the port.packageLabel
- the version label of the package. This is an optional argument. If you include this argument, the method binds the specified version of the package to the port. If you don't include this argument, the version identified bypackageId
is bound to the port.packageOperation
- identifies the application that will be used to perform the actions associated with the activity. This argument is intended primarily for automatic activities.packageFlag
- identitifes whether this package is visible to this activity and whether this package is allowed to be empty. This is an optional flag. The default is 1, meaning the package is visible but cannot be empty. Valid values are:
0: Not visible, cannot be empty
1: Visible, cannot be empty
2: Not visible, can be empty
3: Visible, can be emptypackageReportFlag
- indicates whether this package will be reported on this activity at workflow runtime. This is an optional flag. The default is false, meaning the package will not be reported on this activity at runtime. Valid values are: 0: Not report 1: Report- Throws:
DfException
- if the server returns an error
-
getPackageFlag
Returns the flag of a specified package. Package flags are stored in a repeating attribute. The value at any particular index position in the attribute identifies the flag of the package identified in the corresponding index position in the r_package_id attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n. The value representations are: 0: Not visible, can not be empty
1: Visible, can not be empty
2: Not visible, can be empty
3: Visible, can be empty- Parameters:
index
- the index position of the package whose flag you want to retrieve- Returns:
- The flag of the package
- Throws:
DfException
- if the server returns an error
-
getPackageReportFlag
Returns the report flag of a specified package. Package flags are stored in a repeating attribute. The value at any particular index position in the attribute identifies the report flag of the package identified in the corresponding index position in the r_package_id attribute. Index positions begin at 0 and increment by 1 for each value in the attribute, up to n-1 where n is the total number of values in the attribute. You can usegetPackageCount()
to retrieve the value of n. The value representations are: 0: Not report
1: Report- Parameters:
index
- the index position of the package whose flag you want to retrieve- Returns:
- The flag of the package
- Throws:
DfException
- if the server returns an error
-
addConditionRouteCase
void addConditionRouteCase(String routeCaseIdentifier, IDfList conditions, IDfList outputPorts) throws DfException Adds a route case to the activity. The condition is described by a list ofIDfTransitionCondition
s to be ANDed. Alternatively, the condition comprises a list of lists of
IDfTransitionCondition
s. In this case, the outermost list is considered to be one or more conditions to be ORed, each of which comprises a list of one or more conditions to be ANDed. This effectively provides natural logical precedence, but with no provision for bracketing.
- Parameters:
routeCaseIdentifier
- the name of the route case or the keywordexceptional
to identify an exception route case.conditions
- a list of IDfTransitionCondition instances that should be ANDed for the route case. Specify this asnull
if therouteCaseIdentifier
isexceptional
.outputPorts
- an IDfList interface that contains the names of the selected output ports. These are the ports that will be selected if theconditions
evaluate totrue
.- Throws:
DfException
- if the server returns an error
-
getConditions
Returns the list (or list of lists) of transition condition definitions for the named route case.- Parameters:
routeCaseIdentifier
- the name of the route case- Returns:
- a list of
IDfTransitionCondition
s or a list of
IDfList
s
- Throws:
DfException
- if a server error occurs
-
newAttributeValueCondition
Factory method for attribute value transition conditions.- Returns:
- an attribute value condition instance
- Throws:
DfException
- if the server returns an error
-
newXPathCondition
Factory method for XPath transition conditions.- Returns:
- an XPath condition instance
- Throws:
DfException
- if the server returns an error
-
hasCompatibilityRouteCases
Indicates whether or not this activity supports compatibility (pre-5.3) route cases.- Returns:
true
if the activity supports compatibility route cases, otherwisefalse
- Throws:
DfException
-
getPreTimerAction
Returns the ID of a timer action object at the given index within a timer series.- Parameters:
index
- the index of the timer within the timer series- Returns:
- the ID of the timer action
- Throws:
DfException
- if a server error occurs
-
getPreTimerIncrement
Returns the interval in minutes that must pass before the timer is fired. Increments for the second and subsequent timers within a series are deltas from the time the previous timer in the series was fired.- Parameters:
index
- the index of the timer within the timer series- Returns:
- the interval, in minutes, that must pass before the timer is fired
- Throws:
DfException
- if a server error occurs
-
isPreTimerRepeatLastAction
Indicates if the final timer in the series should repeat.- Returns:
true
if the final timer within the series should repeat, otherwisefalse
- Throws:
DfException
- if a server error occurs
-
setPreTimerRepeatLastAction
Sets an indicator for whether or not the final timer in a series should repeat.- Parameters:
repeatLast
-true
if the final timer within the series should repeat, otherwisefalse
- Throws:
DfException
- if a server error occurs
-
addPreTimerAction
Establishes a timer at the end of the series. Increments for the second and subsequent timers within a series are deltas from the time the previous timer in the series was fired.- Parameters:
action
- the ID of the timer actionminutes
- the interval in minutes that must pass before the timer is fired- Throws:
DfException
- if a server error occurs
-
removePreTimers
Removes all pre-timers from this activity.- Throws:
DfException
- if a server error occurs
-
getPreTimerCount
Returns the number of timer actions within the series.- Returns:
- the number of timer actions within the series
- Throws:
DfException
-
getPostTimerAction
Returns the ID of a timer action object at the given index within a timer series.- Parameters:
index
- the index of the timer within the timer series- Returns:
- the ID of the timer action
- Throws:
DfException
- if a server error occurs
-
getPostTimerIncrement
Returns the interval in minutes that must pass before the timer is fired. Increments for the second and subsequent timers within a series are deltas from the time the previous timer in the series was fired.- Parameters:
index
- the index of the timer within the timer series- Returns:
- the interval in minutes that must pass before the timer is fired
- Throws:
DfException
- if a server error occurs
-
isPostTimerRepeatLastAction
Indicates if the final timer in the series should repeat.- Returns:
true
if the final timer within the series should repeat, otherwisefalse
- Throws:
DfException
- if a server error occurs
-
setPostTimerRepeatLastAction
Sets an indicator for whether or not the final timer in a series should repeat.- Parameters:
repeatLast
-true
if the final timer within the series should repeat, otherwisefalse
- Throws:
DfException
- if a server error occurs
-
addPostTimerAction
Establishes a timer at the end of the series. Increments for the second and subsequent timers within a series are deltas from the time the previous timer in the series was fired.- Parameters:
action
- the ID of the timer actionminutes
- the interval in minutes that must pass before the timer is fired- Throws:
DfException
- if a server error occurs
-
removePostTimers
Removes all pre-timers from this activity.- Throws:
DfException
- if a server error occurs
-
getPostTimerCount
Returns the number of timer actions within the series.- Returns:
- the number of timer actions within the series
- Throws:
DfException
-
addPerformerCondition
void addPerformerCondition(String conditionName, String condition, IDfList performers) throws DfException Adds a performer case to the activity. A performer case identifies a boolean condition and the performers associated with that condition. Performer cases support activities that have a transition type defined as automatic. When the activity is completed, the conditional logic in the route cases is evaluated and a set of output ports selected as a result. The activity must be in the draft or validated state to add a route case. If the activity is in the validated state, adding a route case sets the activity back to the draft state. For more information about route cases, refer to Server Fundamentals.- Parameters:
conditionName
- the name of the route case or the keywordexception
to identify an exception route case.condition
- the boolean condition for the route case. Specify this asnull
if therouteCaseIdentifier
isexception
.performers
- an IDfList interface that contains the names of the selected output ports. These are the ports that will be selected if thecondition
evaluates totrue
.- Throws:
DfException
- if the server returns an error
-
removePerformerCondition
Removes a route case from the activity. A route case identifies a Boolean condition and the output ports associated with that condition. Route cases support activities that have a transition type defined as automatic. When the activity is completed, the conditional logic in the route cases is evaluated and a set of output ports selected as a result. The activity must be in the draft or validated state to remove a route case. If the activity is in the validated state, removing a route case sets the activity back to the draft state. For more information about route cases, refer to Server Fundamentals.- Parameters:
conditionName
- the name of the route case- Throws:
DfException
- if the server returns an error
-
getPerformerConditionNames
Return a String list that contains the name of the performer conditions. If there is no performer condition setup, returns an empty list.- Returns:
- Throws:
DfException
-
getPerformerCondition
For the given condition name, return the corresponding performer condition. Throws exception if the condition name does not exist.- Parameters:
condtionName
-- Returns:
- Throws:
DfException
-
getPerformers
For the given condition name, return a String list of performers used for this condition. Throws exception if the condition name does not exist.- Parameters:
conditionName
-- Returns:
- Throws:
DfException
-
getPackagesMetaData
Returns a query result collection containing the following attributes:r_package_name String r_package_type Int r_package_label String r_package_flag Int
The collection is the metadata for the packages defined on an OUTPUT port; If there is no output port, it returns meta data of packages defined on an INPUT port. Note 1: The function returns an empty collection if there are no packages defined.
Note 2: The caller of this function is responsible for closing the collection returned. Sample code:IDfCollection col = activity.getPackagesMetaData(); try { while (col.next()) { String packageName = col.getString("r_package_name"); String packageType = col.getString("r_package_name"); String packageLabel = col.getString("r_package_label"); String packageFlag = col.getInt("r_package_flag"); ... ... } finally { if (col != null) col.close() }
- Returns:
- an IDfCollection.
- Throws:
DfException
- if the query failed or the session has timed out and cannot be reestablished.
-
getPerfCondIndex
Returns the index position of the corresponding condition in the expression object for the given performer condition.- Parameters:
condName
-- Returns:
- index position of the condition in the expression condition object
- Throws:
DfException
-