Using Violet data in Sedaro
Last updated
Last updated
Using Workflows, you can link a Sedaro simulation to data in Violet and have it trigger a re-run whenever data changes.
First, create a Sedaro integration in Violet, and make sure it is fetching branches.
Head to the desired branch's page in Violet and select what you want to modify.
On the selected sub-component detail page, linkable properties will have a link symbol next to them. Click on the link icon and use the keyword search to select the Violet value (e.g. a parameter value, a data property from an integration, etc.) that you want to link. The new, live-linked value will display on the properties list and will be pushed to Sedaro.
Be careful, as the selected linked entity value will immediately be pushed to Sedaro and will overwrite any existing values.
Whenever the linked value changes, the new value will be pushed to Sedaro.
To unlink this value, hit the unlink button next to the property. This will save this property to the current value, and will stop updating whenever the linked entity changes.
You can also initiate a simulation in Sedaro from a selected branch within Violet.
To start a simulation, find the branch in Violet you want to run, select Start Simulation under Available Sedaro Functions, and select push.
To configure a simulation to re-run whenever a linked value changes:
Link your desired data by following the Link Violet data instructions above. Remember the Violet ID of your linked data
Give your workflow a name, and select Activity as the type, then Linked Property Value Changed.
For Enter the ID of the Violet Entity to Watch, enter the Violet ID of the Sedaro data linked in step (a).
Select Select an Entity Specific Action as the action.
For Enter the ID of the Violet Entity to get a list of available actions, enter the Violet ID of the branch you will run the Simulation on.
Under Entity Actions, select Start Simulation, then save the workflow.
Now, whenever a linked entity value changes on the selected subcomponent, a new simulation will start in Sedaro.