Fieldline: Launch Your Own Field Service App, With a Scheduler That Plans the Week
Fieldline is a complete field service app and server you can generate from the Initializr: technicians follow their day on a map, dispatchers drag work on a Gantt chart, an optimizer plans and repairs the week around skills, hours and travel, and an…

One of my first jobs was at a scheduling company. I wrote heuristic algorithms that assigned work to people under constraints, and drew the result as Gantt charts that planners stared at all day. It's a brutal field. Every customer has a rule nobody told you about, a technician who can't work Tuesdays, a site that only opens at nine, a van that can't carry two jobs' worth of parts. The optimizer that handles all of it is the product, and building one used to take a team several years.
Fieldline is that product as a template. Open the Initializr, pick the field service template, and you get a working app for technicians, dispatchers and administrators, the server behind it, and a scheduling engine that plans their week. The source is MIT-0. Change it, sell it, keep your changes private.
The technician's day
A technician opens the app on today: the jobs as a numbered route on a map, with the travel time between stops. They drive, check in on site, work through a checklist that saves as they go, and photograph what they find. The assistant looks at the photo and suggests a diagnosis. At the end, the app drafts the report and the customer signs on the screen. The signature is sealed with a hash of the signature, the time and the place, so nobody argues later about whether the job was done.
Today, as a route.
The checklist saves as you go.
An expert on call, in the app.
Download the technician video.
The dispatcher's board
A dispatcher sees the whole crew three ways: a timeline, a Gantt chart against the last plan, and a map. Drag a job to another technician and every constraint is checked before the move is applied. A new job is placed automatically. Someone calls in sick and their absence is covered in one tap. Every optimizer run lists what it changed and why, because a planner who can't see the reasoning will never trust the machine.
And they can just ask. "Dana is out Thursday, cover her jobs" re-plans Thursday. The assistant runs behind the server's own API key, so the key never ships inside the app.
The Gantt chart against the last plan.
Every change, explained.
Re-planning in plain words.
Download the back office video.
The optimizer is plain Java you own
The scheduling engine lives in the shared module, with no dependencies and no I/O. It models technicians, jobs and shifts, with hard constraints that can never break (skills, working hours, time windows, time off, maximum driving) and soft ones you weigh against each other (travel, overtime, keeping work where it was).
Problem problem = Instances.city(42, 8, 60, 3).problem();
Plan plan = new Solver(problem, 99).iterations(400).solve().toPlan();
List<String> broken = PlanChecker.violations(problem, plan); // always empty
The Solver starts with regret insertion, then improves the plan with adaptive large neighborhood search. It's seeded, so the same seed gives the same plan, which makes it testable. The test suite runs 25 random cities with random crews and asserts that not one hard constraint is ever violated. The Reoptimizer handles the part that kills most scheduling software: the day changes at 10:40, and the new plan has to fix the problem without reshuffling every technician who's already on the road.
It runs on the server, and because it's written in the Java subset Codename One compiles, it builds for the client too. Planning a technician's own day on the device, with no signal, is a few lines away.
Five languages, four databases, real maps
Fieldline runs on iOS, Android, the desktop and the web, in English, Spanish, French, German, and Hebrew. The maps are real OpenStreetMap vector tiles and need no key. The server pushes changes over a WebSocket as they happen, sends push notifications, and runs on SQLite, PostgreSQL, MySQL, or MariaDB. The app and the server share one contract module, so a field one side renamed is a compile error on the other.
The demo accounts are on the Fieldline page, and the user's guide walks through every screen.
Scheduling problems are everywhere
Remember the scheduling company I mentioned at the start. Scheduling workers was only one of its projects.
I worked on a system that placed children moving from grade school into middle school: the right school, with the right class following them, under a pile of constraints about distance, siblings, class sizes and who must or must not end up together. I also worked on scheduling chips through the manufacturing pipeline of a major fab. It turns out the order in which chips are produced is crucial for the throughput of the whole line, and it's very hard to calculate.
This is a deep field, and once you start looking you see scheduling problems everywhere. Nurses and shifts. Trucks and loading docks. Exams and rooms. Machines and maintenance windows. Every one of them is the same shape as Fieldline's: resources, jobs, hard rules that can never break and soft goals to weigh against each other.
They used to need a specialist team and years of work. Now you can start from a solver that's already tested, model your own constraints in plain Java, and get to a working answer in days. The rules only your customers have, the integration with their ERP, the spreadsheet the operations manager won't give up (import it, it's a spreadsheet now): that's where your work starts.
Tomorrow: diagrams, flowcharts and Kanban boards as standard components.
About the author
Entrepreneur, author, blogger, open source hacker, speaker, Java rockstar, developer advocate and more. ex-Sun/Oracle guy with 30 years of professional development experience. Shai built virtual machines, development tools, mobile phone environments, banking systems, startup/enterprise backends, user interfaces, development frameworks and much more. Shai is an award winning highly rated speaker with a knack for engaging the audience and deep technical chops.
Comments
Join the discussionNo comments yet. Be the first to comment.





