Building a MultiAgent System from a User Workflow Specification

Ezio Bartocci, Flavio Corradini, Emanuela Merelli

Abstract

This paper presents a formal methodology for the automated transformation of high-level, domain-specific user workflows into executable MultiAgent Systems (MAS). Utilizing Petri nets as a mathematical foundation, the proposed approach bridges the gap between conceptual scientific processes and the distributed implementation required for grid middleware.

Introduction: The Impedance Mismatch

In the realm of distributed computing, a significant "impedance mismatch" exists between domain experts and system architects. Scientists often possess a clear understanding of the logical steps required for their research—such as DNA sequence alignment—but lack the technical expertise to manage autonomous agent coordination, resource locking, or network mobility.

Traditional Workflow Management Systems (WMS) typically rely on centralized, monolithic architectures that struggle with scalability and resilience in heterogeneous environments. MultiAgent Systems (MAS) offer a decentralized alternative, often described as the "brain" to the Grid's "brawn." However, programming MAS from scratch is notoriously complex. This research aims to automate the transition from user-defined workflows to agent-based execution, abstracting the underlying coordination logic.

Methodology: Formal Transformation

The core of the methodology is a two-step transformation process grounded in Petri nets, providing a formal language for describing distributed systems.

The transformation process from User Workflow Specification (UWS) to Role-based Workflow Specification (RWS) and finally to Interactive Components (ICs).
  1. UWS to RWS (User to Role-based): The high-level User Workflow Specification (UWS) is mapped to a Role-based Workflow Specification (RWS). In this stage, abstract tasks are assigned to specific roles (e.g., assigning a "sequencing" task to a "Bioinformatics Agent"). This allows the user to focus on logic while the system begins organizing resources.
  2. RWS to ICs (Role-based to Interactive Components): The RWS is then translated into Interactive Components (ICs) using the BRICs (Block Representation of Interactive Components) notation.

The Basic Skeleton Architecture

To facilitate decentralized execution, each agent is constructed using a "Basic Skeleton" architecture:

  • MessagesQueue: Manages asynchronous communication between agents.
  • Scheduler: A specialized component that receives tokens (messages), determines the next task based on workflow logic, and maintains the agent's state.
  • Act Components: Modular units responsible for performing domain-specific tasks.

Case Study: Bioinformatics

The methodology was validated through a bioinformatics case study involving an in-silico experiment to align homologous DNA sequences. The workflow included retrieving gene sequences from NCBI Genbank, searching the Protein Data Bank (PDB), merging sequences, and performing global alignment. This practical application demonstrated the system's ability to handle real-world scientific processes.

Key Results and Pattern Mapping

A primary achievement of this work is the successful mapping of standard workflow routing primitives into agent-based Petri net structures.

Mapping of standard workflow patterns (AND, XOR, AND/OR) into formal Petri net representations.

The methodology supports:

  • Sequential: Linear task execution.
  • Alternative (Branching): Decision-based paths.
  • Concurrent (Parallel): Simultaneous task execution.
  • Iterative (Looping): Repeated task sequences.

Furthermore, the authors developed a toolchain comprising WebWFlow (a graphical editor) and an XPDLCompiler. This compiler translates XML-based workflow definitions into Java bytecode compatible with the Hermes middleware. This integration supports agent mobility, allowing execution to migrate across network nodes to optimize for resource availability or data proximity.

Conclusion and Future Work

By employing Petri nets (specifically Wf-nets and BRICs), the authors ensure a mathematically sound transformation independent of vendor-specific languages. This separation of concerns allows users to remain in the "User Domain" while the "Agent Domain" handles distributed complexity.

Future research will focus on extending communication models beyond direct message-passing to include uncoupled communication (e.g., tuple spaces). Additionally, the authors aim to implement stricter formal validation to ensure the final Java implementation perfectly mirrors the original Petri net models and to explore more dynamic resource negotiation strategies.

Summary updated

BibTeX
@inproceedings{bartocci2006building,
  author = {Ezio Bartocci and Flavio Corradini and Emanuela Merelli},
  title = {{Building a MultiAgent System from a User Workflow Specification}},
  booktitle = {WOA},
  year = {2006},
}
Figure