public class NullExecution extends ExecutionEnvironment
Activity by
ActivityInstance
The null execution just signals an application closed to the runtime
environment and returns. This can be used for nodes with no executable
business process, for instance, split or join nodes.ExecutableComponent.SignalsactData, activityInstance, localisedActInst, logger, sessionContext, SUSPEND_SAVEPOINTCONF_DATA_DIRECTORY, CONF_LIB_DIRECTORY, CONF_LOG_DIRECTORY, UNLOADING_CLASS_METHOD| Constructor and Description |
|---|
NullExecution(ActivityInstance activityInstance)
Creates a new
NullExecution for the designated activity with
a logger for this class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Returns false - overwrite this method to support closing.
|
boolean |
kill()
Returns false - overwrite this method to support killing.
|
boolean |
reset()
Returns false - overwrite this method to support reset.
|
void |
run()
Signals an application close to the the runtime environment and returns.
|
boolean |
signal(int signal)
Returns false - overwrite this method to support signalling.
|
boolean |
suspend()
Returns false - overwrite this method to support suspending.
|
commit, createActivityData, getApplicationState, getApplicationState, getRawApplicationState, getRawApplicationState, init, initResume, prepareCommit, requireGUIContext, rollback, setApplicationState, setApplicationState, setRawApplicationState, setRawApplicationStatepublic NullExecution(ActivityInstance activityInstance)
NullExecution for the designated activity with
a logger for this class. The constructor sets the necessary fields by
calling the constructor of the superclass.activityInstance - The activity instance for this
NullExecution.public void run()
run in interface ExecutableComponentrun in class ExecutionEnvironmentpublic boolean close()
ExecutionEnvironmentInstructs the component to terminate. Within this method the component should deallocate all allocated resources.
close in interface ExecutableComponentclose in class ExecutionEnvironmentfalsepublic boolean reset()
ExecutionEnvironment
Instructs the component to reset. This is quite similar to ExecutableComponent.kill()
but the application does not fail but terminate normally (by calling
RuntimeEnvironment.applicationReset(). The component will be
re-initialised and executed again later.
reset in interface ExecutableComponentreset in class ExecutionEnvironmentfalsepublic boolean signal(int signal)
ExecutionEnvironmentSignals an event to the application.
signal in interface ExecutableComponentsignal in class ExecutionEnvironmentsignal - Ignored.falsefor possible signals. Usually the ones that have corresponding methods, e. g.
{@link Signals#SUSPEND} or {@link Signals#CLOSE}, will not be signaled via this method.public boolean suspend()
ExecutionEnvironmentInstructs the component to store its internal state to the data context and to terminate at once. The application should be able to continue its job later when resuming.
suspend in interface ExecutableComponentsuspend in class ExecutionEnvironmentfalsepublic boolean kill()
ExecutionEnvironmentEnforces the application to abort its execution at once. In the case of running a internal transaction application should abort the transaction and should rollback. Within this method the component should deallocate all allocated resources.
kill in interface ExecutableComponentkill in class ExecutionEnvironmentfalse