Goals and tasks are added using the Add menu as shown below.
Flow actions AddGoal and AddTask is responsible for adding the new Goals and Tasks.
They inturn invoke the AddGoal and AddTask sections of PegaPS-Data -Config-Goal and PegaPS-Data-Config-Task classes, using the clipboard page properties Goal and Task.
Once the details are captured in the Goal and Task properties, on submit these details are appended to the GoalsList and TasksList properties respectively. And this processing is done by PostAddGoal and PostAddTask data transforms in PegaPs-Data-Config-Plan class.
Goal can be added to plan by selecting an existing one from the Goal repository or by added a brand new one as shown in the screenshots below.
Similarly, Task can be added to plan either by selecting from existing task repository or by creating a new task.