State Connections

    State Connections


    State Connections (Alt+C) are used to modify a Node, a Resource Connection, or in rare cases, other State Connections.

    The state of a Machinations diagram refers to the current distribution of Resources among its Nodes. When Resources get redistributed, the State of the diagram/system changes.

    You can adjust the properties of a selected State Connection, such as Label, Formula, Filter, Style, and Position, in the Properties panel on the right.

    We will explain these properties below.

    You can add descriptive text or annotations in the Label field. This will make it easier to identify the purpose of the connection. It is also good practice and will make your diagram more accessible to others.

    State Connections allow you to modify the flow rates of Resource Connections or to trigger Nodes to fire, activate or deactivate them in response to changes in Resource distribution.

    The Formula on a State Connection indicates how or under which conditions a target Node or Connection is or will be changed.

    You may use Custom Variables, and functions from the math.js library in the Formula field.

    The default formula value of a State Connection is “+1”. This will apply any change in the origin node’s value to the target node.

    Please read our State Connections Formulas article to learn more.

    State Connections will respond to Resources based on their color similar to Resource Connections.

    Once the filter is enabled, the formula of a State Connection will only be executed if a Resource with matching color passes through a Gate or Pool.

    • When a Resource gets to Pool B it activates Source C
    • When the number of Resources in Pool B is >=6 activate transfer
    • When Pool B has 3 or more Resources activates add

    In this example, there are 3 controlling Nodes: Pools B, D and F.

    1. Pool B activates Source C as soon it receives a Resource from the automatic Source A.
    2. When B hits a number of Resources equal to or bigger than 6, it also activates the transfer between Source E and Pool F.
    3. Pool F is in itself a controlling Node and it will affect the flow of Resources between C and D, by adding +1 each Step.
    4. Pool D activates the Stop End Condition when it collects 15 Resources. The diagram stops executing.

    Formulas on State Connections indicate how or under which conditions they change the Target. Please review the following articles to find out more about:

    Formula Modifiers 

    Node Modifiers




    All Rights Reserved © Machinations S.àr.l

    8217, Mamer, Luxembourg, accounts at BGL BNP PARIBAS, VAT number: LU30464284

    We use cookies for marketing and analytics. We also share information about your use of our site with our marketing and analytics partners who may combine it with other information that you’ve provided to them. You consent to our cookies if you continue to use our site. Learn more