Creating a Flogo App

Creating a Flogo app only creates a .flogo file. You can create a app from the Explorer view using Ctrl+Shift+E.

Before you beginEnsure you meet the following prerequisites:
  • Create a workspace in Visual Studio Code.

  • Enable the Auto-save option from the File Menu in Visual Studio Code.

    Note: Use the path of a local directory instead of a shared location path. Entering a shared location might not work.
    Procedure
  1. Open the Explorer view (Ctrl+Shift+E) from the Activity Bar of Visual Studio Code.
  2. Navigate to the workspace where you want to create a Flogo app and click the dropdown icon next to that workspace folder.
  3. Click Create a New Flogo App, using the icon available right next to the workspace folder.
  4. Add the name of your app in the top-most text bar that pops up.

    Note: The app name must not contain any spaces. It must start with a letter or underscore. The app name can contain letters, digits, periods, dashes, and underscores. When deploying an app on TIBCO Control Center, you can only use lowercase and alphanumeric characters. Hyphens (-) can be added in the middle of the app name.
  5. Press enter to create your app.

Generating a POM File for Flogo App

TIBCO Flogo® Enterprise supports Maven as a tool for the CI-CD workflow. To get started with a Maven build, TIBCO Flogo® Extension for Visual Studio Code provides a context menu for generating the pom.xml file. To generate a pom.xml file, perform the following steps:

    Procedure
  1. Right-click the Flogo app.
  2. Select the Generate POM file for Flogo App option.

For more details on pom.xml files, related configurations, how to use the Maven build for a Flogo app, running unit tests, and generating the test reports, see https://github.com/TIBCOSoftware/flogo-maven-plugin.

ResultThe app is created and the App Details page is displayed for the new app. You can see the following tabs:
  • FLOWS: A flow with the same name as the app is automatically created. You can now create one or more flows for the app. For more information, see Creating Flows and Triggers.

  • APP PROPERTIES: You can modify the properties of the app. For more information, see App Properties.

  • CONNECTIONS: You can view and edit the connections. For more information, see Creating Connections.

  • SCHEMAS: You can add, delete, or modify schemas. For more information, see App Schemas.

  • SPECS: You can import specs locally or from runtime. For more information, see App Specs.

Note: If you copy a app that has a password property from one workspace to another and then open that app in the editor view, the password type values persist. As a workaround, remove the password type values manually before sharing the app.