All Categories Class Hierarchy This Category Previous Next Indexes
User-exit Class CATVpmActionUsrMethod
CATVpmActionUsrMethod
public class CATVpmActionUsrMethod
This class regroups the user exits for Action Flow.
These user exits are static methods called by the Action Flow component,
and which content can be modified by the customer to suit their specific
needs.
Method Index
- o
CheckTransfer(CATVpmUsrAction*,CATUnicodeString,CATUnicodeString)
- Checks if the transfer of the Action is allowed
- o
CheckUsrCondition(CATUnicodeString,CATUnicodeString)
- Status Graph customization :
Checks a user condition associated to a status change transition :
if an error is returned, (i.
- o
CheckUsrLibraryAccess(CATUnicodeString,CATUnicodeString&)
- Action Property Editor customization :
Checks access to an external file when trying to associate it to the action
(by reference) : if an error is returned (i.
- o
ExecuteUsrCommand(CATUnicodeString,CATListOfCATUnicodeString)
- Status Graph customization :
Executes a user command related to a Status Graph transition.
- o
GetNewUsrPersonId(CATUnicodeString,CATUnicodeString&)
- Status Graph customization :
Retrieves the person identifier relating to a ":Notify" generic command,
using the ":EXT" parameter - i.
- o
GetSitePrefix(CATUnicodeString,CATUnicodeString&)
- Action multi-site management
Gets the site prefix for action primary id uniqueness; it is 3 characters long.
- o
GetUsableActions(int&,CATListOfCATUnicodeString&)
- Returns the usable actions for links modification
- o
GetUsrMessageText(CATUnicodeString,CATUnicodeString&,CATUnicodeString&)
- Status Graph customization :
Retrieves the message relating to a ":Notify" generic command.
- o
ModifySecondaryId(CATUnicodeString,CATUnicodeString,CATUnicodeString,char,char&,CATUnicodeString&)
- Action Property Editor customization :
Retrieves action secondary id when user modifies action type or id in
"secondary id" mode.
- o
ModifyType(CATUnicodeString,CATUnicodeString&)
- Action Type customization
- o
WhenActionIsGenerated(CATVpmUsrAction*)
- Manage the action when it is generated
- o
WhenActionIsSaved(CATVpmUsrAction*)
- Manage the action when it is saved
Data Member Index
- o
_CurrentAction
-
- o
_CurrentActionProduct
-
Methods
o CheckTransfer
| public static Error CheckTransfer( | const CATVpmUsrAction* | iAction, |
| const CATUnicodeString | iOwner, |
| const CATUnicodeString | iOrganization) |
-
Checks if the transfer of the Action is allowed
- Parameters:
-
- iAction
- Action handler
- iOwner
- New owner of the Action
- iOrganization
- New organization of the Action
- Returns:
- error object
o CheckUsrCondition
| public static Error CheckUsrCondition( | const CATUnicodeString | iConditionName, |
| const CATUnicodeString | iOperationName) |
-
Status Graph customization :
Checks a user condition associated to a status change transition :
if an error is returned, (i.e. Ier != 0), the condition is false,
otherwise it is true and the operation which it applies to is executed.
- Parameters:
-
- iConditionName
- condition name as defined in the Status Graph
- iOperationName
- operation name as defined in the Status Graph, which the condition applies to
- Returns:
- error object
o CheckUsrLibraryAccess
| public static Error CheckUsrLibraryAccess( | const CATUnicodeString | iCurrentFullFileName, |
| CATUnicodeString& | oNewFullFileName) |
-
Action Property Editor customization :
Checks access to an external file when trying to associate it to the action
(by reference) : if an error is returned (i.e. Ier != 0), the file is
not accessible and therefore, the file is not associated while
the error message is displayed.
Also retrieves an updated pathname for this file where accessible.
- Parameters:
-
- iCurrentFullFileName
- full pathname of the selected file
- oNewFullFileName
- full pathname of the accessible file (if NULL, the input name is used)
- Returns:
- error object
o ExecuteUsrCommand
| public static Error ExecuteUsrCommand( | const CATUnicodeString | iCommandName, |
| CATListOfCATUnicodeString | iParamList) |
-
Status Graph customization :
Executes a user command related to a Status Graph transition.
- Parameters:
-
- iCommandName
- command name as defined in the Status Graph
- iNbParam
- number of command parameters
- iParamList
- command parameters passed as a iNbParam sized array of strings
- Returns:
- error object
o GetNewUsrPersonId
| public static Error GetNewUsrPersonId( | const CATUnicodeString | iOperationName, |
| CATUnicodeString& | oPersonId) |
-
Status Graph customization :
Retrieves the person identifier relating to a ":Notify" generic command,
using the ":EXT" parameter - i.e. the recipient of the notification.
- Parameters:
-
- iOperationName
- operation name as defined in the Status Graph
- oPersonId
- person identifier of the notification recipient
- Returns:
- error object
o GetSitePrefix
| public static Error GetSitePrefix( | const CATUnicodeString | iSiteName, |
| CATUnicodeString& | oSitePrefix) |
-
Action multi-site management
Gets the site prefix for action primary id uniqueness; it is 3 characters long.
The primary id of an action is then:
TYPE SITE NUMBER
[1-3][4-6][7-80]
- Parameters:
-
- iSiteName
- Site name in P&O table
- oSitePrefix
- Site prefix for primary id of actions
- Returns:
- error object
o GetUsableActions
| public static Error GetUsableActions( | int& | oIsUsed, |
| CATListOfCATUnicodeString& | oActionsOIDList) |
-
Returns the usable actions for links modification
- Parameters:
-
- oIsUsed
- 0: the user exit is not used
1: the user exit is used
- oActionsOIDList
- List of the OIDs of the usable actions
o GetUsrMessageText
| public static Error GetUsrMessageText( | const CATUnicodeString | iOperationName, |
| CATUnicodeString& | oMessageTitle, |
| CATUnicodeString& | oMessageText) |
-
Status Graph customization :
Retrieves the message relating to a ":Notify" generic command.
- Parameters:
-
- iOperationName
- operation name as defined in the Status Graph
- oMessageTitle
- title (subject) of the message
- oMessageText
- full message text
- Returns:
- error object
o ModifySecondaryId
| public static Error ModifySecondaryId( | const CATUnicodeString | iTypePrefix, |
| const CATUnicodeString | iTypeName, |
| const CATUnicodeString | iCurrentId, |
| char | iClashMode, |
| char& | ioModifiable, |
| CATUnicodeString& | oNewId) |
-
Action Property Editor customization :
Retrieves action secondary id when user modifies action type or id in
"secondary id" mode.
- Parameters:
-
- iTypePrefix
- action type prefix
- iTypeName
- action type name
- iCurrentId
- action current secondary id (since last modified)
- iClashMode
- = 'Y' if save attempt has been made and resulted in a clash due to an existing action with the same id
- ioModifiable
- indicates if the action name (i.e. secondary id) can be edited from
within the Action Property Editor window :
'Y' : yes, the action name can be edited
otherwise : the action name cannot be modified
- oNewId
- action secondary id
- Returns:
- error object
o ModifyType
| public static Error ModifyType( | const CATUnicodeString | iTypeName, |
| CATUnicodeString& | oTypeName) |
-
Action Type customization
- Parameters:
-
- iTypeName
- Current Action type name
- oTypeName
- New Action type name
o WhenActionIsGenerated
-
Manage the action when it is generated
- Parameters:
-
- iAction
- Action
- Returns:
- error object
o WhenActionIsSaved
-
Manage the action when it is saved
- Parameters:
-
- iAction
- Action
- Returns:
- error object
Data Members
o _CurrentAction
public static CATVpmUsrAction* _CurrentAction
-
o _CurrentActionProduct
public static CATVpmUsrActionObject* _CurrentActionProduct
-
This object is included in the file: CATVpmActionUsrMethod.h
If needed, your Imakefile.mk should include the module: VX0AFUSR