Publishing Applications
An organisation that develops an application in Invantive Cloud can offer it in the app store, to its own users, to its customers or to everyone. The store fields sit on the tab "Store" of the page of the application in the development pages of Invantive Cloud. Built for release 28.0; not yet available on the production environment.
Requirements
An application can be offered to other organisations when:
- the organisation of the publisher may publish to others; Invantive staff set this as "May Publish to Others" in the settings of the organisation, and without it only "Private" is possible,
- the application has a store code,
- its app database allows applications from the store, as described in Databases Used by Applications,
- a public application has passed the review of Invantive.
Invantive sets "May Publish to Others".
Visibility
The field "Visibility" on the page of the application has three values:
- "Private": only the own organisation sees and uses the application. This is the default and needs no consent of Invantive.
- "Customers": the organisations whose dealer is the publisher see the application as well, in the section "From Your Partner" of the store. Invantive does not review it.
- "Public": every user sees the application in the section "All Applications" and on the public page
/apps/<store code>, after a review by Invantive.
Invantive Cloud refuses "Customers" and "Public" for an organisation that may not publish to others, with the message that only an organisation that Invantive allows as publisher can offer applications to other organisations.
Invantive staff set the dealer of an organisation by hand for now; taking it from the customer administration of Invantive is not yet available.
Store Fields
The tab "Store" of the page of the application holds the fields of the store, with a save of its own, so a save on the tab "General" never empties them. Next to the visibility, the price model, "Free", the publication period, the privacy policy, the terms, the website, the manual and the support details, these are:
- "Store Code": the code of the application in the store and in its launch address
/app/apps/<store code>/open, in lower case letters, digits and hyphens. Without a store code the application stays out of the store. - "Tagline": one line under the name on the tile in the store.
- "Brand Colour": the colour of the page of the application in the store, as
#RRGGBB. - "Data Processing Agreement": the address of the data processing agreement of the publisher, shown before an organisation installs the application.
- "Data Location": where the app database runs, such as a country or region.
- "Data Usage": what the application reads and writes in the connections of the organisation that installs it, shown when it gives its consent.
- "Logo", "Icon" and "Banner": images uploaded to Invantive Cloud and shown in the store; an image with an external address is marked as such until it is replaced by an upload.
- "Review by Invantive": the state of the review of a public application.
Lists of the Tab "Store"
Below the store fields, the tab "Store" holds the rest of what the store shows and needs:
- "Requirements": the connections of the installing organisation that the application needs. Each has an alias, a connector such as
ExactOnlineAll, whether it is mandatory, a description and an order. An alias starts with a letter and has only letters, digits and underscores, at most 30. Each alias is used once, and differs from every alias in the app database. - "Translations": per language code of two lower case letters, such as
nl, the name, tagline, description, release notes, price model, data usage and the text about what the application needs. A language without texts shows the texts of the application itself. - "Screenshots and Videos": per medium the kind, the image or video, a caption, a language or "All languages", and an order.
The description of a requirement and the caption of a medium have their own texts per language, kept with the requirement or medium itself.
- "Categories": the categories under which the application is found. Invantive maintains the list of categories.
- "Modules Run by the App Store": "Module on Install", "Module on Startup" and "Module on Removal", each a module of the application or "None".
Modules on Install, Startup and Removal
Invantive does not tell the publisher who installs, uses or removes its application. These three modules let the application record that itself, for example to bill the organisation:
- "Module on Install" runs once, after an organisation installed the application.
- "Module on Startup" runs each time a user opens the application, before the start module.
- "Module on Removal" runs once, before an organisation removes the application.
Each runs in the data context of the installation, with the values of cloud_appstore and the data containers of the app database. A failing module is logged and never blocks the install, the opening or the removal. For now the module on removal does not run when the publisher deletes the application itself.
Addresses of Modules
An installation runs at /run/<store code>/<set>/, where <set> is the unique identifier of the set of connections the user opened, so a user can have several sets of one application open side by side. A file that a page loads, such as a style sheet or a script, is modules/<code> relative to that address, such as <link rel="stylesheet" href="modules/style">. A page that the user opens or posts to stays at the address of the run, so the relative addresses of the page keep working: open for the start module, open?module=<code> for another module, such as <form method="post" action="open?module=import">, and parameters of the application itself, such as open?fn=icp, reach the module unchanged. A page opened as modules/<code> would resolve its own modules/style below modules/ and lose its styling. The parameter useBindings is no longer needed and is ignored.
Script and Images from Other Sites
A page of a module may contain script of its own, inline or as a module, and images as data: addresses. Script and images from another site, such as a library on a CDN, load only when Invantive has allowed that site for the application; ask Invantive with the addresses needed. Requests by script, forms and frames go to the application itself only. This keeps script that slipped into a page through data, such as a supplier name with HTML in it, from loading more code or sending data away. Escaping such values remains the task of the application.
App Database
The app database is the service database of the application: a database of the publisher, with the tables in which the application keeps its own data. Its data containers are in the context of every installation under their own aliases, with the credentials of the publisher. The users of the installing organisation never see those credentials and cannot run their own SQL in that context.
The application keeps the rows of each installation apart itself, for example by keying them on the unique identifier of the installation. What the publisher answers for is described in Data Shared with Applications.
Releases
Installed organisations run a release, not the working copy that the publisher edits. The section "Releases" of the page of the application has "Make Release", with:
- "Release Code",
- "Release Notes",
- "Make current, so installations run it".
Making a release copies the startup SQL, the modules and the requirements of the application into the release. Organisations run the release marked "Current". Before the first release, they run the working copy, so every saved change reaches them at once.
A release can add a mandatory requirement. An organisation that has not chosen a data container for it keeps running the release it ran before, until a superuser chooses one; then it runs the current release.
Invantive Cloud refuses to make a release while the app database does not allow applications from the store.
Packages
An application moves between environments of Invantive Cloud as a package: a ZIP file of a folder with application.json, the modules, the texts and the images, or one JSON file with everything inline.
- "Export" on the page of the application writes the package as a ZIP file. Only the organisation that owns the application exports it.
- "Import" on the list of applications creates a new application from a package.
- "Import" on the tab "Store" of an application imports a package onto that application. The package must carry the code of that application; another package is refused before anything is written.
- "Release after import" makes a release right after the import, and "Make the release current, so installations run it" makes it current.
A ZIP file of the folder itself, as Windows makes it, imports as well. The app database is found by its Bridge Online URL segment in the importing organisation. The format of application.json is described by the JSON schema /schemas/invantive-cloud-application-1.schema.json of Invantive Cloud, named in its field $schema. Invantive Cloud generates that schema from the definitions with which it reads a package, so an editor that checks against it finds the same errors as an import: unknown fields, a text both inline and as a file, a path outside the package, an address without https, a text that is too long.
Review by Invantive
Invantive reviews a public application once, before it is listed for the first time. Later releases go live without a review. Applications with visibility "Customers" are not reviewed.
The reviewer checks what the store shows: the data processing agreement and the data protection fields are present, and the privacy policy and the terms can be opened. The reviewer never looks inside the app database. Invantive staff answer with "Approve" or "Reject" and "Remarks" on the page /app/apps/reviews.
The existing fields for the start and end of the publication limit when the application is in the store. Outside that period the application is not listed and installed organisations cannot open it.
Settings of the Organisation in the App Store
The page /app/apps/organisations/<organisation ID>/settings holds the settings of an organisation in the store. A superuser of the organisation sets:
- "Name as Publisher",
- "Logo as Publisher (SVG)".
Only Invantive staff set:
- "Dealer (organisation ID)",
- "Verified Publisher", which shows the mark "Verified" next to the publisher,
- "May Publish to Others",
- "Block Stops Applications", which says whether the applications of the organisation stop while Invantive blocks it.
Deleting an Application
An application that organisations installed is deleted only after a confirmation. The confirmation shows how many organisations installed it, never which ones. Confirming removes every installation, so the application no longer opens for them. The superusers of those organisations receive an e-mail about the deletion.