NewIntroducing Arbiter AI. Experience the boundless capabilities of AI, right inside Arbiter. Check it out
  • Intro
    • Automations
    • Complex Decision-Making
    • Integrations
  • Docs
  • Support
  • Pricing
Try Arbiter

    Introduction

  • What is Arbiter?
    • Overview
    • Automations and Integrations
    • Decision-Making Software
    • Overview
    • Configure the Start Node
    • Connect to an HTTP API
    • Use Processor for Math Calculations
    • Add Conditions with Rule Node
    • Output Data and Workflow Tests
  • Concepts
  • Workflows

  • Projects
    • Intro
    • Workflow data state
    • Result schema
    • Canvas actions
    • Start node
    • Connector node
    • Rule node
    • Processor node
    • Workflow node
    • Setter node
    • Intro
    • Http request
    • Intro
      • Overview
        • Overview
        • Text
        • Date and Time
        • Math
        • Overview
        • Text Template
        • Find
        • Filter
  • Variables
    • Checkpoints
    • Workflows status
  • Data Types
  • Input Parameters Form
  • Arbiter AI
  • Visibility and Audit
  • Troubleshoot & FAQ

  • Roadmap
  • Changelog
Type '/' to Search

•Use Processor for Math Calculations

We want to check if there are enough units in stock. We know the total unitsInStock and unitsOnOrder so in order to find the available count we should subtract unitsOnOrder from unitsInStock. For that purpose, we'll use a processor. Processors are very powerful and provide great extensibility, but for this simple example we'll use the built-in function Subtract.

  1. Drag & Drop the Processor node to the canvas.
  2. Double click to open the configuration.
  3. Change the default name, e.g. CalculateAvailability
  4. Select the drop down menu and start typing 'Subtract', choose the option when it becomes visible
  5. For x parameter, click on a Use variable from state button and then select the field GetProduct.unitsInStock
  6. For y parameter, click on a Use variable from state button and then select the field GetProduct.unitsOnOrder
  7. Select Apply button
  8. Save the workflow

•Next Steps

Add conditions with the Rule node

DocsContactLegalCookies
©2022-2023 Arbiter Technologies Ltd. All rights reserved.