You are here:
Other Paths to Take
To perform other tests, change something, run the State Model again, and see if the results are what you expect. Here are some suggested changes and the expected results.
Change | Expected Result |
|---|---|
Assign an F grade. |
The State Model ends in the Failed state. |
Change the grade before clicking the Completed state. |
The State Model transitions directly from the Enrolled state to the Completed state. |
Run one test each with B, C, and D grade assignments. |
Emails are sent successfully and list the correct grades. |
Make the Contact inactive. |
The State Model can't progress past the Incomplete state regardless of the assigned grade. |
What's Next
This is the last task in the current and parent workflows. After you have learned the basics of how to create a State Model, you can learn about additional State Model features and more complex industry-specific State Models.
-
More complex State Transition Rule examples — see State Transition Rule Examples.
-
How to use an On Creation Action if a State Model requires initialization when a new base object record is created — see Workflow for Using a Trigger and an On Creation Action.
-
How to automate a state transition and its action using a scheduled batch job — see Automatic State Model Transitions.
-
How to set up caching for State Model data — see Workflow for Setting Up Caching for State Models.
-
How to create a custom Apex class for State Transition Rule evaluation — see Custom Rule Evaluator Class.

