Skip to content
VibecatDocumentation

Sample web applications

Small servlet applications that show how to use Vibecat: JNDI data sources of the container, REST described with OpenAPI 3, CloccoJS pages. They are in the setup package below samples. They carry demo data only; protect them before real data goes in.

Sample WAR What it does
Cockpit cockpit.war One tree over the other web applications; customizing with roles under /cockpit/admin.
Contacts contacts.war Company and personal contacts with profiles, REST, 2000 synthetic customers, CSV import, SMS drafts for selected contacts; DE, EN, FR, IT, ES.
Due dates and transfers duedates.war Tax due dates of Austrian companies and the transfer to the tax office as a Girocode (EPC QR code). Uses the JavaScript Libraries plug-in.
Flows flows.war Workflow automation over the REST interfaces of the samples, with a workflow editor.
Free / busy booking freebusy.war Resources, availability, bookings, pre-blocks with a hold, final blocks, free / busy calculation, slot list import.
Phone calls phonecalls.war Takes call history through REST and lists it with search and tags.
SMS send smssend.war Draft pool for SMS and WhatsApp: composed by workflows, released by a person, delivered by a gateway.
Time recording timerec.war Records working times.
URL codes urlcodes.war Short link codes (3 days by default) for SMS, synchronised to a booking page.

Cockpit

/cockpit/ shows the web applications of the server in a tree (Customers, Communication, Appointments, Work, Automation); the selected one appears on the right in a frame. The applications stay separate and keep their own login and roles.

  • Customizing (/cockpit/admin/, role admin): which pages appear, label, group, order, a node for api.html and the roles that see an entry. The default is admin, as the samples ask for it; an entry without a role is shown to every signed-in user.
  • Running web applications that are not listed yet are offered there, switched off.
  • Language: German, English, French, Italian or Spanish, handed to the applications. Contacts follows all five, Free / busy and its booking page the languages they offer; the other samples are English only.
  • One login: every sample has its own login realm. To sign in once, add the host valve org.apache.catalina.authenticator.SingleSignOn under Valves (it applies to all web applications).

From a contact list to a booked appointment

  1. Contacts, tab CSV import: load the semicolon export (CSV or TXT, at most 700 KB). Empty rows are ignored, known customer numbers are reused, and the contacts of the file are selected afterwards.
  2. Free / busy, tab Slots & AI: Import slot list for a resource (rows label;dd.MM.yyyy;HH:mm). File and resource give a stable import ID, so a repeated import does not double the slots.
  3. Contacts: select the contacts, Invoke flow: SMS-Versand, choose an SMS template with link, the booking import and the validity of the link.
  4. Flows runs ForEach contact: one personal URL code (context contactId, importId, runId) and one SMS draft. Nothing is sent before a person releases the drafts in SMS send.
  5. The recipient opens the link and sees only the slots of this import. A booked slot disappears for everybody else; a cancelled one comes back.
  6. The synchronisation brings the booking back to Free / busy with contact, import and run ID.

Flows

Definitions are built in the CloccoJS workflow editor from REST steps and ForEach containers. ${variable.path} takes the input or an earlier result. Only the REST interfaces of the samples on the same Vibecat can be called: no other addresses, no scripts. Runs are synchronous (at most 1000 items and 10000 steps), a failed item is recorded and the run goes on. An interrupted run is not resumed. REST: GET/PUT /flows/api/flows/{id}, POST /flows/api/flows/{id}/run, GET /flows/api/runs.

  • A code made for a contact tells the booking page only that the customer is known (customerData: true), never name, e-mail or phone. The page then asks for the message only and stores nothing else; no confirmation mail goes to the visitor.
  • Codes synchronised before this version get the flag with their next change, for example extend.
  • The languages of the page are configured in data/config.json (languages: de, en, it, fr, es). On port 7443 the page shows Test System.
  • On CloccoPHP use a runtime from 2026-12-03 or newer: older builds do not lock files, and two visitors can take the same slot.

Languages

Contacts has the CloccoJS language selector (German, English, French, Italian, Spanish; also ?lang=de). Free / busy administration: English, German, Italian, Spanish. Server messages and Swagger UI stay English.

SMS and WhatsApp channel

POST /api/drafts composes a draft (externalKey makes it idempotent), Release sends it (or leaves it in the pool until sendAt). A draft has the channel sms (default) or whatsapp (WhatsApp Business Platform, Cloud API):

  • A WhatsApp message needs an opt-in; STOP on any channel blocks the number, revokes the opt-in and cancels pending messages.
  • Outside the 24 hour window only approved Meta templates go out (setting whatsapp.templates).
  • The webhook /smssend/whatsapp/webhook needs public HTTPS and checks the signature of Meta.
  • Tested against a mock of the Graph API, not against the real Meta API.

Back to the overview

WIKI · PRIVACY

Your cookie preferences

DokuWiki uses necessary cookies for sessions, sign-in and your preferences. Your choice is stored for one year in a site cookie. Optional external content is loaded only when you allow it. No analytics service is added by this plugin.

Only applies to content explicitly deferred by this plugin. Third-party providers may receive your IP address and set cookies when that content loads.

vibecat/samples.txt · Last modified: by *.*.*.*