SAI HypercubeDecomposition
SAI HypercubeDecomposition
Abstract—This paper deals with the optimization of busi- Model Checking (MC)[5], [9] and Automated Theorem
ness processes(BP) verification by simplifying their equivalent Proving (ATP)[10], [11].
algebraic expressions. Actual approaches of business processes
verification use formal methods such as automated theorem The MC approach uses software called model checker to
proving and model checking to verify the accuracy of the business exhaustively check whether an abstraction equivalent structure
process design. Those processes are abstracted to mathematical of the BP satisfies some properties expressed in temporal
models in order to make the verification task possible. However, logics. Simple Promela INterpreter (SPIN) is a widely used
the structure of those mathematical models is usually a Boolean model checker that verifies if a model writen in a C-like
expression of the business process variables and gateways. Thus modeling language called Process Meta LAnguage(Promela),
leading to a combinatorial explosion when the number of literals meets properties expressed as Linear Temporal Logic (LTL)
is above a certain threshold. This work aims at optimizing the
formulas[12], [13], [14]. Although this method has the advan-
verification task by managing the problem size.
tage of indicating the counter example violating the checked
A novel algorithm of Boolean simplification is proposed. propriety, it suffers from the state explosion problem[12] since
It uses hypercube graph decomposition to find the minimal its complexity is too high and the number of states grows
equivalent formula of a business process model given in its dis- exponentially.
junctive normal form(DNF). Moreover, the optimization method
is totally automated and can be applied to any business process The ATP (or automated deduction) is a subfield of math-
having the same formula due to the independence of the Boolean ematical logic dealing with automatic (or semi-automatic)
simplification rules from the studied processes. proving of mathematical theorems. The computer programs
This new approach has been numerically validated by com- allowing this task are called theorem provers[15].
paring its performance against the state of the art method Quine- First-order theorem proving is one of the most mature
McCluskey(QM) through the optimization of several processes subfields of ATP thanks to its expressivity that allows the
with various types of branching.
specification of arbitrary problems[16]. However, some state-
Keywords—Business process verification; Minimal disjunctive ments are undecidable[17] in the theory used to describe the
normal form; Boolean reduction; Hypercube graph; Karnaugh model. thereby, current research [18], [17], [19] deal with the
map; Quine-McCluskey challenge of finding subclasses of first-order logic(FOL) that
are suitable and decidable in the mapping of such models.
I. I NTRODUCTION Higher order logics are more expressive and can map wider
Business processes are key assets of any organization or range of problems than FOL, but theorem proving for these
information system[1], [2]. They are the communication inter- logics is not as developed as in the FOL[20].
face and the medium of exchange between the organization Regardless the used approach to verify a BP, its logical
stakeholders[3]. structure is deducted as a propositional logic formula written
BP describe the core business and govern the operation of in Disjunctive Normal Form(DNF)[2], [7]. The DNF can be
a system. Business Process Model and Notation (BPMN) reduced to a minimal form in order for the manipulation and
is the wide used standard for modeling BP in view of its practical implementation to become more efficient. Thus, an
simplicity and usability[4], [5]. Nevertheless, BP may contain optimization of the PB verification is achieved.
structural flaws[5] due to poor design or human errors. Hence, Since the simplification of Boolean expressions is exten-
the verification task is a crucial step between the modeling and sively used in the analysis and design of algorithms and logical
the execution phases of any BP. The complexity of real-life BP circuits, several methods were developed to perform this task:
and the use of automated modeling tools often lead to complex
models called “spaghetti” process models[6], [7] where manual − The algebraic manipulation of the Boolean expres-
verification is difficult to perform[8]. Therefore, automated for- sions aims at finding an equivalent expression by
mal methods are used instead. Automatic verification includes: applying the laws of Boolean algebra. However, for
www.ijacsa.thesai.org 1|Page
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. XXX, No. XXX, 2019
Prepare package
multiplication A∧0=0 A∧1=A A∧A=A A∧A=0
identify the
for customer
payment method
Credit Card
Table II. B OOLEAN ALGEBRA PROPERTIES
Process Credit
Card Decision gateway
m0
m1 m2 m4 m8
m6
Fig. 4. Construction of hypercube Qn from two Qn−1 hypercubes m3 m5 m10 m12
m9
Lemma III.1 Let Qn be a hypercube graph with n > 0 In the next section, an explanation of how the lemma III.1
minterms mi where i ∈ [0, 2n [. Let f be a DNF formula can be used as a key stone to perform the simplication of any
given by the disjunction of all Qn minterms. Then n variables formula written in DNF is given.
of f can be simplified. The abstracted equivalent formula is
easily obtained by identifying the common literals between IV. T HE S IMPLIFICATION ALGORITHM
the minterm with maximum shorthand notation value (denoted
In order to simplify a Boolean expression written in DNF,
mmax ) and the one with the minimum shorthand notation
its expression is represented as a partial cube P Qn of the
value (denoted mmin ). This abstraction is chosen to be called:
hypercube graph Qn , with n the number of variables in the
abstraction mmax with filter mmin .
DNF formula. The developed algorithm consists in finding the
largest elements (hypercubes) Qm , with m ≤ n, so that their
Proof: For instance, if n = 1 then Q1 is composed of disjoint union covers all vertices of the partial cube P Qn .
two minterms m0 and m1 of one variable v0 . By applying the The fewer is the number of necessary hypercubes Qm , the
identity v0 + v0 = 1, an abstraction of the variable v0 is given more abstract is the equivalent formula. As an example, the
(abstraction m1 with the filter m0 ). following DNF formula can be considered:
If n = 2 then Q2 is composed of four minterms f (A, B, C, D) = A B CD + A BCD + ABC D+
{m0 , m1 , m2 , m3 } each one is composed of two variables v0
ABCD + ABCD + AB CD + ABCD+
and v1 . By applying the same identity to two opposite sides
of Q2 an abstraction of the variables v0 and v1 is given (the ABC D + ABCD + ABCD (7)
abstraction m3 with the filter m0 ). In fact:
This formula is represented as a partial cube P Q4 with
f = m0 + m1 + m2 + m3 = v1 .v0 ∨ v1 .v0 ∨ v1 .v0 ∨ v1 .v0 vertices m1 , m3 , m4 , m5 , m7 , m9 , m11 , m12 , m13 , and
f = v1 .(v0 ∨ v0 ) ∨ v1 .(v0 ∨ v0 ) = v1 ∨ v1 = 1 m15 . Fig. 5 shows that the vertices of P Q4 (green and
yellow vertices) can be covered with the disjoint union of two
Let us assume that the lemma III.1 is correct for any hypercubes Q3 and Q2 .
n > 0. Let Q1n and Q2n be two hypercubes that their Using lemma III.1, three variables A, B, and C can
disjoint union form the hypercube Qn+1 . Each minterm mx = be reduced with the hypercube Q3 composed of vertices
mVn Vn−1 ...V2 V1 V0 )2 in Q1n forms a perfect matching with {m1 , m3 , m5 , m7 , m9 , m11 , m13 , m15 }. Thus Q3 is reduced to
another minterm my = mVn Vn−1 ...V2 V1 V0 )2 in Q2n . mx and m15 with the filter m1 which is equivalent to the expression D
my can be abstracted to mx because they differ by the value since it is the only variable that remains with the same value
of a single variable vn . In fact: in all minterms of Q3 (we have mmax = m15 = m1111)2 and
mmin = m1 = m0001)2 the abstraction is − − −1)2 ).
f = mx + my = Vn Vn−1 ...V2 V1 V0 ∨ Vn Vn−1 ...V2 V1 V0 The hypercube Q2 , composed of {m4 , m5 , m12 , m13 },
gives an abstraction of tow variables A and D. Thus Q2 is
f = (Vn ∨ Vn )Vn−1 ...V2 V1 V0 = Vn−1 ...V2 V1 V0 = mx reduced to m13 with the filter m4 which is equivalent to
www.ijacsa.thesai.org 4|Page
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. XXX, No. XXX, 2019
flaws that are hard to detect with manual verification, which R EFERENCES
gives extreme importance to automatic verification. Formal [1] R. Heinrich, P. Merkle, J. Henss, and B. Paech, “Integrating business
methods verification algorithms suffer from the high complex- process simulation and information system simulation for performance
ity since the problem they try to solve is NP-hard, hence the prediction,” Softw Syst Mod, vol. 16, no. 1, pp. 257–277, 2017.
necessity to reduce the problem size by minimizing the number [2] D. Batory, “Feature models, grammars, and propositional formulas,” in
of literals. International Conference on Software Product Lines. Springer, 2005,
pp. 7–20.
In this paper, a novel technique of business processes [3] J. Stark, “Product lifecycle management,” in Product Lifecycle Man-
simplification has been presented. A simplication tool that agement. Springer, 2015, vol. 1, pp. 1–29.
performs literals reduction using hypercube decomposition has [4] H. Völzer, “An overview of bpmn 2.0 and its potential use,” in Inter-
been built. Moreover, the simplification algorithm was entirely national Workshop on Business Process Modeling Notation. Springer,
automated which makes the optimization task accessible to 2010, pp. 14–15.
the regular BP designers. Promising subject of research can [5] W. M. P. Van Der Aalst, M. L. Rosa, and F. M. Santoro, “Business
process management - don’t forget to improve the process!” Bus Inform
be explored in further depth, such as how machine learning Syst Eng, vol. 58, no. 1, pp. 1–6, 2016.
algorithms could be used to accelerate the simplification al-
[6] V. Gruhn and R. Laue, “Complexity metrics for business process mod-
gorithm, how the algorithm can be modified to reduce the els,” in 9th international conference on business information systems
spatial complexity, and finally, the possibility of adapting the (BIS 2006), vol. 85. Citeseer, 2006, pp. 1–12.
algorithm, view its characteristics, for quantum computing. [7] K. Batoulis, A. Meyer, E. Bazhenova, G. Decker, and M. Weske,
“Extracting decision logic from process models,” in International Con-
ference on Advanced Information Systems Engineering. Springer, 2015,
pp. 349–366.
[8] A. Förster, G. Engels, T. Schattkowsky, and R. V. D. Straeten, “Verifi-
cation of business process quality constraints based on visual process
patterns,” in First Joint IEEE/IFIP Symposium on Theoretical Aspects
of Software Engineering, TASE 2007, June 5-8, 2007, Shanghai, China.
IEEE Computer Society, 2007, pp. 197–208.
[9] A. Elgammal, O. Turetken, W.-J. van den Heuvel, and M. Papazoglou,
“Formalizing and appling compliance patterns for business process
compliance,” Softw Syst Model, vol. 15, no. 1, pp. 119–146, 2016.
[10] X. Tan, Y. Gu, and J. X. Huang, “An ontological account of flow-control
components in bpmn process models,” Big Data Inf Anal, vol. 2, no. 2,
pp. 177–189, 2017.
[11] S. Mallek, N. Daclin, V. Chapurlat, and B. Vallespir, “Enabling model
checking for collaborative process analysis: from bpmn to ‘network of
timed automata’,” Entrep Inf Syst - UK, vol. 9, no. 3, pp. 279–299,
2015.
www.ijacsa.thesai.org 6|Page
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. XXX, No. XXX, 2019
www.ijacsa.thesai.org 7|Page