@UESComponent @EnableScriptAPI public interface UESProcess
Modifier and Type | Method and Description |
---|---|
void |
completed(UESMessage message)
Method marks use case as completed.
|
void |
completedFinal(UESMessage message)
Method marks use case as finished.
|
void |
completedWithError(UESMessage message,
Method marks use case as failed.
|
void |
completedWithWarning(UESMessage message,
Method marks use case as completed with warnings.
|
void |
fireActiveEvent(UESProcessEvent processEvent)
Method is used for invocation of general active process event (alternative to using methods info, warning and progress).
|
void |
fireCompletedEvent(UESProcessEvent processEvent)
Method is used for invocation of general completed process event (alternative to using methods completed, completedWithWarning,
completedWithError and completedFinal).
|
UESURI |
getCurrentProcessUri()
Returns UESURI of currently active process or null if there is no active process.
|
UESProcessResult |
getResult(long timeout,
Method searches all subprocesses of recent use case process and returns first result matching provided event codes within given
timeout.
|
void |
info(UESMessage message)
Method send info notification from use case.
|
boolean |
isProcessEventToActivityPropagationEnabled()
Method used to read configuration of propagation of process events to activity from which was process launched.
|
void |
progress(UESMessage message)
Method is used for informing user of use case progress.
|
void |
setProcessEventToActivityPropagationEnabled(boolean enabled)
Method used to configure propagation of process events to activity from which was process launched.
|
void |
start(UESMessage message,
Method should be called on the beginning of use case.
|
void |
warning(UESMessage message,
Method send warning notification from use case.
|
enabled
- true/falsemessage
- Message for user (may be null)totalSteps
- Total steps to be donemessage
- Message for usermessage
- Message for userexception
- Exception which caused problem (may be null)message
- Message for user (may be null)processEvent
- UESProcessEvent DTOmessage
- Message for user (may be null)message
- Message for user (may be null)exception
- Instance of exception caused warning (may be null)message
- Message for user (may be null)exception
- Instance of exception caused error (may be null)message
- Message for user (may be null)processEvent
- UESProcessEvent DTOtimeout
- Timeout in milliseconds (0 for maximum (8 hours) timeout, negative value for returning immediate result).eventCodes
- List of event codes (regular expressions may be used)