Workflows in Nuflow are templates which define how money moves for an Order. A workflow specifies:
- Accounts: The accounts which are involved in the transaction (sender and recievers)
- Properties: Properties define how to split the order amount among individual destinations.
The accounts involved section of the workflow template defines the accounts which must be specified to create an order using that template. These accounts should already exist in the user's organization at the time of creating the order. For some cases there might be some subledgers also involved in the workflow (like the self, gst and revenue accounts in the image below) which are automatically picked and need not be specified.
In case of a direct transfer, user must specify the exact amount that must be transferred to each destination account at the time of creating the order.
In case of a normal worklow transfer (orders which don't use a direct transfer template), user only has to provide the total order amount and the individual amounts for each destination will be calculated according to the values set for the properties at the time of creating the template. The diagram of the workflow shows how these properties are used to split the amount among the receiving accounts.
The starting point of the workflow defines the order status at which the money is moved to the respective accounts. This provides the flexibility to create a transfer at some time and trigger it another time to record the flow of money.