Batch
ProcessUpdateListener
ProcessPauseListener
ProcessResumeListener
ProcessStartListener
ProcessFinishListener
ProcessErrorListener
BatchProcess
is a implementation of Batch for a list of
Processes.
A BatchProcess
acts like a row execution of Process
instances. All listed processes will be executed after each other.
As BatchProcess
itself acts like a Process you can use it as a
composite to execute a BatchProcess
within another
BatchProcess
.
It supports beneath all listeners of Process seperate events for
Batch
processing:
BatchStartListener, BatchFinishListener,
BatchUpdateListener and BatchErrorListener
new BatchProcess()
public function setParentProcess(p:Process):Void
Setter for the parent process
p | Process to be set as parent |
IllegalArgumentException | if the passed process has the current instance as a parent process (recursion safe). |
setParentProcess() in org.as2lib.app.exec.Process
public function getParentProcess(Void):Process
Getter for the applied parent process.
Parent process or null if no parent process has been set.
getParentProcess() in org.as2lib.app.exec.Process
public function getCurrentProcess(Void):Process
Getter for the currently execution process.
Currently processing Process.
public function getAllAddedProcesses(Void):Array
Getter for a list of all added processes with addProcess in form of a array.
Array that contains all processes that has been added.
public function onProcessFinish(info:Process):Void
To be executed if one child process has been finished.
info | Finished Process. |
onProcessFinish() in org.as2lib.app.exec.ProcessFinishListener
public function onProcessStart(info:Process):Void
Void implementation of ProcessStartListener.onProcessStart
info | to the process that has been started. |
onProcessStart() in org.as2lib.app.exec.ProcessStartListener
public function onProcessPause(info:Process):Void
Implementation of ProcessPauseListener.onProcessPause that redirects to internal eventbroadcasting.
info | to the process that has been paused. |
onProcessPause() in org.as2lib.app.exec.ProcessPauseListener
public function onProcessResume(info:Process):Void
Implementation of ProcessResumeListener.onProcessResume that redirects to internal eventbroadcasting.
info | to the process that has been resumed. |
onProcessResume() in org.as2lib.app.exec.ProcessResumeListener
public function onProcessError(info:Process, error):Boolean
Implementation of ProcessErrorListener.onProcessError that redirects to internal eventbroadcasting.
info | to the process that has thrown the error. |
onProcessError() in org.as2lib.app.exec.ProcessErrorListener
public function onProcessUpdate(info:Process):Void
Implementation of ProcessUpdateListener.onProcessUpdate that redirects to internal eventbroadcasting.
info | to the process that got updated. |
onProcessUpdate() in org.as2lib.app.exec.ProcessUpdateListener
public function start()
public function addProcess(p:Process):Number
Adds a process to the list of processes.
p | Process to be added. |
Internal Id of the process.
public function removeProcess(p:Process):Void
Removes a process from the list of executed processes.
If a process has been added more than one times, it removes all executions.
p | Process to be removed. |
removeProcess() in org.as2lib.app.exec.Batch
public function removeProcessById(id:Number):Void
Removes a process by its internal id.
addProcess returns the internal id of a added process. This method helps to remove concrete reference to the process.
id | Internal Id of the process. |
removeProcessById() in org.as2lib.app.exec.Batch
public function getPercentage(Void):Number
Getter for the current percentage of execution.
getPercentage() in org.as2lib.app.exec.Process