A Work Allocation Language with Soft Constraints

Christian Stefansen, Sriram K. Rajamani, Parameswaran SeshanCAiSE Forum 2008

Abstract

SoftAlloc is a domain-specific language (DSL) designed to bridge the gap between rigid workflow rules and the messy reality of human resource management. By introducing "soft constraints"—weighted preferences rather than hard requirements—it allows systems to suggest the best person for a task based on organizational goals (like fairness or speed) without accidentally creating bottlenecks when the "ideal" person is unavailable.

Introduction

In traditional computer-orchestrated business processes, task allocation is often treated as a binary problem: either a person is eligible for a task, or they aren't. While this works for computer resources, it fails for humans. Humans have varying workloads, personal preferences, and domain knowledge that a system might not fully capture.

If a workflow designer sets a rule too strictly—for example, requiring that the same employee who sends an invoice also receives the payment—the entire process can grind to a halt if that specific employee is unavailable. Conversely, overly loose rules lose the ability to enforce "best practices." SoftAlloc addresses this "inflexibility trap" by providing a formal way to express preferences that guide the system without paralyzing it.

Example business process workflow where task allocation rules are applied.

The SoftAlloc Language

The core innovation of SoftAlloc lies in the distinction between two types of rules:

  1. Hard Constraints: Standard boolean logic (AND/OR/NOT) that defines who is allowed to do a task (e.g., role = "Finance").
  2. Soft Constraints: Expressed using a prefer keyword followed by a point value. These points act as weights to rank eligible candidates.

SoftAlloc is designed to be parameterized, plugging into existing user databases and process languages like WS-BPEL. It uses a sublanguage for queries—such as #whoDid(task, id) to find a previous actor or #queueItems(user) to check current workload—allowing it to calculate scores for potential candidates in real-time.

Evaluation and Key Insights

The authors evaluated the language using prototype workflows within Infosys’ PEAS platform on common business scenarios, including CRM, sales processes, and bank transactions. Qualitative feedback was also gathered from domain experts in the transportation, finance, and insurance industries.

Key insights from this work include:

  • The "Soft Goal" Realization: Many organizational rules (like "rotate tedious tasks") are actually soft goals. Treating them as hard constraints makes a system brittle.
  • Dynamic Trade-offs: By using a point system, SoftAlloc can handle complex trade-offs. For example, a rule can prefer a Manager unless their queue exceeds a certain threshold, at which point a Finance clerk is preferred.
  • DSL as Data: Because SoftAlloc is a non-recursive DSL, rules can be used for static analysis and performance simulations to identify potential bottlenecks before deployment.

Results and Future Work

The language was successfully integrated into the production-grade Infosys PEAS platform. It demonstrated superior expressiveness in modeling complex patterns like "round-robin" assignment and "least-loaded resource" allocation compared to previous frameworks. In industries like insurance and call centers, it proved to be a powerful tool for supporting floor managers by automating routine scheduling duties.

Future work includes addressing spatiotemporal constraints for the transportation industry, improving usability through a GUI for non-programmers, and developing a standardized collection of "soft constraint patterns."

Summary updated

BibTeX
@inproceedings{stefansen2008work,
  author = {Christian Stefansen and Sriram K. Rajamani and Parameswaran Seshan},
  title = {{A Work Allocation Language with Soft Constraints}},
  booktitle = {CAiSE Forum},
  year = {2008},
}
Figure