Examples of How a Job is Created
Example 1
Assign a computer to a configuration group through the helpdesk system.
Table EmpExtSubscribers
| ID | Name | ExpirationDate |
|---|---|---|
| 1 | HelpDesk | 09.10.2008 |
Table EmpTaskQueue
| ID | ID_EmpExtSubscribers | Priority | Name | ActionType | ActionCode | TargetObjectType |
|---|---|---|---|---|---|---|
| 42 | 1 | NULL | Client1 | 5 | 10 | 1 |
| Status | AllOrNothing | InsertTimeStamp | ErrorCode | ErrorText | LastUpdate |
|---|---|---|---|---|---|
| 1 | NULL | 16.11.2007 15:51:40 | NULL | NULL |
Table EmpTaskParam
| ID | ID_EmpTaskQueue | Name | Value | ParentID | Sequence | HasChildren |
|---|---|---|---|---|---|---|
| 129 | 42 | ClientName | Client1 | 0 | 0 | 0 |
| 130 | 42 | Domain | Matrix42 | 0 | 0 | 0 |
| 131 | 42 | GroupPath | Matrix42/sales | 0 | 0 | 0 |
Example 2
Activate a computer to be able to install the assigned software.
Table EmpExtSubscribers
| ID | Name | ExpirationDate |
|---|---|---|
| 1 | HelpDesk | 09.10.2008 |
Table EmpTaskQueue
| ID | ID_EmpExtSubscribers | Priority | Name | ActionType | ActionCode | TargetObjectType |
|---|---|---|---|---|---|---|
| 43 | 1 | NULL | Client1 | 5 | 20 | 1 |
| Status | AllOrNothing | InsertTimeStamp | ErrorCode | ErrorText | LastUpdate |
|---|---|---|---|---|---|
| 1 | NULL | 16.11.2007 15:51:40 | NULL | NULL |
Table EmpTaskParam
| ID | ID_EmpTaskQueue | Name | Value | ParentID | Sequence | HasChildren |
|---|---|---|---|---|---|---|
| 132 | 43 | ClientName | Client1 | 0 | 0 | 0 |
| 133 | 43 | Domain | Matrix42 | 0 | 0 | 0 |
| 134 | 43 | GroupPath | Matrix42/sales | 0 | 0 | 0 |
Example 3
Modify values for a Computer type variable with a user-defined control through the action Change variable value for computer. The following screenshot shows the variable definition in Empirum for this example:
.png)
In the example above, the Computer type variable is a printer with a user-defined control; such user-defined controls contain many variables which belong to a parent variable. As shown in the screenshot, the Printer variable includes the variables Name, Port and Host.
The following example shows how the values for the variables Name and Port are set:
Table EmpExtSubscribers
| ID | Name | ExpirationDate |
|---|---|---|
| 1 | HelpDesk | 09.10.2008 |
Table EmpTaskQueue
| ID | ID_EmpExtSubscribers | Priority | Name | ActionType | ActionCode | TargetObjectType |
|---|---|---|---|---|---|---|
| 44 | 1 | NULL | Client1 | 5 | 2 | 1 |
| Status | AllOrNothing | InsertTimeStamp | ErrorCode | ErrorText | LastUpdate |
|---|---|---|---|---|---|
| 1 | NULL | 16.11.2007 15:51:40 | NULL | NULL |
Table EmpTaskParam
Complex example:
| ID | ID_EmpTaskQueue | Name | Value | ParentID | Sequence | HasChildren |
|---|---|---|---|---|---|---|
| 135 | 44 | ClientName | Client1 | 0 | 0 | 0 |
| 136 | 44 | Domain | Matrix42 | 0 | 0 | 0 |
| 137 | 44 | VariableName | Printer | 0 | 0 | 1 |
| 138 | 44 | VariableType | Computer Variable | 137 | 0 | 0 |
| 139 | 44 | VariableName | Name | 137 | 1 | 1 |
| 140 | 44 | VariableType | Computer Variable | 139 | 0 | 0 |
| 141 | 44 | VariableValue | Copier | 139 | 1 | 0 |
| 142 | 44 | VariableName | Port | 137 | 2 | 1 |
| 143 | 44 | VariableType | Computer Variable | 142 | 0 | 0 |
| 144 | 44 | VariableValue | 515 | 142 | 1 | 0 |
Simple example:
| ID | ID_EmpTaskQueue | Name | Value | ParentID | Sequence | HasChildren |
|---|---|---|---|---|---|---|
| 1 | 1 | ClientName | Client1 | 0 | 0 | 0 |
| 2 | 1 | Domain | Matrix42 | 0 | 0 | 0 |
| 3 | 1 | VariableName | _MTE | 0 | 0 | 1 |
| 4 | 1 | VariableType | Computer Variable |
3 | 0 | 0 |
| 5 | 1 | VariableValue | MTE-Test | 3 | 0 | 0 |