Variables & Identifiers
$input
The entire object because of which the workflow was triggered.
$currentItem
Within a foreach loop, $currentItem refers to the current item in the iteration
$autoId
Autogenerated id. Useful when an id needs to be generated.
For example, in the CreateAsset activity, which requires the user to specify the id for the new asset, they can specify $autoId instead.
String Intrapolation
In any of the values in the workflow, support basic javascript style string intrapolation are supported. For example, in the RaiseEvent activity, message field, the following is supported – “Approval request raised for invoice: ${input.data.invoiceId}”
Every activity in the workflow will have a human readable id which is autogenerated by default, but can be modified by the user.
This id can then be used by the customer in subsequent steps to refer to the output generated as part of that activity. For e.g. $ReadAsset1.output will have the entire object returned by ReadAsset1 activity within it.
What is an entity?
An entity in blockchain is can be either an organization or a specific user within an organization. Read more about entities Organization Entities
Entity in Approvals:
Entity in approval generally refers to the approver. The approver can be either an organization or a specific user within an organization. Specific users can be an approver by defining their key-value identifier. If user ID (optional field) is not added, the owner will be the selected organisation.
Entity in Assets
Entity in assets generally refers to the owner of the asset. Owner can be either an organization or a specific user within an organization. Specific users can be defined by adding their key-value identifier. If user ID (optional field) is not added, the owner will be the selected organisation.
Entity in Tokens:
Entity in tokens generally refers to an account. Account can be either be ownerd an organization or a specific user within an organization. Specific user's can be defined by adding their key-value identifier. If user ID (optional field) is not added, the owner will be the selected organisation.
Last updated