In order to access information from an MES or other external system, Tulip uses Connectors.
Once the Connector functions have been built, they can be initiated within an app via Triggers.
This means that when an operator presses a specific button within the Tulip Player, or uses a specific connected device like a barcode scanner, you can retrieve or store data in an external system.
Here's how the data will travel through Tulip to your system of choice:
- Specify the connector function that should run within the Trigger
- Specify the inputs for the connector function (if any are needed). These are usually variables from an app.
- If there are outputs from the connector function, specify which variable should store theses values.
Here's a visual of the pathway:
Variable (or static value) in app --> Inputs to connector function --> Connector function runs --> Outputs --> Other variable in app
This can be achieved by following the steps described below:
Create The Trigger
1- Click on the "+" sign beside Triggers under the Step tab of the Context Pane.
2- Fill in a name for the new Trigger in the Trigger Editor.
3- Select When the trigger should run.
Add the "Run Connector Function" Trigger Action
4- Select a Condition that will determine if the trigger should run in the If section.
5- Add New Action by filling the section under “Then”:
- Select "Run Connector Function"
- Select the connector you wish to run
- Select the desired data input to the function (e.g a barcode scan, from a variable or even a static value)
- Select the variable where you would like to store the outputs of the function (the variable will be an array or object, depending on the connector function)
Here's an example:
- "Run Connector Function" connector: "Server Assembly DB" "Get_Configuration"
- configuration: "Static Value" "text"
- and save result as: "Variable" "config_information"
Note: In case the data received from the connector function contains several variables, Tulip will save each data input as a separate property within an object and you’ll be able to access each property separately.
- How To Use Arrays and Objects
- Examples of SQL Connector Functions
- Example of an HTTP Connector Function In An App
Did you find what you were looking for?
You can also head to community.tulip.co to post your question or see if others have faced a similar question!