--- alias: user-guide-business-workflow-task-material-dispatch render_macros: false description: "This task dispatches a material to a specified resource based on defined conditions" --- # Dispatch The task allows the user to Dispatch a Material to a Resource. ![Screenshot showing a business workflow task for material dispatch.](images/business_workflow_task_material_dispatch.png) ??? example "Example" Trigger: - Task Name: `MaterialAbortPost_1` - Meaning: After performing Abort Material. Condition: - Input Expression: `{{$MaterialAbortPost_1.Material.PrimaryQuantity>=10}}` - Meaning: If the Primary Quantity of the Material that was aborted is greater or equal to 10. Action: - Input: - `{{$MaterialAbortPost_1.Material}}` - `{{$MaterialAbortPost_1.Resource}}` - Meaning: The Material that was aborted is dispatched to the same Resource. ## Behavior The user will define a Material and a Resource. ## Inputs | Name | Data Type | Description |Expression| | --------------- | ---------- | - |-- | | `Material` | `Material` | The Material that will be dispatched |- `{{$.Material}}`
- ``| | `Resource` | `Resource` | The Resource where the Material will be processed |- `{{$.Resource}}`
- ``| | `Comment` | `String` | An optional comment that will be associated with the operation that is being executed || ## Outputs | Name | Data Type | Description | | --------------- | ---------- | - | | `Material` | `Material` | The Material that was dispatched | | `Resource` | `Resource` | The Resource where the material was dispatched | ## Remarks The Material and the Resource inputs can be defined by the user as a simple name or an expression, such as **\{\{\$task.Material\}\}** where `task` is the name of a block that has the Material as input/output.