Show Table of Contents
Chapter 20. Salience State Example
20.1. Salience State Example: State Class Example
public class State {
public static final int NOTRUN = 0;
public static final int FINISHED = 1;
private final PropertyChangeSupport changes =
new PropertyChangeSupport( this );
private String name;
private int state;
... setters and getters go here...
}- Each
Stateclass has fields for its name and its current state (see the classorg.drools.examples.state.State). The two possible states for each objects areNOTRUNandFINISHED.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.