--- alias: user-guide-automation-task-fa-createjob tags: - automation tasks description: "This documentation details creating Factory Automation jobs with configurable inputs and outputs" --- # Create Job The task `Create Job` is a Task that allows the creation of Factory Automation jobs. ![createjob_parameters][createjob_parameters] ## Inputs | Name | Data Type | Values | Description | |---------------------------|------------------------|--------|--------------------------------------------------------------------| | job | `AutomationJob` | | job to create | | jobAutomationController | `AutomationController` | | automation controller to execute | | jobAutomationControllerId | `string` | | id of the automation controller to execute | | jobName | `string` | | name of the job to create | | jobType | `string` | | type of the job to create | | jobData | `Object` | | input data for the job to create | | wait | `boolean` | | whether the task should wait for the job to end (child job) or not | | Activate | `Any` | | Activates the task execution | ## Outputs | Name | Data Type | Values | Description | | -------- | --------- | ------ | ------------------------------------------------------------ | | jobId | `string` | | id of the created job | | jobResults | `Object` | | Results of the job | | Success | `Boolean` | | If there was no problem emits a true | | Error | `Error` | | Error that occurred during the processing of this task | ## Settings On the `General` Tab, you have the usual settings and the following options settings: | Name | Data Type | Values | Default | Description | | ------------- | --------- | -------- | -------- | ------------------------------------------------------------ | | Job Name | `string` | | | name of the job to create | | Job Type | `string` | | | type of job to create. Possible values retrieved from the *AutomationJobType* Lookup Table. | | Automation Controller | `Automation Controller` | | | Controller to handle the operation | | Wait for Job to Complete | `boolean` | | | Whether the task should wait for the job to finish | | Auto generate Inputs and Outputs | `boolean` | | | Whether the task settings should auto generate inputs and outputs | ![createjob_settings_step_one][createjob_settings_step_one] Additional inputs can be defined in the `Inputs` tab: ![createjob_settings_step_two][createjob_settings_step_two] ## Behavior The Task can block waiting for the job to execute (child job) by setting wait to true. Dynamic inputs are used to provide additional data to the job. ## Remarks None. [createjob_parameters]: ./images/createjob_parameters.png [createjob_settings_step_one]: ./images/createjob_settings_step_one.png [createjob_settings_step_two]: ./images/createjob_settings_step_two.png