--- alias: user-guide-business-workflow-task-manage-protocol-instance-materials render_macros: false description: "Associates and disassociates explicitly selected materials with one exception protocol instance through the service." --- # Manage Protocol Instance Materials Associates and disassociates explicitly selected **Materials** with one exception **Protocol Instance** through the service. ![Screenshot of a Business Workflow managing Materials and comments on an open Protocol Instance.](images/business-workflow-task-manage-protocol-instance-materials.png) ## Inputs Set `ProtocolInstance`, `MaterialsToAdd`, `MaterialsToRemove`, `MaterialsForComments`, `Comment` in the task details. Use the value editor to select compatible results from earlier tasks. ## Outputs Use `ProtocolInstance`, `Added`, `Removed`, `Message` in subsequent tasks. ??? example "Manage Protocol Instance Materials" Connect an open **Protocol Instance** and the **Materials** to add or remove. Enter one `Comment`; select `MaterialsForComments` to annotate existing relations, or leave it unset to annotate the additions. Use a loop for different comments per **Material**. ## Behavior Leave `MaterialsForComments` unset to apply `Comment` to the additions. Select existing related materials to update their comments. Leave `Comment` unset to preserve comments. Use **For each** when different materials require different comments.