SalesPoint Framework v3.0

HotSpot: Processes


Description

The hooks in this hotspot concern themselves with processes. Processes are the core element of the framework for implementing dynamic behavior. There should be approximately one process for every use case in your application.

Processes are implemented as finite deterministic automata, which in turn can be represented by state machines. The states of a process are implemented by implementing the sale.Gate interface (See the Define a Gate hook). The transitions are implementations of the sale.Transition interface (see the Define a Transition hook).

For a more detailed review of the process concept see " Concepts: Processes " in the technical overview documentation.

 

Hooks
Create a transition that just changes to a gate A new transition must be created that just changes to another gate without performing any special action.
Define New Error Code A new type of error can occur in a process and a message and error code need to be assigned.
Define Process Shutdown behavior Some action needs to be performed whenever the process is suspended or at the end of a process regardless of whether the process was suspended or finished normally.
Define Process StartUp Some action needs to be performed, whenever the process gets started or resumed.
Define Quit Conditions For Process A process is needed, that cannot be cancelled or suspended or that places non-standard conditions on the two operations.
Define a Gate A new gate must be defined as part of a process.
Define a Transition A new transition must be defined as part of a process.
Define a new process A new process needs to be implemented to allow application users to perform activities on a point of sale, such as buying goods, asking things to be repaired, change, maintain or update catalogs or stocks, etc.
Incorporate a new process A new process needs to be incorporated into the application.
Incorporate a process that does not need user interaction A process needs to be started, but does not need user communication.
Incorporate a process that needs user interaction A process needs to be hooked to a SalesPoint where it can be started, because it needs user interaction to run correctly.
Select a Transition that changes to a special process gate A transition is needed that does nothing but change to another gate.

 


SalesPoint Framework v3.0