Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

The Application Builder for Cumulocity provides a simple, coding-free way to create new applications inside Cumulocity. Application Builder is an open-source tool for you to create web applications in a no-code environment. Created by Global Presales.

License

Notifications You must be signed in to change notification settings

Cumulocity-IoT/cumulocity-app-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation notice

This tool is not further developed and it might break with upcoming Cumulocity releases. Use it at your own risk. The repository is archived but feel free to fork & adapt it to your needs in a new repo.

Application Builder for Cumulocity

The Application Builder for Cumulocity provides a simple, coding-free way to create new applications inside Cumulocity. Application Builder is an open-source tool for you to create web applications in a no-code environment. It's being managed by the Cumulocity's open-source community but not officially supported by Cumulocity GmbH. You can log any issues at GitHub or ask any question on the Tech Community. Support will provided on best endeavours.

What's new ?

  • Deploy with Blueprint Forge: Users can now clone Application Builder apps and deploy it to Blueprint Forge apps. image
  • Widget Catalog: The Widget catalog has been removed. User can manage widgets/plugins from Administration -> Ecosystem -> Extensions.

2.1.0

  • New default branding: Introducing our new default branding, Inspired by Delite 2.0 – Software AG's in-house design system.
  • Enhanced group template dashboard: Give an identical dashboard to every device/asset based on its type.
  • Enhanced dashboard catalog: Now you can create dashboard based on device group and asset/device type using pre-design dashboard templates.
  • Dashboard catalog reloaded: Experience the next level with our latest dashboard templates for Predictive Maintenance, Smart Field Services, and Smart Billing—Now with one-click Microservice installation!
  • Enhanced Branding: Various improvement in overall branding.
  • Cumulocity upgrade: Application Builder is now based on Cumulocity 1018.0.x
  • Various bug fixes

Features

  • Browser-based Device Simulators: Create device simulators that run directly in your browser.
  • DTDL Simulator: User can now create simulator based on DTDL(Digital Twins Definition Language).
  • Group Simulator: User can create simulator for existing device group or new device group.
  • Runtime widgets plugin: Install widgets without re-compiling. Please refer our Demo Widget.
  • Group template dashboards: Give every device in a group an identical dashboard (but customized to the device).
  • Create an App with a custom contextPath: Change the URL used to access a particular app.
  • Application Clone: User can now clone existing application while creating new one.
  • GainSight Integration: Gainsight is integrated with app builder and user can control it from settings page.
  • Home Page: User can find quick start videos, help and support information on home page.
  • Tabs: Group your dashboards into tabs.
  • Dashboard Catalog: User can select any pre-designed template for dashboard and ability to install dependent runtime widgets.
  • Branding: Now user can use color picker to choose millions of colors to customize branding. Header, Action bar and tab bar are also customizable.
  • Theme: Application builder now support one clicks theme selection and custom theme creation.
  • Server-Side Simulators: Application Builder now supports Server-side simulators. User just need to install micro-service from here and you will get option while creating simulator to "Run on Server".
  • Role Based Access: User can now control dashboard visibility in application builder by assigning global role(s) to a dashboard.
  • File(CSV/JSON) Based Simulator: Application Builder now supports File Based Simulators(Server-side). User just need to install micro-service from here and use simulator type as File(CSV/JSON). User can import CSV/JSON file to create measurements/events to simulate use cases.
  • Help & Support: Try out our new help & support dashboard template while creating dashboard. This will help user to quickly create help and support page for cumulocity application.
  • Demo Catalog: User now able to try out pre-built cumulocity demos by installing Demo Catalog which is available in your home page.
  • Auto Upgrade Notification: From Application Builder 1.3.0 onwards user will get notification whenever new version of app builder available and ability to seamless upgrade by single click.
  • Settings: Now user has abilities to control various features such as hide logo, disable auto upgrade, hide tabs for device specific dashboards, etc.
  • Dashboard Tree view: Dashboard Tree view provides hierarchical view for quicker and easier access to a dashboard.
  • Dashboard Locking: User can now lock/unlock all dashboards by just one click.
  • Dashboard Search: Smart search introduced to quickly search your dashboard.
  • Seamless upgrade experience: Upgrade of application builder made simpler. Click here for more detail.

Installation

Install Application Builder

First Time:

  1. Grab the Latest Release Zip
  2. Go to the Administration view in your tenant (/apps/administration)
  3. Open the Ecosystem section in the navigator and click Applications
  4. Click Add application
  5. Select Upload web application
  6. Select the Zip you downloaded earlier

Incremental Upgrade:

  1. Grab the Latest Release Zip
  2. Go to the Administration view in your tenant (/apps/administration)
  3. Open the Ecosystem section in the navigator and click Applications
  4. Click Application Builder
  5. Click *Upload a .zip file
  6. Select the Zip you downloaded earlier

Install Micro Service for Server-Side Simulators

First Time:

  1. Download simulator-app-builder
  2. Go to the Administration view in your tenant (/apps/administration)
  3. Open the Ecosystem section in the navigator and click Microservices
  4. Click Add microservice
  5. Select Upload microservice
  6. Select the Zip you downloaded earlier
  7. Click on Subscribe button

Incremental Upgrade:

  1. Download simulator-app-builder
  2. Go to the Administration view in your tenant (/apps/administration)
  3. Open the Ecosystem section in the navigator and click Microservices
  4. Click Simulator-app-builder
  5. Click *Upload a .zip file
  6. Select the Zip you downloaded earlier
  7. Unsubscribe and subscribe again microservice

Install Micro Service for File Based Simulators(Server Side)

First Time:

  1. Download csv-simulator-ms
  2. Go to the Administration view in your tenant (/apps/administration)
  3. Open the Ecosystem section in the navigator and click Microservices
  4. Click Add microservice
  5. Select Upload microservice
  6. Select the Zip you downloaded earlier
  7. Click on Subscribe button

Incremental Upgrade:

  1. Download csv-simulator-ms
  2. Go to the Administration view in your tenant (/apps/administration)
  3. pen the Ecosystem section in the navigator and click Microservices
  4. Click csv-simulator-ms
  5. Click *Upload a .zip file
  6. Select the Zip you downloaded earlier
  7. Unsubscribe and subscribe again microservice

Build Instructions

Note: It is only necessary to follow these instructions if you are modifying/extending the Application Builder (such as adding custom widgets, branding, etc.), otherwise see the Installation Guide.

Requirements:

  • Git
  • NodeJS (release builds are currently built with v14.18.0)
  • NPM (Included with NodeJS)

Instructions

  1. Clone the repository:
git clone https://github.com/Cumulocity-IoT/cumulocity-app-builder.git
  1. Change directory:
cd cumulocity-app-builder
  1. (Optional) Checkout a specific version:

git checkout v2.0.0

  1. Install the dependencies:
npm install
  1. (Optional) Local development server:
npm start
  1. Build the app:
npm run build
  1. Deploy the app:
npm run deploy

QuickStart

This guide will teach you how to create your first application using the Application Builder.

NOTE: This guide assumes you have followed the Installation instructions

  1. Open the Application Builder from the app switcher (Next to your username in the top right)
  2. Click Add application
  3. Enter the application details and click Save
  4. Select Add dashboard
  5. Click Blank Dashboard
  6. Enter the dashboard details and click Save
  7. Select the dashboard from the navigation

Congratulations! You have created an application and added your first screen.

User Guide

How to convert existing widget into plugin

Please go through How to convert Cumulocity IoT widgets to plugins for step by step guide to convert existing widgets to plugin

How to upgrade Application Builder to 2.0

Application Builder 2.0 is based on micro-frontend architecture and existing Custom Widgets/Runtime widgets are no longer compatible.

When should you upgrade?

  • If you are Admin of the tenant.
  • You are using custom application builder (not subscribed one). If you are using subscribed application builder, then consider impact on sub-tenants before upgrade.
  • Your custom widgets(if any) are converted into plugins or corresponding plugins are available.

When should you not upgrade?

  • When your application builder is subscribed to one or more tenants, and you are not aware the impact of those tenants.
  • You have custom widgets which are not supported plugins or not yet converted to plugins.

How to upgrade

For seamless upgrade experience, please follow below steps:

  1. Upgrade your Application Builder to 1.3.4 (In case if you are using earlier version).
  2. Upgrade your Application Builder to 2.0 using upgrade option in bottom of your page(Available only to admin user).

Please note that if your widgets are part of Widget Catalog(maintained by community), then Application Builder will automatically delete existing widget and install corresponding plugin. In case if custom widget please see How to convert existing widget into plugin

How to upgrade Context Path Application to 2.0

If your existing application is created with providing context path, then it will not be going to upgrade using Application Builder upgrade functionality since it is running in its own application context.

Here are steps to upgrade Context Path application. Please note that this action is non-reversible:

  1. Go to Application Builder -> Add Application.
  2. Give name of your application.
  3. Do not provide any context path.
  4. Select your existing application from "Clone Existing Application".
  5. This will clone your app and bring it into Application Builder context.
  6. Verify your newly created application for all functionalities.
  7. Delete existing application.
  8. If all functionalities are working as expected, then clone application again with context path
  9. Congratulations, you have upgraded your app to 2.0.

How to downgrade Application Builder to 1.3.x

If you already upgraded Application Builder to 2.0 and wanted to downgrade back to 1.3.x for any reason, you can follow below steps:

  1. Download Application Builder 1.3.x binary from release section.
  2. Go to Administration -> Ecosystem -> All Applications.
  3. Click "Application Builder"
  4. Click "Upload a *.zip file".
  5. Upload 1.3.4 binary
  6. Go to Application Builder from app switcher.
  7. Click on "Widget Catalog"
  8. Click on "Uninstall All" button.
  9. This will delete all widgets.
  10. Install required widget again.
  11. Congratulations, you have downgraded your app to 1.3.x

A more detailed user guide and quick start videos are available in the Home section of the Application Builder app.

NOTE: This is only shown in the main page of the Application Builder, not when editing an individual application.

Runtime Widgets

Application Builder supports widget deployment. Some of the widget plugins are already available in widget catalog. You can find widgets at Cumulocity Open Source

Would you like to create your own Custom Runtime widget? Please refer our Demo Widget.

Troubleshooting

Application Builder 2.1.0

  • Theme Troubles? Existing applications with customized themes are not displaying the correct appearance: Application Builder 2.1.0 now defaults to the new Delite Theme. If your application has a custom theme and is not displaying correctly after an upgrade, please follow these steps for a quick workaround:

    1. Revert or install Application Builder 2.0.0.
    2. Go to your application.
    3. Go to Configuration -> Styling.
    4. Copy all the color code which you customized into notepad.
    5. Update Application Builder 2.1.0.
    6. Go to your application.
    7. Go to Configuration -> Styling.
    8. Click on best match theme out of Default, Classic, Navy Blue or Dark.
    9. Click on "Forge your brand: Unleash your creativity" button.
    10. Update all color code which you copied in step 4.
    11. Save your changes.
  • Theme Troubles? Application Installed from Demo Catalog not showing the correct appearance: Application Builder 2.1.0 now defaults to the new Delite Theme. If you demo from the Demo Catalog is stuck with the old theme, Please follow these steps for quick workaround:

    1. Go to demo application which you installed from Demo Catalog.
    2. Go to Configuration -> Styling.
    3. Click on "Default" theme button.
    4. Save your changes.

Application Builder 2.0.0 and later

  • Persistent 'Under Maintenance' Warning Despite Upgrade to Application Builder 2.0: Typically, users should encounter this warning during the upgrade procedure, although its presence should be brief – lasting no more than a few minutes. If this warning persists even after the upgrade has finished, it indicates a potential issue during plugin installation or may be connected to network-related problems. To address this issue, you can follow these steps:

    Note: You may need to install your widgets/plugins manually from widget catalog or from administration after following these steps.

    1. Logout from Application Builder Application.
    2. Login again to cumulocity and navigate to Administration -> Ecosystem -> All Applications
    3. Select Application Builder (custom) and delete it.
    4. Click on Add Application
    5. Install Application Builder 2.0 from here
    6. Logout from Administration
    7. Login again to cumulocity and navigate to Application Builder
    8. Application Builder 2.0 will commence the installation process.

    If the problem continues to persist, please don't hesitate to reach out to us for assistance using Tech Community.

  • Widget/plugins are not installed after upgrade: There are multiple reasons that your widgets/plugins might not installed such as browser page refreshed, network error, etc. In this scenario you can follow any of the below approach:

  1. If you have installed many widgets in earlier version of application builder then you can downgrade application builder by following How to downgrade Application Builder to 1.3.x and try again.
  2. If you have few widgets installed in earlier version of application builder, then you can just uninstall those widgets manually from Administration -> Ecosystem -> All Applications and install corresponding plugin either from Widget Catalog or from Administration -> Ecosystem -> Packages.

Application Builder 1.3.x and earlier

  • Failed to load a runtime custom widget:
	Failed to load a runtime custom widget, it may have been compiled for a different Cumulocity version

There is multiple reason for above error while loading page:

  1. Browser cashing issue: Try again after clearing browser cache or run incognito/private mode in browser. This is usually happened when new version of application builder installed or upgraded.
  2. Widget is not compatible with current version of Application builder: There are possibilities that your widget is no longer compatible with application builder due to angular/cumulocity upgrade.

If your widget is listed in widget catalog, then follow below steps:

  1. Go to widget catalog --> My Widgets
  2. Delete the widget which is giving error (You can identify widget by looking for this iconicon)
  3. Go to "Get More Widget" page
  4. Install the compatible widget/alternate widget
  5. Refresh page

If your widget is not listed in widget catalog, then you may need to upgrade your custom widget to make it compatible with current version of application builder.

  • Demo App(Demo Catalog App) not working after upgrade: There are possibilities that demo installed via demo catalog earlier may not work properly after upgrading application builder. In that scenario, you can perform following steps:
  1. Delete Demo using existing Demo Catalog
  2. Go to Administration -> Applications -> Own Applications
  3. Delete Demo Catalog App
  4. Click on App Switcher and navigate to Application builder
  5. In "Home" Page of application builder, you can find "Install Demo Catalog" option
  6. Install the latest version of Demo Catalog
  7. Install your demo application
  • Application Builder keep loading: If you are building your own version of app builder, you may experience below error in browser console due to nv.d3.js bug.
Uncaught (in promise) TypeError: true is not a function
  at eval (nv.d3.js?4bd4:9)
  at eval (nv.d3.js?4bd4:14365)

If you encounter above error, please follow below steps:

  1. Stop the server.
  2. Go to /cumulocity_app_builder/node_modules/nvd3 folder
  3. Open nv.d3.js file
  4. add ";" at line number 7. Refer below code snippet.
```
  (function(){

  var nv = window.nv || {};


  nv.version = '1.1.15b';
  nv.dev = true; //set false when in production

  window.nv = nv;

```
  1. Save file
  2. Go to /cumulocity_app_builder/patches
  3. Delete nvd3+0.0.1.patch file
  4. Go to /cumulocity_app_builder
  5. Execute "npx patch-package nvd3" command in your terminal
  6. Start the server

Contributing to Application Builder

If you like to submit a pull request, please follow below guidelines:

Guidelines

  • Please describe the changes that you are making
  • For features, please describe how to use the new feature
  • please include a reference to an existing issue, if applicable
  • Specify type of change
    • Bug Fix
    • Feature
    • Other(Refactoring, Documentation, etc..)
  • Does this change Introduce any breaking change ? Yes/No
  • Follow below checklist:
    • Commit Messages follow the pattern
      • A feature commit message is prefixed "feature:"
      • A bugfix commit message is prefixed "fix:"
    • Tests for the changes have been added

These tools are provided as-is and without warranty or support. They do not constitute part of the Cumulocity product suite. Users are free to use, fork and modify them, subject to the license agreement. While Cumulocity GmbH welcomes contributions, we cannot guarantee to include every contribution in the master project.


About

The Application Builder for Cumulocity provides a simple, coding-free way to create new applications inside Cumulocity. Application Builder is an open-source tool for you to create web applications in a no-code environment. Created by Global Presales.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published