public interface IResourceTransition
IResourceTransition
handles everything needed for a document to go from one state to another. It
defines the state that is reached from another specific state and it defines whether the transition is allowed. One
instance of an IResourceTransition
handles one transition per resource.Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Changes the state of the current resource to the target state of
the transition.
|
String |
getDescription()
Gets a meaningful lable for the presentation of the transition
in the UI.
|
String |
getExecMessage()
Gets a message after method
execute() has been called. |
String |
getID()
Gets the ID of the transition.
|
boolean |
isAllowed()
Checks whether the transition is allowed for the current resource.
|
boolean isAllowed() throws WcmException
WcmException
- exception raised in failure situationboolean execute() throws WcmException
WcmException
- exception raised in failure situationString getExecMessage() throws WcmException
execute()
has been called.
This method is used by the UI to provide a message for the user after
a transition has been executed.
Returns null if execute() has not yet been called.WcmException
String getID()
String getDescription()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice