Professional Documents
Culture Documents
ABSTRACT: Traditionally, Workflow management systems (WfMS) support static processes which do not change
frequently. Modern workflows systems require a lot of flexibility i.e. the capability to react to changes in the workflow
during its execution and a great degree of adaptivity. The agent technology seems to be a good candidate to these
requirements. One solution is that the workflow enactment is done by a mobile agent. These systems are so complex
such as the usage of formal tools for verification, simulation and prototyping to facilitate their design and their
validation is essential and of great interest. In general, improved methods are needed to insure reliability, security and
robustness of different components of automated business processes systems such as workflows. The aim of this paper
is twofold: firstly we discuss the importance of applying agent technology to workflows and then a new formal method
based on rewriting logic is proposed to verify mobile agent based workflows and to enable their rapid prototyping.
KEYWORDS: flexible workflows, mobile agents, formal verification, rapid prototyping, rewriting logic, Maude.
In practice a theory of rewriting T=(Σ, E, L, R) can be This rule has no meaning in rewriting logic because
used as an executable specification allowing a rapid changes in time are irreversible.
prototyping of the modelled system and its checking.
3.2 The MAUDE Language.
The states of the system are specified as algebraic data
types, the basic changes which may occur in the system MAUDE (Duran and Meseguer 2007) is a fully reflective
and in parallel are specified by rewriting rules, the set of programming language and development environment
axioms E capture the structural properties of the system, based on rewriting logic and its equational logic
a possible state of the system is represented by an sublanguage to specify formal executable environments.
equivalence class t of a term t
modulo the structural The reflective nature of rewriting logic allows MAUDE
axioms E . programs to define their own syntax, operations, and
Given a rewrite theory R, we say that R entails a data types to model the behaviour of concurrent systems.
Full MAUDE is an object-oriented formal language
sequent t t and write
derived from MAUDE. In Full MAUDE a class defines
the structure of an object, and objects are specific
R t t if and only if t t can be obtained instances of a class.
by finite application of the following rules of deduction :
A class consists of a class identifier (Cid), which is a
Reflexivity. sort, and a list of attributes that are sorts, including class
or object identifiers. Classes also support multiple
t T , E ( X )
inheritance with subclasses that inherit all the attributes
of parent classes.
"
< Q1: D1 / atts1 > … < Op: Dp / The workflow enactment in MOBIFLEX is performed
by an M-Worker which is a mobile worker. In this work
atts"
p > m1' ,..., m 'q if C a particular interest is given to the behaviour of the
mobile agent when enacting the workflow; i.e. when
pursuing its itinerary.
where the m1,…,mn are message expressions,
O1,…,On ; Oi1, … ,Oik and Q1,…, Qn are objects such as 4.1 related works.
{ Oi1, … ,Oik } { O1,…,On }
In literature, only few works dealing with formal
C is the rule’s condition. A rule of this kind expresses a specification of mobile agents migrations can be found.
communication event in which n messages and m
distinct objects participate. The outcome of such an In Ling and Loke (2002) the authors discuss how
event is as follows: mobile agent enabled interorganizational workflows can
be usefully modelled using advanced Petri Net
The messages m1,. . . , mn disappear; techniques such as Interorganizational Workflow Nets.
The state and possibly even the class of the This model provides a means to verify the correctness
objects Oi1, … ,Oik may change; (and, so the viability) of the itineraries of agents used in
All other objects vanish; enacting interorganizational workflows. the authors used
New objects Q1,…, Qn are created ; the a special class of Petri nets, called Workflow nets
4 VERIFYING MOBILE AGENT BASED In Ferreira et al. (2004) the paper presents results of a
WORKFLOW ENACTMENT IN REWRITING performance comparative study of the three mobile
LOGIC. agents design patterns presented in Ferreira et al. (2003).
The Itinerary, Star-Shaped and Branching migration
This section tries to propose a formal framework for patterns were investigated as solutions to a distributed
specifying and verifying mobile agents based workflows, information retrieval system. The itinerary assumes the
where the enactment is performed by mobile agents. migration of the agent over a sequence of hosts to do a
MOBIFLEX as shown above is a typical example of such given job and then return back to the source agency. In
systems, the workflow enactment can be seen as a the Star-Shaped pattern, the agent migrates to the first
complex combination of mobile agents moving over a destination agency in the list, executes the relevant job
set of nodes where reside Web-Services, these Web- and comes back to the source agency, the agent repeats
Services can be simple ones or composite ones i.e. BPEL this cycle until the last agency on its list is visited. In the
processes. Figure 2 shows the two layers of MOBIFLEX Branching pattern, the agent clones itself according to
architecture, a static service oriented layer (called here the numbers of agencies in the defined itinerary, each
the SO_Layer) is the Web-Services platform of the clone migrates to one agency, executes its job and
enterprise, and a dynamic layer obtained by a notifies the source agency when the job is completed.
reconfigurable and very flexible workflow enactment The three solutions were modelled with timed Coloured
patterns to be performed by mobile agents over the Petri Nets.
static layer (called the MA_Layer).
In Satoh (2004), the paper an agent itinerary
specification language is defined, the specification
language is basically inherited from those of existing
process algebras, e.g., CCS and π-calculus, because,
according to the authors, they provide well-studied
foundations.
section proposes a rewriting logic based operational respectively s1,s2 and s3 ; this can be expressed as
semantics in term of MAUDE rules. The configuration is follows: As 0 As1 As 2 As 3
nil a1 a2 a3
REFERENCES
Stormer H. 2000. Task Scheduling in Agent-Based WFMC 99. 1999. Workflow Management Coalition
Workflow in Proceeding of International ICSC Terminology and Glossary [online]. Document
Congress on Intelligent Systems and Number WFMC-TC-1011. Available from
Applications (MAMA'2000: Multi-Agents and http://www.wfmc.org/standards/docs/TC-
Mobile Agents in Virtual Organizations and E- 1011_term_glossary_v3.pdf [Accessed date
Commerce). December 11-13, Wollongong, mars 09].
Australia Xu, D. and Wang, H. 2002. Multi-agent collaboration
Tahara Y. and Ohsuga A. Behaviour Patterns for for B2B workflow monitoring. Knowledge-
Mobile Agent Systems from the Development Based Systems. 15(1) 485–491.
Process Viewpoint . 2001. Proc. of the 5th Yang; Z. Lu, S. Yang, P. 2006. Runtime Security
International Symposium on Autonomous Verification for Itinerary-Driven Mobile
Decentralized Systems, 239 – 242. Agents. 2nd IEEE International Symposium on
Trappey, A. J. C. Trappey, C. V. Hou, J. L. and Chen, Dependable, Autonomic and Secure Computin.,
B. J. G. 2004. Mobile agent technology and 177 – 186.
application for online global logistic services. Zhuge, H. Workflow and agent-based cognitive flow
Industrial Management and Data System. management for distributed team cooperation. 2003.
104(2) 169–183. Information and Management. 40(1) 419–429