|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents activity placed in a block structure. Defines transitions to another items in the same block or to the end of block i.e. terminal transitions. Defines exception hanlders for actions, that is activities to be invoked in case of a process exception thrown by the internal callable object. Block items can be optional. This means that the corresponding activity can be executed or skipped at runtime, based on a user decision.
| Method Summary | |
IGPModifiableRoleInfo |
getActionRole()
Get the action default role if this item refers to an IGPAction. |
IGPModifiableActivity |
getActivity()
|
IGPExceptionHandler |
getExceptionHandler(String excTechName)
Get the exception handler for a given exception technical name or null, if no such is specified. |
Iterator |
getExceptionHandlers()
Get the exception handlers defined for this item. |
IGPOptionalItemInfo |
getOptionalInfo()
Get the optional item properties. |
IGPModifiableBlockStructure |
getParent()
|
Iterator |
getTerminalResultStates()
Get the result states that are defined to be terminal. |
Iterator |
getTransitions()
Get the transitions defined for this block item. |
IGPModifiableBlockStructureItem |
getTransitionTarget(String resultStateName)
Returns the transition target for a certain result state. |
boolean |
isOptional()
Test if this item is defined to be optional. |
boolean |
isTerminalTransition(String resultStateName)
Test if some result state transitions to the end of the enclosing block. |
void |
removeExceptionHandler(String excTechName)
Removes the ExceptionHandler for a given exception technical name. |
void |
removeTerminalTransition(String resultStateName)
Delete the transition from a specified result state to the end of block. |
void |
removeTransitionTarget(String resultStateName)
Removes a transition target. |
IGPExceptionHandler |
setExceptionHandler(String excTechName,
GPExceptionHandlingStrategy strategy,
IGPModifiableActivity activity)
Constructs an exception handler with the given properties and attaches it to this item. |
void |
setOptional(boolean optional)
Set wether this item should be optional or not. |
void |
setTerminalTransition(String resultStateName)
Adds a transition to the end of the enclosing block. |
void |
setTransitionTarget(String resultStateName,
IGPModifiableBlockStructureItem targetItem)
Adds a transition target for a certain result state name. |
| Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPBlockStructureItem |
containsRole, getContainedTemplateInformation, getID, getParentInformation, getRoleInfos, isAction, isBlock |
| Methods inherited from interface com.sap.caf.eu.gp.base.api.IGPObjectReference |
getInputMapping, getOutputMapping, getReferencedObject, setInputMapping, setOutputMapping |
| Method Detail |
public IGPModifiableBlockStructure getParent()
public IGPModifiableActivity getActivity()
throws GPEngineException,
GPInvocationException
GPEngineException
GPInvocationExceptionpublic IGPModifiableBlockStructureItem getTransitionTarget(String resultStateName)
public void setTransitionTarget(String resultStateName,
IGPModifiableBlockStructureItem targetItem)
throws GPInvocationException
GPInvocationException - if:
- this BlockStructureItem does not refer to an Action
- the referred Action does not contain the specified resultStateName
- the target BlockStructureItem does not existpublic void removeTransitionTarget(String resultStateName)
public Iterator getTransitions()
throws GPEngineException,
GPInvocationException
IGPTransition objects
GPEngineException
GPInvocationException
public void setTerminalTransition(String resultStateName)
throws GPInvocationException
GPInvocationExceptionpublic boolean isTerminalTransition(String resultStateName)
resultStateName - the name of the result state
public void removeTerminalTransition(String resultStateName)
resultStateName - name of the terminal result state
public Iterator getTerminalResultStates()
throws GPInvocationException,
GPEngineException
IGPResultStateInfo objects
GPInvocationException
GPEngineException
public IGPExceptionHandler setExceptionHandler(String excTechName,
GPExceptionHandlingStrategy strategy,
IGPModifiableActivity activity)
throws GPInvocationException
excTechName - technical name of the exceptionstrategy - exception handling strategyactivity - activity
IGPExceptionHandler
GPInvocationException - if:
- this BlockStructureItem does not refer to an Action
- the activity argument is not an active version of Action or Block
- the activity argument is a Block, which contains ExceptionHandlers itselfpublic IGPExceptionHandler getExceptionHandler(String excTechName)
null, if no such is specified.
excTechName - the technical name of the exception
null
public void removeExceptionHandler(String excTechName)
throws GPInvocationException
excTechName - the technical name of the exception
GPInvocationException - if this BlockStructureItem does not refer to an Actionpublic Iterator getExceptionHandlers()
IGPExceptionHandlerpublic boolean isOptional()
true if this item is optional; false otherwise.
public void setOptional(boolean optional)
throws GPInvocationException
getOtionalItemInfo to access and adjust the optional item properties.
optional -
GPInvocationExceptionpublic IGPOptionalItemInfo getOptionalInfo()
null if this item is not optional.
public IGPModifiableRoleInfo getActionRole()
throws GPInvocationException
IGPAction.
GPInvocationException - if this item is not an action
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||