--- alias: user-guide-automation-task-oib-factorylayout tags: - automation tasks description: "This task retrieves factory layout data, handling input parameters and generating an output object" --- # Factory Layout The `Factory Layout` task is responsible for requesting the data for the Factory Layout. If received, the requested data is sent as the proper output. ![1562171137862](./images/factory_layout_parameters.png) ## Inputs | Name | Data Type | Description | |----------|-----------|--------------------------------------------------------------------| | lineName | `String` | Optional. If not defined, command will be sent to all lines. | | Activate | `Any` | Activate the task (true for activate, other values for deactivate) | ## Outputs | Name | Data Type | Description | | ------- | --------- | ------------------------------------------------ | | factoryLayout | `Object` | The output for the FactoryLayout Event | | Success | `Boolean` | Triggered when the task is executed with success | | Error | `Error` | Triggered when the task failed for some reason | ## Settings On the `General` tab, you have the usual settings and the following settings: | Name | Data Type | Values | Default | Description | | ------------- | --------- | ------ | ------- | ------------------------------------------------------------ | | Timeout | `Integer` | | `90000` | This will be the number of milliseconds until an answer for the request is expected. Set to 0 to disable. | ![1562259678207](./images/factory_layout_settings.png) ## Behavior The task should be activated to request the information of the Factory Layout. The task will only be activated if it has in the Activate input a Boolean **true**, other values will be interpreted as deactivate. The output will contain the JSON with the Factory Layout information received. ## Remarks None.