|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.config.Action
public class Action
Class that represents Action on a UWL item. An Action object instance is basically
metadata and not meant to be modifed by the caller.
Special note on User decision Actions: (Following section is deprecated for User Decisions. Refer to GroupAction for more details.
User decision page is triggered by the UI Action denoted by the constant
USER_DECISION_ACTION_OBJECT
User decision actions displayed on a page consist of
UserDecisionTitle
or the constant value Action.USER_DECISION_TITLE for example
property.put(Action.USER_DECISION_TITLE,"Select One of the Options")
UserDecisionNote set as true or use the Constant
value Action.USER_DECISION_NOTE for the property set as true.
property.put(Action.USER_DECISION_NOTE,"true")
When action is performed, a property UserDecisionNoteText holds the text value from the ui.
${variable}. This variable
can be item.'someAttribute' or context.someAttribute.
Then reflection on the item is done to get that value.
For example ${item.externalId} could be used to fill
the external id. These variables cant be nested.
Example on how to use dynamic properties of an Action:
GroupAction,
Serialized Form| Field Summary | |
|---|---|
static String |
ACCEPT
|
static String |
ACTION_DECLINE
Action to decline working on the item |
static String |
ACTION_END_FOLLOWUP
Action to pull a future task to current time to be worked on |
static String |
ACTION_FOLLOWUP
Action to push the need to work on a task to a later date |
static String |
ACTION_FORWARD
Strings being declared in the uwl.standard.xml for forwarding items to one or more users |
static String |
ACTION_FORWARD_TO_ONE_USER
Strings being declared in the uwl.standard.xml for forwarding items to one user |
static String |
ACTION_REPLACE
Action to put the item back into the pool for processors |
static String |
ACTION_RESERVE
Action to reserve the item from the pool from other processors |
static String |
ADD_MEMO
|
static String |
ALERT_ACTION_CONFIRM
Strings being declared in the uwl.standard.xml for confirming --closing-- Alerts |
static String |
APPLICATION
|
static String |
APPROVE
|
static String |
ATTACHMENT_CONTENT
Action property for UPLOAD_ATTACHMENT: content in byte array |
static String |
ATTACHMENT_CONTROLLER
This is a special action which will be added to the attachment sections to allow upload and removal of attachments. |
static String |
ATTACHMENT_FILENAME
Action property for UPLOAD_ATTACHMENT: the name of the file to be attached, with file extension (if any) |
static String |
ATTACHMENT_ID
Action property for REMOVE_ATTACHMENT |
static String |
BEGIN
|
static String |
CANCEL_SUBPROCESS
|
static String |
COMPLETE
|
static String |
CONNECTOR_ID
|
static String |
CONTEXT
|
static String |
CUSTOMER_NAMESPACE
Parameters for BSPLauncher |
static String |
DEFAULT_ACTION
|
static String |
DELETE
|
static String |
DISPLAY_PRIORITY
Add this property key with a integer value to indicate if it should be display ahead of other actions in the detail/preview screens. |
static String |
DYNAMIC_PARAMS
|
static char |
END
|
static char |
ESCAPE
|
static String |
FOLLOW_UP
Action which require user selection must have this prefix. |
static String |
FUNCTION_MODULE_HANDLER
|
static String |
FUTURE_DATE
Action property for ACTION_FOLLOWUP |
static String |
GLOBAL_WIZARD
|
static String |
IAC
IAC Launcher parameter |
static String |
ITEM
|
static String |
IVIEW_LAUNCHER
|
static String |
LAUNCH_IN_NEW_WINDOW
Deprecated. Use openInNewWindow() method, this has also be changed in the xml to allow using an attribute key when defining the action. See the DTD documentation for details. |
static String |
LAUNCH_NEW_WINDOW_FEATURES
Deprecated. Use getNewWindowFeatures() method, this has also be changed in the xml to allow using an attribute key when defining the action. See the DTD documentation for details. |
static String |
LAUNCH_NEW_WINDOW_NAME
Deprecated. Use getNewWindowName() method. |
static String |
LAUNCH_SUBSTITUTION_MANAGER
|
static String |
LAUNCH_USER_DECISION
the Action name to launch the User decision iView; launched by UI_ACTION_HANDLER |
static String |
MANAGE_ATTACHMENT
|
static String |
MARK_AS_LAUNCHED
|
static String |
MARK_AS_READ
|
static String |
MARK_AS_UNREAD
|
static String |
MULTI_USER_SELECTION_NEEDED
If the action requires a user(s) selection, add this as one of the properties The property will be replace with the user id(s) when submitted to the provider. |
static String |
NAMESPACE
|
static String |
NAVIGATION_KEYWORD
|
static String |
OBJECT_LINK_LAUNCHER
|
static String |
OBJECT_NAME
ObjectNavigationLauncher parameters. |
static String |
OBJECT_NAVIGATION_LAUNCHER
|
static String |
OBJECT_VALUE
|
static String |
OPERATION
|
static String |
PAGE_ID
|
static String |
PCD_PREFIX
|
static String |
PERSONALIZE_VIEW
|
static String |
PORTAL_CONTENT
|
static String |
PORTAL_EVENT_LAUNCHER
|
static String |
PROVIDER_ACTION_HANDLER
|
static String |
REFRESH_ACTION
|
static String |
REFRESH_DETAIL
|
static String |
REJECT
|
static String |
REMOVE_ATTACHMENT
|
static String |
RETURN_TO_TABLE
|
static String |
SAP_BSP_LAUNCHER
|
static String |
SAP_TRANSACTION_LAUNCHER
|
static String |
SAP_WEBDYNPRO_ABAP_LAUNCHER
|
static String |
SAP_WEBDYNPRO_LAUNCHER
|
static String |
SAPAPP_LAUNCHER
|
static String |
SAPIAC_LAUNCHER
|
static String |
SAPMINIAPP_LAUNCHER
|
static String |
SET_DONE
|
static String |
SINGLE_USER_SELECTION_NEEDED
If the action requires a user(s) selection, add this as one of the properties. |
static String |
SUBMIT_ACTION
UIActionHandler commands |
static String |
SYSTEM
Parameters shared by all launchers |
static String |
SYSTEM_ID_PROPERTY
|
static String |
TASK_WIZARD
|
static String |
TEMPLATE
MiniApp Launcher parameter |
static String |
TERMINATING_EVENT_HANDLER
|
static String |
UI_ACTION_HANDLER
|
static String |
UI_EXCLUDE_ACTION
If an Action is defined of an Item Type, a view can define the Action again with the action handler set to UI_EXCLUDE_ACTION. |
static String |
UI_EXLCUDE_ITEM_TYPE_ACTION
If an Action is defined ine Item Type to be used in a menu only, this will then indicate the action should not be displayed in the preview and detail pages of this view. |
static String |
UPDATING_CONTAINER_HANDLER
Only available in (supported by backend 6.20+) |
static String |
UPLOAD_ATTACHMENT
|
static String |
UPLOAD_MEMO
|
static String |
URL_LAUNCHER
|
static Action |
USER_DECISION_ACTION_OBJECT
|
static String |
USER_DECISION_HANDLER
The name of the decision handler |
static String |
USER_DECISION_KEY
Constant representign the User Decision key that is selected. |
static String |
USER_DECISION_NOTE
flag indicating the attachment note in the user decision |
static String |
USER_DECISION_NOTE_MANDATORY
flag indicating the attachment note in the user decision alternative is mandatory |
static String |
USER_DECISION_NOTE_TEXT
the text of the attachment note in the user decision is saved in this property |
static String |
USER_DECISION_TITLE
the title for decision options |
static String |
USER_ID
action property for ACTION_FORWARD_TO_ONE_USER |
static String |
USER_ID_LIST
action property for ACTION_FORWARD |
static String |
USER_NOTE
|
static String |
UWL_HANDLER
|
static String |
VIEW_DETAIL
|
static String |
VIEW_HISTORY
|
static String |
VIEW_PARENT_PROCESS_DETAIL
|
static String |
VIEW_PREVIEW_DETAIL
|
static String |
VIEW_SIMILAR
|
static String |
VIEW_SUB_PROCESS_DETAIL
|
static String |
WEB_DYNPRO_APP
Parameters for Webdynpro Launchers |
static String |
WEB_DYNPRO_CONFIGURATION
|
static String |
WEB_DYNPRO_NAMESPACE
|
static String |
WEB_DYNPRO_OBJ
|
static String |
WORK_ITEM_ID
|
static String |
XHANDLER_LAUNCHER
|
| Constructor Summary | |
|---|---|
Action(String name,
String hand,
Map props,
Descriptions d,
boolean uDecision)
|
|
Action(String name,
String hand,
Map props,
Descriptions d,
String bundle,
boolean uDecision)
|
|
Action(String name,
String hand,
Map props,
Descriptions d,
String bundle,
boolean uDecision,
boolean openInNewWindow,
String launchWindowName,
String launchWindowFeatures)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
Descriptions |
getConfirmActionDescriptions()
If there is a confirmation text, which should be displayed before this action is ran, then this call will return the Descriptions. |
Descriptions |
getDisplayNames()
Returns the ds. |
String |
getGroupName()
This is used to determine if action should be group together with other actions of the same group name. |
String |
getHandler()
Returns the handler. |
String |
getLongText(Locale locale)
Get the long text for the specified locale. |
String |
getName()
Returns the name. |
String |
getNewWindowFeatures()
If the action is to be luanched in a new window this should return any desired features for defining the new browser window. |
String |
getNewWindowName()
If the action is to be luanched in a new window this should return the new window browser name. |
Map |
getProperties()
Returns the unmodifiable map |
Map |
getProperties(boolean bDynamic)
|
String |
getProperty(String key)
|
Map |
getPublicAndPrivateProperties()
This is used be the Action Handler for the toDom and toStream calls. |
String |
getReferenceBundle()
|
String |
getShortText(Locale locale)
Return the action display name text for the specified Locale. |
CompoundExpression |
getValidityCriteria()
|
String |
getWdPortalNavigationMode()
|
boolean |
isDefaultGroupAction()
Determine if this is the default action when used with the groupName method. |
boolean |
isDisable()
|
boolean |
isGroupAction()
Deprecated. No longer used. Use getGroupName. |
boolean |
isOpenInNewWindowWithPortalFrame()
|
boolean |
isReturnToDetailViewAllowed()
Determine if after the action is excuted from the detail page if it should return to the detail page or go back to the main page. |
boolean |
isShared()
|
boolean |
openInNewWindow()
Detemine if the action should be launched in a new window. |
void |
setConfirmActionDescriptions(Descriptions descriptions)
Set the Descriptions for the confirmation text. |
void |
setDefaultGroupAction(boolean b)
When used with in a groupName, this is the action to use as the default selection if set to true. |
void |
setDisable(boolean b)
Set to true if the action should be displayed but disabled. |
void |
setGroupName(String string)
|
void |
setNewWindowFeatures(String string)
|
void |
setNewWindowName(String string)
|
void |
setOpenInNewWindow(boolean b)
|
void |
setOpenInNewWindowWithPortalFrame(boolean b)
|
void |
setReturnToDetailViewAllowed(boolean b)
If the action changes the item in a way, which will cause the detail page to be invalid (like deleting the item), set this flag to false to force the return to the main view and not back to the detail page. |
void |
setShared(boolean bSet)
|
void |
setValidityCriteria(CompoundExpression expression)
|
void |
setWdPortalNavigationMode(String wdPortalNavigationMode)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEGIN
public static final char END
public static final String ITEM
public static final char ESCAPE
public static final String CONTEXT
public static final String MARK_AS_READ
public static final String MARK_AS_LAUNCHED
public static final String MARK_AS_UNREAD
public static final String SET_DONE
public static final String DELETE
public static final String CONNECTOR_ID
public static final String ACCEPT
public static final String REJECT
public static final String APPROVE
public static final String COMPLETE
public static final String ACTION_REPLACE
public static final String ACTION_RESERVE
public static final String ACTION_DECLINE
public static final String REMOVE_ATTACHMENT
public static final String ATTACHMENT_ID
public static final String UPLOAD_ATTACHMENT
public static final String ATTACHMENT_FILENAME
public static final String ATTACHMENT_CONTENT
public static final String MANAGE_ATTACHMENT
public static final String VIEW_HISTORY
public static final String ADD_MEMO
public static final String UPLOAD_MEMO
public static final String ACTION_FOLLOWUP
public static final String FUTURE_DATE
public static final String ACTION_END_FOLLOWUP
public static final String ACTION_FORWARD
public static final String USER_ID_LIST
public static final String ACTION_FORWARD_TO_ONE_USER
public static final String USER_ID
public static final String ALERT_ACTION_CONFIRM
public static final String CANCEL_SUBPROCESS
public static final String LAUNCH_USER_DECISION
public static final String USER_DECISION_KEY
public static final String UWL_HANDLER
public static final String SAPAPP_LAUNCHER
ActionHandlers.html#SAPAppLauncher,
Constant Field Valuespublic static final String SAPMINIAPP_LAUNCHER
ActionHandlers.html#SAPMiniAppLauncher,
Constant Field Valuespublic static final String SAPIAC_LAUNCHER
ActionHandlers.html#SAPIACLauncher,
Constant Field Valuespublic static final String SAP_BSP_LAUNCHER
ActionHandlers.html#SAPBSPLauncher,
Constant Field Valuespublic static final String SAP_WEBDYNPRO_LAUNCHER
ActionHandlers.html#SAPWebDynproLauncher,
Constant Field Valuespublic static final String SAP_WEBDYNPRO_ABAP_LAUNCHER
ActionHandlers.html#SAPWebDynproABAPLauncher,
Constant Field Valuespublic static final String SAP_TRANSACTION_LAUNCHER
ActionHandlers.html#SAPTransactionLauncher,
Constant Field Valuespublic static final String OBJECT_LINK_LAUNCHER
ActionHandlers.html#ObjectLinkLauncher,
Constant Field Valuespublic static final String OBJECT_NAVIGATION_LAUNCHER
ActionHandlers.html#ObjectNavigationLauncher,
Constant Field Valuespublic static final String PORTAL_EVENT_LAUNCHER
ActionHandlers.html#PortalEventLauncher,
Constant Field Valuespublic static final String IVIEW_LAUNCHER
ActionHandlers.html#IViewLauncher,
Constant Field Valuespublic static final String URL_LAUNCHER
ActionHandlers.html#UrlLauncher,
Constant Field Valuespublic static final String XHANDLER_LAUNCHER
ActionHandlers.html#XhandlerLauncher,
Constant Field Valuespublic static final String FUNCTION_MODULE_HANDLER
ActionHandlers.html#FunctionModuleActionHandler,
Constant Field Valuespublic static final String UI_ACTION_HANDLER
public static final String PROVIDER_ACTION_HANDLER
public static final String TERMINATING_EVENT_HANDLER
ActionHandlers.html#TerminatingEventHandler,
Constant Field Valuespublic static final String UPDATING_CONTAINER_HANDLER
ActionHandlers.html#UpdatingContainerHandler,
Constant Field Valuespublic static final String SUBMIT_ACTION
public static final String VIEW_SIMILAR
public static final String VIEW_PREVIEW_DETAIL
public static final String VIEW_DETAIL
public static final String VIEW_PARENT_PROCESS_DETAIL
public static final String VIEW_SUB_PROCESS_DETAIL
public static final String REFRESH_DETAIL
public static final String REFRESH_ACTION
public static final String RETURN_TO_TABLE
public static final String PERSONALIZE_VIEW
public static final String GLOBAL_WIZARD
public static final String TASK_WIZARD
public static final String LAUNCH_SUBSTITUTION_MANAGER
public static final String OBJECT_NAME
public static final String OPERATION
public static final String OBJECT_VALUE
public static final String WEB_DYNPRO_APP
public static final String WEB_DYNPRO_OBJ
public static final String WEB_DYNPRO_NAMESPACE
public static final String WEB_DYNPRO_CONFIGURATION
public static final String TEMPLATE
public static final String IAC
public static final String CUSTOMER_NAMESPACE
public static final String NAMESPACE
public static final String APPLICATION
public static final String PAGE_ID
public static final String SYSTEM
public static final String DYNAMIC_PARAMS
public static final String ATTACHMENT_CONTROLLER
public static String DEFAULT_ACTION
public static final String FOLLOW_UP
public static final String USER_NOTE
public static final String MULTI_USER_SELECTION_NEEDED
public static final String SINGLE_USER_SELECTION_NEEDED
public static final String USER_DECISION_HANDLER
public static final String USER_DECISION_TITLE
public static final String USER_DECISION_NOTE
public static final String USER_DECISION_NOTE_MANDATORY
public static final String USER_DECISION_NOTE_TEXT
public static final String LAUNCH_IN_NEW_WINDOW
openInNewWindow,
Constant Field Valuespublic static final String LAUNCH_NEW_WINDOW_NAME
getNewWindowName(),
Constant Field Valuespublic static final String LAUNCH_NEW_WINDOW_FEATURES
getNewWindowFeatures(),
Constant Field Valuespublic static final String UI_EXCLUDE_ACTION
public static final String UI_EXLCUDE_ITEM_TYPE_ACTION
public static final String DISPLAY_PRIORITY
public static final String SYSTEM_ID_PROPERTY
public static final String WORK_ITEM_ID
public static final String PORTAL_CONTENT
public static final String PCD_PREFIX
public static final String NAVIGATION_KEYWORD
public static final Action USER_DECISION_ACTION_OBJECT
| Constructor Detail |
|---|
public Action(String name,
String hand,
Map props,
Descriptions d,
boolean uDecision)
public Action(String name,
String hand,
Map props,
Descriptions d,
String bundle,
boolean uDecision)
public Action(String name,
String hand,
Map props,
Descriptions d,
String bundle,
boolean uDecision,
boolean openInNewWindow,
String launchWindowName,
String launchWindowFeatures)
| Method Detail |
|---|
public String getName()
public String getProperty(String key)
public Map getProperties(boolean bDynamic)
bDynamic - if true returns only dynamic properties else only static.
public String getShortText(Locale locale)
locale -
public String getLongText(Locale locale)
locale -
public Descriptions getDisplayNames()
public boolean isGroupAction()
public String getHandler()
public Map getPublicAndPrivateProperties()
public Map getProperties()
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getReferenceBundle()
public Descriptions getConfirmActionDescriptions()
Descriptionspublic void setConfirmActionDescriptions(Descriptions descriptions)
Descriptions for the confirmation text.
descriptions - public boolean openInNewWindow()
public void setOpenInNewWindow(boolean b)
b - public String getNewWindowFeatures()
openInNewWindowpublic String getNewWindowName()
public void setNewWindowFeatures(String string)
string - public void setNewWindowName(String string)
string - public boolean isReturnToDetailViewAllowed()
public void setReturnToDetailViewAllowed(boolean b)
b - public boolean isShared()
public void setShared(boolean bSet)
public boolean isDisable()
public void setDisable(boolean b)
b - public CompoundExpression getValidityCriteria()
public void setValidityCriteria(CompoundExpression expression)
expression - public String getGroupName()
public void setGroupName(String string)
string - public boolean isDefaultGroupAction()
public void setDefaultGroupAction(boolean b)
b - public boolean isOpenInNewWindowWithPortalFrame()
public void setOpenInNewWindowWithPortalFrame(boolean b)
b - public String getWdPortalNavigationMode()
public void setWdPortalNavigationMode(String wdPortalNavigationMode)
wdPortalNavigationMode - The wdPortalNavigationMode to set.
|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||