SOURCECODE |
How to... change Processesī start behavior
Description:
If the Process has a certain task after beeing resumed or startet, one way to accomplish this is to change itīs start behavior.
(See also: HowTo..incorporate a SaleProcess, HowTo..change Processesī quit behavior )
ToDo's:
- Select SaleProcess where you want to change behavior while starting.
- Implement
protected void onResumeOrStart(boolean fIsResume)
method to invoke a special start behavior.
(fIsResume = false, if Process was startet and not suspended and resumed yet
fIsResume = true, if Process was resumed)
Uses:
SaleProcess
1
// Main Class
public class RentProcess extends SaleProcess
{
2
// Method has to be overwritten (and filled with code)
protected void onResumeOrStart(boolean fIsResume)
{
//...
}
}