Creating InBasket Task ItemType
Copy
By default, the configurable InBasket supports Workflow Tasks. However, you can now create and add new Task/Activity ItemTypes to the InBasket Task.
Let us consider an example of creating a Meeting Task ItemType and adding it to the InBasket Task Item. Creating InBasket Task ItemType involves four main procedures. The procedures are described in the following sections.
Creating an ItemType
- Log on to Aras Innovator with administrative privileges.
Select Administration > ItemTypes. The following menu appears:
Figure 6.
- Select Create New ItemType. The ItemType window appears.
Figure 7.
- Enter Meeting in the Name field and click
. In the Properties tab, click the New Property icon
and add the Meeting ItemType properties as defined in Table 3.
Table 2: The Meeting ItemType properties
| Property Name | Label | Data Type | Data Source | Length |
| assigned_to | Assigned To | item | Identity | |
| container | Source Item | item | Document | |
| container_type_id | Container Type | item | ItemType | |
| due_date | Due Date | date | ||
| instructions | Instructions | string | 1024 | |
| item | Work Item | item | Part | |
| item_type_id | Item Type | item | ItemType | |
| my_assignment | My Assignment | boolean | ||
| name | Activity | string | 128 | |
| start_date | Start Date | date | ||
| status | Status | String | 64 | |
| icon | Icon | Image | ||
| language_code_filter | Language Code Filter | String | 3 |
- In the TOC Access tab, add users (Identities), who should be able to see the ItemType in the TOC Pane so that they can select the Item.
- In the Can Add tab, add users (Identities), who can add a new Item of this type to the database.
- In the Permissions tab, add users (Identities) to indicate the access rights to the ItemType.
- Click the Save and Done buttons to save and unlock.
Configure InBasket Task ItemType (Meeting Task ItemType)
- Log on to Aras Innovator with administrative privileges.
- Navigate to Administration --> ItemType.
- From the grid, search for InBasket Task Item, double-click on it and then click
to open the Item for editing. In the Poly Sources tab, click
to add a new related Item. The Select Items ItemTypes search dialog box appears.Figure 8.
- Enter Meeting in the Name field to search for the Meeting ItemType. In our example, we create a Meeting Task Item as a related Item with the following properties on the Properties tab
Table 3: The Meeting ItemType properties
| Property Name | Label | Data Type | Data Source | Length |
| assigned_to | Assigned To | Item | Identity | |
| container | Source Item | Item | NULL (or any value) | |
| container_type_id | Source Item | Item | ItemType | |
| due_date | Due Date | Date | ||
| instructions | Instructions | String | 1024 | |
| item | Work Item | Item | NULL (or any value) | |
| item_type_id | Item Type | Item | ItemType | |
| my_assignment | My Assignment | Boolean | ||
| name | Activity | String | 128 | |
| start_date | Start Date | Date | ||
| status | Status | String | 64 | |
| icon | Icon | Image | ||
| language_code_filter | Language Code Filter | String | 3 |
- Add the following forms to the Views tab.
Table 4: The Views tab forms
| Form Name | Type | Description |
| Meeting Task | Default | Form to be displayed to the user for actions such as View, Edit, and so on related to the Meeting ItemType. |
| Meeting Task Complete | Complete | An empty form/or a placeholder used when the Meeting Task is Complete. |
- In the TOC Access tab, add users (Identities), who should be able to see the ItemType in the TOC Pane so that they can select the Item.
- In the Can Add tab, add users (Identities), who can add a new Item of this type to the database.
- In the Permissions tab, add users (Identities) to indicate the access rights to the ItemType.
- Click Class Structure. Add a node for Meeting Task.
- Click Save and Done to save and unlock the ItemType.
SQL Table and View Execution
- Log on to Aras Innovator with administrative privileges.
- Navigate to Administration --> SQLs.
- Create a SQL View to drop the Meeting table:
- Click File --> New or use the right mouse button (right-click) and select New SQL from the context menu.
- The SQL window appears. Configure the following properties:
- Name = Meeting_Task_Step1_Drop Type = Table Execution Flag = Manual SQL:
IF EXISTS (SELECT * FROM sys.tables WHERE object_id = OBJECT_ID(N'[innovator].[Meeting_Task]’)) DROP TABLE [Meeting_Task] IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[innovator].[Meeting_Task]’)) DROP VIEW [Meeting_Task] - Click Save and click Unlock to save and unlock the SQL Item.
- Navigate to Actions --> SQL Execute in the SQL window.
- Verify and ensure that table [innovator].[ Meeting_Task] is dropped from your database.
- Create a temporary view for Meeting Task ItemType
- Navigate to Administration --> SQLs.
- Click File --> New or use the right mouse button (right-click) and select New SQL from the context menu.
- The SQL window appears. Configure the following properties:
Name = Meeting_Task_Step02_Create_Tmp_View
Type = View
Execution Flag = Manual
SQL
CREATE VIEW [Meeting_Task_Step02_Create_Tmp_View] AS SELECT STUFF(MEETING_TASK.id, 13, 1, '0') AS ID, MEETING_TASK.ASSIGNED_TO AS ASSIGNED_TO, MEETING_TASK.ITEM AS ITEM, MEETING_TASK.Item_TYPE_ID AS ITEM_TYPE_ID, MEETING_TASK.START_DATE AS START_DATE, MEETING_TASK.Due_DATE AS DUE_DATE, MEETING_TASK.INSTRUCTIONS AS INSTRUCTIONS, '1' AS MY_ASSIGNMENT, MEETING_TASK.NAME, MEETING_TASK.CONTAINER AS CONTAINER, MEETING_TASK.CONTAINER_TYPE_ID AS CONTAINER_TYPE_ID, MEETING_TASK.STATUS AS STATUS, MEETING_TASK.Agenda AS AGENDA, it.open_icon AS ICON, MEETING_TASK.CLASSIFICATION, MEETING_TASK.KEYED_NAME, MEETING_TASK.CREATED_ON, MEETING_TASK.CREATED_BY_ID, MEETING_TASK.OWNED_BY_ID, MEETING_TASK.MANAGED_BY_ID, MEETING_TASK.MODIFIED_ON, MEETING_TASK.MODIFIED_BY_ID, MEETING_TASK.CURRENT_STATE, MEETING_TASK.STATE, MEETING_TASK.LOCKED_BY_ID, MEETING_TASK.IS_CURRENT, MEETING_TASK.MAJOR_REV, MEETING_TASK.MINOR_REV, MEETING_TASK.IS_RELEASED, MEETING_TASK.NOT_LOCKABLE, MEETING_TASK.CSS, MEETING_TASK.GENERATION, MEETING_TASK.NEW_VERSION, MEETING_TASK.CONFIG_ID, MEETING_TASK.PERMISSION_ID, MEETING_TASK.TEAM_ID, lang.code AS language_code_filter FROM innovator.Meeting AS MEETING_TASK INNER JOIN innovator.ITEMTYPE AS it on it.name = N'Meeting Task' LEFT OUTER JOIN innovator.LANGUAGE AS lang ON lang.ID is NOT NULL - Click Save and Done to save and unlock the SQL Item.
- Navigate to Actions --> SQL Execute in the SQL window.
- Make sure that temporary View with name Meeting_Task_Step02_Create_Tmp_View is created in your database.
- Rename view for Meeting Item Type.
- Navigate to Administration --> SQLs.
- Click File --> New or use the right mouse button (right-click) and select New SQL from the context menu.
- The SQL window appears. Configure the following properties:
Name = Meeting_Task_Step03_Rename_View
Type = Table
Execution Flag = Manual
SQL:sp_rename ‘Meeting_Task_Step02_Create_Tmp_View’, ‘Meeting_Task’ - Click Save and Done to save and unlock the SQL Item.
- Navigate to Actions --> SQL Execute in the SQL window.
- Make sure that temporary view
Meeting_Task_Step02_Create_Temp_Viewis renamed to Meeting.
Viewing New InBasket Task ItemType
- Log on to Aras Innovator with administrative privileges.
Click Meetings in the TOC. In our example, we created a Meeting ItemType. The following menu appears:
Figure 9.
- Click CreateNew Meeting to create an instance of Meeting ItemType.
- Provide the required information for the Meeting ItemType:
- Container: Document
- Name: Meeting Task
- StartDate: Today
- DueDate: Today+1
- Status: Active
- Assignedto: Administrators
- Instructions: Activity Instructions 1
- Item: Doc_1 (create if necessary)
- Click Save, Done and Close.
- Navigate to My Innovator --> InBasket.
- Execute search.
The Meeting Task appears in the InBasket.
Figure 10.