1. Concepts
  2. Program

Concepts

Program

The program is the flow that a stub follows

Basic Principle

The program of a stub consists of the specific flow that the stub follows.
The program is simply the template, context and branch that the stub is following.

A stub can change the program it is following by using the morph task and specifiying a new template, context or branch.

Program Data Structure

Here is an example of the program data structure inside a stub :

        {
  "program": {
    "templateuuid": "[templateuuid]",
    "branch": "[branch]",
    "context": "[context]"
  }
}

      

You can access the program data structure in your templates by using the stub.program variable.