Skip to main content

Transition basics

Transitions are movements from one state to the other. Besides changing the status of the item there are other steps that can be enabled (ordered in order of execution during transition):

  1. Accept parameters to change item attributes
  2. Set access restrictions - who is able to perform transitions
  3. Set input validation E.g. check if amount is higher than a threshold.
  4. Conditional routing - go to a different state based on item attributes.
  5. Calculations - set attribute values programmatically. E.g. set default values or calculate sums.
  6. Events - broadcast blockchain events such as issuing invoices etc.
  7. Calling other flows - way of initiating child workflows or signal completion of dependent flows.
  8. Payments - enables to collect payments from users or pay out funds from the workflow.

Transitions in the UI

After deploying a workflow to the blockchain Toolblox generates a simple UI to manage items. Here you can see a workflow which enables processing 3D print orders (description of this flow). On the right hand side you can see a snapshot of one Printout, which at the moment is in state Offer made - this means that only 2 transitions are available: Accept and Rejected.

Transition and UI