--- alias: user-guide-automation-task-ipccfx-executecfxcommand tags: - automation tasks description: "This task executes CFX commands, waits for responses, and updates outputs accordingly" --- # Execute Cfx Command This Task is specific to be used with the IPC-CFX Driver. This Task executes command CFX messages of a specific type (which can be configured in the Task's settings) and waits for the reply. ![executecfxcommand_parameters][executecfxcommand_parameters] ## Inputs | Name | Data Type | Description | |----------|-----------|--------------------------------------------------------| | Activate | `Boolean` | Activates the task | ## Outputs | Name | Data Type | Description | |--------------|------------|--------------------------------------------------------| | 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 settings: | Name | Data Type | Values | Default | Description | |----------------------------|-----------|-------------------------------------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------| | Execution Mode | `enum` | `Publish`
`SendRequest` |`Publish`| Execution Mode | | Execution Destination | `enum` | `Exchange`
`MessageSource`
`TargetHandle` |`Exchange`| Execution Destination | | Clear Inputs (on activate) | `Boolean` | | `true` | Defines if it is to clear the input values after receiving an activate | | Message Full Name | `string` | | | Name of the complete CFX message with the namespace included, e.g. 'CFX.Production.ActivitiesExecuted'. | | Message | `enum` | `StationStateChanged` | | Specifies the behavior of the task | ![executecfxcommand_settings][executecfxcommand_settings] ## Behavior When activated, this Task executes a command of a specific CFX message and waits for the reply. After receiving the reply, this Task's outputs are updated. ## Remarks None. [executecfxcommand_parameters]: ./images/executecfxcommand_parameters.png [executecfxcommand_settings]: ./images/executecfxcommand_settings.png