{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":35766,"path":"now-intelligence/performance-analytics/generating-tasks-kpi-composer.md","title":"Generating tasks in KPI Composer","bundle":null,"doc_type":null,"release":"australia","body":"\n# Generating tasks in KPI Composer\n\nFor each KPI Composer artifact in your project, you can generate a task to create an equivalent Performance Analytics element. All tasks are created with one action. The tasks are assigned automatically to the responsible group for implementing analytics.\n\nTasks can be generated to create the following Performance Analytics and Reporting elements based on the definitions in your KPI Composer project. The tasks are generated for each type of element in this order:\n\n-   Breakdowns\n-   Reports\n-   Interactive Filters\n-   Indicators\n-   Widgets\n-   Spotlight groups\n-   Content Blocks\n-   Dashboards\n\n**Important:** To generate a task to create an element, the associated KPI Composer artifact definition must include all the required information. For example, to generate a task to create a breakdown or an automated indicator, the Name and the Facts Table must be specified in their definitions.\n\n\\[Omitted image \"kpi-comp-required-bkdown-info.png\"\\] Alt text: Definition of the Priority breakdown showing Name and Facts Table values.\n\n**Parent Topic:**[Design your Performance Analytics solution with KPI Composer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/now-intelligence/performance-analytics/designing-pa-solution.md)\n\n## Assign KPI Composer tasks\n\nAssign the tasks in a KPI Composer project to a group. By default, tasks are assigned to the Analytics Implementers assignment group. You can add users and groups to this group, or you can select a different assignment group.\n\n### Before you begin\n\nRole required: sn\\_kpi\\_composer.user, sn\\_kpi\\_composer.admin, admin\n\n### About this task\n\nAll tasks in a KPI Composer project are assigned to the same assignment group. After you generate tasks, the group handles them through its normal workflow.\n\nBy default, tasks are assigned to the Analytics Implementers group, which is provided with KPI Composer. This group includes the pa\\_admin role by default. Any users whom you add to this group are granted this role. Access this group from **User administration** &gt; **Groups**, or follow the **Analytics Implementers** link on the Tasks tile in the Review tab. You need the user\\_admin role to edit this group. For more information about adding and removing users from this group, see [Create a user group](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_CreateAGroup.md).\n\nTo change the assignment group, follow this procedure:\n\n### Procedure\n\n1.  Open your KPI Composer project.\n\n2.  Open the **Review** tab.\n\n3.  Locate the **Tasks** tile.\n\n4.  Find and select the **Clear** icon next to the name of the current assignment group.\n\n    \\[Omitted image \"kpi-comp-clear-asgmt-group.png\"\\] Alt text: Tasks tile in the Review tab of a KPI Composer project with the cursor on the Clear icon.\n\n5.  Confirm that you want to clear the assignment group.\n\n6.  Begin typing the name of the assignment group you want.\n\n    KPI Composer gives you a list of predicted matches.\n\n    \\[Omitted image \"kpi-comp-new-assgmt-group.png\"\\] Alt text: Typing part of the name of an assignment group and being offered matches.\n\n7.  Select a group.\n\n\n### What to do next\n\nGenerate tasks to assign them to the selected group.\n\n## Generate tasks\n\nGenerate tasks for all sufficiently defined KPI Composer artifacts with a single action.\n\n### Before you begin\n\n-   Populate the Analytics Implementers group with users.\n-   Complete designing your KPI Composer project. The necessary artifacts should all be defined. However, if you change something later, you can regenerate the tasks. Regenerating tasks is a good way to track their completion.\n\nRole required: sn\\_kpi\\_composer.user, sn\\_kpi\\_composer.admin, admin\n\n### Procedure\n\n1.  Navigate to KPI Composer and open your fully defined project.\n\n2.  Open the Review tab.\n\n3.  Locate the Tasks tile.\n\n4.  Select **Generate tasks**.\n\n\n### Result\n\nYou generate tasks for creating Performance Analytics and Reporting artifacts. These tasks are assigned automatically to the Analytics Implementers assignment group.\n\n### What to do next\n\nView the tasks you have created. In the Tasks tile, you have links to active tasks, tasks on hold, and completed tasks. The links take you to the Task Definitions \\[sn\\_kpi\\_composer\\_task\\_definition\\] table.\n\n## Task Definition records\n\nKPI Composer tasks are defined in Task Definition \\[sn\\_kpi\\_composer\\_task\\_definition\\] records. When you generate tasks, you create these records or update their statuses.\n\nYou can access any existing Task Definition records from links on the Tasks tile of the Review tab. These links take you to a filtered list of records, as follows:\n\n<table id=\"table_onw_z2t_hrb\"><thead><tr><th>\n\nLink\n\n</th><th>\n\nFilter\n\n</th></tr></thead><tbody><tr><td>\n\nActive Tasks\n\n</td><td>\n\n-   Project CONTAINS &lt;Your project name&gt;\n-   Status in \\(Create, Update\\)\n-   Waiting on dependencies = false\n\n</td></tr><tr><td>\n\nTasks on hold\n\n</td><td>\n\n-   Project CONTAINS &lt;Your project name&gt;\n-   Status in \\(Create, Update\\)\n-   Waiting on dependencies = true\n\n</td></tr><tr><td>\n\nCompleted tasks\n\n</td><td>\n\n-   Project CONTAINS &lt;Your project name&gt;\n-   Status = OK\n\n</td></tr></tbody>\n</table>### Task statuses\n\nWhen you run the task generator, it determines the status of all tasks. Task generation uses the following logic to create tasks and set their statuses:\n\n1.  Does the KPI Composer artifact still exist? If not, the status is Deleted.\n2.  Does the existing KPI Composer artifact have a valid definition? If not, the status is Incomplete.\n3.  Does the valid KPI Composer artifact definition link to an existing ServiceNow AI Platform element, such as a Performance Analytics indicator or CMS content block? If not, the status is Create.\n4.  If the linked element exists and the status was previously set to OK, was the artifact definition subsequently updated? If so, the status is Update.\n5.  Otherwise, if the linked element exists, the status is OK.\n\n\\[Omitted image \"kpi-comp-task-definition.png\"\\] Alt text: Logic of the task generation job resulting in a task definition record status of: Deleted, Incomplete, Create, OK, or Update.\n\n### Artifact update tracking\n\nTask generation checks all task definitions, including those with the status OK. If the artifact definition has changed since the task status was set to OK, the next task generation job changes the task status to Update. The fields in the artifact definition that are checked for changes depend on the artifact type. Changes to other, related artifacts can also result in the status changing to Update. The following table lists the fields and the related artifacts.\n\n|Artifact definitions|Fields|Related artifact changes|\n|--------------------|------|------------------------|\n|Breakdown|Condition| |\n|Facts Table| |\n|Name| |\n|Indicator|Aggregation|Added breakdown|\n|Condition|Removed breakdown|\n|Direction| |\n|Facts Table| |\n|Formula| |\n|Frequency| |\n|indicator Type| |\n|Name| |\n|Report|Aggregation| |\n|Condition| |\n|Description| |\n|Facts Table| |\n|Name| |\n|Report Source| |\n|Source Type| |\n|Interactive Filter|UI control type| |\n|Title| |\n|Description| |\n|Interactive filter| |\n|PA Widget|Widget type| |\n|Visualisation type| |\n|Title| |\n|Description| |\n|Follow element| |\n|Time series| |\n|Artifacts| |\n|Spotlight|Title| |\n|Description| |\n|Artifacts| |\n|Dashboard|Name|Added breakdown|\n|Description|Removed breakdown|\n| |Changed canvas layout - reorder / delete / add canvas|\n\n## Task flows\n\nKPI Composer tasks utilize flows created with the ServiceNow AI Platform® Flow Designer.\n\nKPI Composer provides two flows to manage the transition between task states:\n\n-   KPI Composer - Analytics Task flow\n-   KPI Composer - Task Definition flow\n\nYou can modify either of these flows in the Flow Designer. However, rather than modifying them directly, you should copy the flows and modify the copies. Make the copies active and deactivate the provided flows. The reason to do this is that updates to KPI Composer may include updates to the flows. If you change the provided flows, updates to them may fail. Instead, after an update, you can examine the provided flows for changes. Incorporate these changes in your copied flows.\n\nThe following diagrams summarize the provided flows:\n\n\\[Omitted image \"kpi-comp-analytics-task-flow.png\"\\] Alt text: KPI Composer - Analytics Task Flow.\n\n\\[Omitted image \"kpi-comp-task-def-flow.png\"\\] Alt text: KPI Composer - Task Definition flow\n\n**Related topics**  \n\n\n[Flow Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/flow-designer.md)\n\n"}}