1. Introduction
On the one hand, in thispaper, we suggest a Workflow P-Timed Stochastic Petri Net model (WPTSPN) for a Flexible Manufacturing System (FMS) management process to describe and decide how business activities are carried out. Next, we show the generic (P-timed) characteristicsrelating to reachability, safety, boredness, liveness, properness, and alive-tokens, followed by a description of our model semantics. On the other hand, we propose an extension of stochastic Petri nets (SPNs). Weverify the properties of this model using a new notation and expressiveness-specific features related to the randomresidences of tokens in timed places. This allows us to detectex ecution failures linked either to FMS steps or to interactions between resources used in the business process. First, to introduce the application field of this work, we present the complexities and complicated dynamism of resource allocation and execution in the industrial process. FMS [1] modeling has been introduced for the analysis, verification, and optimization of a manufacturing system [2] [3] according to various criteria. The objective is to evaluate and compare the architectures of production systems to select the most suitable according to previously established decision criteria [2] . This process involves the use of formal models ensuring specification, analysis, evaluation, and verification [4] [5] .
So, production companies must develop a strategy that ensures control over their operations if they are to profit from the business process paradigm [1] . To achieve this, they must tend to totally or partially automate their processes because this method is apt to show the efficiency and tendency towards this objective [1] [5] . Several research works propose methodologies for modeling and automating business processes [4] [6] [7] [8] .
Second, the need to model an FMS to achieve automation, control, analysis, and optimization of the elementary activities that make up its representative business process [2] . A variety of business process modeling methods [9] (specification and representation) are used to practically specify work procedures from a global perspective to describe their operational requirements. We can mention among these methods the activity diagram UML (Unified Modeling Language), Chain Event-Driven Process [10] (EPC) and Business Process Modeling and Scoring (BPMN) [11] . We consider BPMN [11] [12] [13] [14] as a standard for process modeling. It provides a graphical notation-based representation for business process modeling [15] . To build a standard annotation and expressiveness to make a business process representation understandable and readable for the different users involved in procedures’ automation [16] [17] .
Despite the reality that specification and verification methods are widely used, their application to the business domain remains difficult [8] . This is related to the reasons that business analysts strive to formalize simple approaches to modeling and simulating their processes over a long period of time [18] . These approaches’ disadvantage, according to [8] [18] [19] , comes down to the need for operational expertise (manipulation and simulation). Furthermore, the representative model may deviate from the actual simulated due to the significant increase in the number of tests (time and simulation cost ratio) [8] [18] .
Third, the use of Petri Nets (PNs) to model an FMS management process [8] [18] [20] is justified as follows:
On one hand, industrial companies need a tool that simultaneously merges modeling and simulation processes. Also, this company’s type has a fundamental objective of economic competitiveness, which summarizes the satisfaction of customers’ tendencies with the changes in the environment [21] . Thus, this flexible and competitive aspect requires representation and control via the supply chain simulator and the use of modeling tools that guarantee an acceptable degree of comprehensibility and readability [21] . On second hand, it confirmed that (PNs) can represent a manufacturing system composed of simultaneous and synchronous activities set according to different levels of abstraction [22] [23] [24] . Any formalization based on the PNs [25] [26] [27] applied in the FMS, models the operational knowledge in the workshop, favoring a planning of the processes. So it provides a decision support tool [28] [29] [30] [31] . Additionally, PNs [22] [23] [24] [29] can model manufacturing systems at different levels of abstraction in a hierarchical manner identifying many strategic keys or control points [23] . Thus, PNs based models are used effectively to analyze control problems in real-time [23] [24] . These analyses are useful for understanding the behavioral aspect of real-time operations in an FMS. They effectively ensure a performance and systematic analysis by varying the parameters of the system represented.
We can list the works related to modeling FMS (Flexible Manufacturing System) with PN (Petri Nets) as follows:
· In [32] , the author uses the PNs in modeling and controlling the FMS. The control function is divided into two levels: their proposed model based on PN [32] represents the lower level of control for each device in a cell and the upper level which deals with a decision framework about priority sequencing to avoid collisions.
· In [33] [34] , the authors propose a model based on timed Petri nets (TPN) to model and analyze a production process. Also, they show an approach for translating TPN into linear algebraic equations. Evaluation and monitoring of production system performance can be done through the use of efficient algorithms to solve these last equations [33] [34] .
· In [35] [36] , a software package called Generalized Stochastic Petri-Net Analysis (GSPNA), is used to study the complex and dynamic behavior of a system. So, GSPN can achieve a more accurate and refined representation of a FMS than classical techniques such as network-based queuing [24] [35] - [39] .
On the other hand, the interest in orienting our proposed model towards the P-timed semantics of PNs [40] [41] [42] is summarized in the fact that they effectively ensure the analysis as well as the verification of the dynamic behaviors of the systems they model. The latter (P-timed PN) combines two different approaches to analyze the behavior and study the properties of a model: the time interval approach and the tokens-age approach. That is to say that the first allows a better study of the behavior while it is preferable to use the second for the analysis of the properties of the model. Moreover, our proposed extension of P-timed SPN orientation [43] [44] [45] is based on the assumption that all model transitions must be fired. Therefore, the arrival times of the tokens in the places that are synchronization transition entry places must be compatible. However, another advantage of this extension is that it randomly models (specifies) the minimum residence times and the maximum residence times of the tokens in all the places of the model (even those that are upstream of the synchronization transitions) [41] . This advantage is not possible with other classic PN models [35] [36] [46] [47] .
When we analyze the work related to modeling with Stochastic Petri Nets, we find:
· The authors [48] [49] [50] propose a model named non-Markovian SPN. They show that Non-Markovian SPN allows specifying the behavior of a system by representing the system more realistically. According to their modeling approach, each transition is characterized by a distributed random duration. This representation adopts bounded support laws with a predetermined probability density. Also, they use the maximum density method to estimate the firing time of the transitions [49] [50] .
· The authors [7] [19] propose a second level (refined representation) described by the intermediate locations (micro locations), the micro-transitions, and their firing preconditions according to a micro-level life cycle (token consumption phase, execution phase, and token production phase).
So our model based on P-timed SPN captures the random time requirements in the structure of the representative model of an FMS. In this work, we propose an extension of SPN with a P-timed orientation in specification and verification. The model referred to as Workflows P-Timed Stochastic Petri Nets (WPTSPN) enables life cycle specification and control of tokens circulating in the timed places according to sequences of transitions. This is fulfilled through granting to each places a dynamic residence interval. This residence time allocated to a place follows a law of probability determined via three possible densities (exponential, normal, and log-normal). To determine the average residence time granted to each token, we chose the gravity center of the density method, for precision accuracy. Hence, this model adopts the formal verification tools to conform to the P-timed orientation, knowing that such an orientation brings verification of the token's life cycle in timed places. From where we redefine a formalism of verification according to this semantics Thus, the model proposes a prediction approach of the delay related to the time of residence granted to the tokens in the timed places. In an FMS context, it should be noted that the delay in residence (stay) of the tokens in a place can mean the expiration time of primary material or semi-finished material. So, our work focuses on the Workflow performance aspect through Stochastic Petri Nets (SPN) [46] [47] [51] use. Hence, we propose a SPN extension, named Workflow P-Timed Stochastic Petri Net (WPTSPN), able to specify, check FMS-workflow, also predict time of stay (residence) in activity lifecycle.
In other words, we provide a P-timed SPN extension that provides expressive specification, verification, and performance analysis of FMS business processes. So, the WPTSPN makes it possible to represent the expressiveness of a FMS business process, to manage and monitor its phases, then to identify any type of execution failure, and to build scenarios of cooperation between actors and their roles in case of failure. Also, this model’ stochastic paradigm favors the delay prediction.
Knowing that several works related to the forecast of the risks of delay have elaborated:
· In the work orientation indicated in [16] , one must emphasize the need to sensitively manage business operations according to risk. In [52] there is a link to a recent survey on the question. According to this study, the majority of prior studies focused on that topic from a qualitative perspective. Some quantitative research methods have recently been offered. The risk indicators for non-compliance with deadlines are described in works [27] [52] and [53] . Also, the work in [7] investigates and analyzes the models’ goals, such as anomalous activity times, and forecasts a case of delay.
· The authors in [52] [53] provide a risk-based simulation prototype design that incorporates resource risks such as hardware failures and business process actor illnesses.
· The model in [7] , which is assumed to be stochastically validated, must include a monitoring system that captures and documents the business process stages, just as the models in [53] and [54] . In this hypothesis, the occurrence earlier-time is applied as an information source to generate an exact accuracy for the representative dynamic system.
Ultimately, P-timed PNs capture time requirements in the model structure. On the one hand, according to the P-timed semantics, it is necessary to assign to each token a local clock (a stopwatch) which measures the time from the moment of arrival in the place. On the other hand, the addition of these counters is useful to check and control the state of non-occurrence of dead tokens (violation of residence time constraints). Moreover, this state of a timed PN is characterized by the current marking and by the value of the clocks associated with the tokens. The latter has very negative consequences for the complexity of the analysis. However, this drawback is only due to the effective complexity of the modeled problem. In our approach, the tools enriching the model make it possible to calculate the cycle time, the times of firing, and the operating margins of the system in mono-periodic operation in residence and firing times. Based on the work performed in [47] and [50] , we extend our model with formal tools that ensure adaption to P-timed semantics. According to the splitted (division) mechanism, this model uses the analytical verification characteristics of the two-level transitions and their related micro-transitions. The density gravity center method is used to identify the firing duration and average random residency of a token in each model place, similar to the method used in [48] . Additionally, the current model adopts a strategy based on elapsed time randomly attached to tokens in timed places specified by randomly residence intervals. We note that randomly interpreting residency intervals is different from the approach in ff which interprets static stay intervals [47] [50] and [54] .
So our WPTSPN accomplishes a verification method based on checking model properties that are related to elapsed time which is randomly stay assigned to tokens in timed places like as in [30] [47] [50] [54] . We apply our model and its adjacent tools to an FMS example which corresponds to the production chain sub-section presented in [4] .
The remainder of this paper is divided into the following sections:
· The basic concepts of our proposed model are defined in Section 2;
· The suggested WPTSPN is depicted in Section 3;
· Section 4 focuses on the real-world implementation of our concept and related tools in the field of FMS Workflow;
· The final section summarizes our work and suggests future research directions.
2. Definitions and Basic Concepts
We define the concept set to introduce our paradigm and the associated formal tools to specify, verify and analyze a complex system such as a FMS-workflow.
2.1. Workflow
To present the strategic, organizational, and operational functions of the management process, we define Workflow [6] [7] . To understand and assess the existing parties in a socio-economic organization, it is crucial to understand the business processes in the organizational structure. They advocate for flexible information system design and deployment. These information systems’ technical foundation is the realization of new products through adaptation to change and market demands. Given the context of managing and guiding businesses, business process management is innovative. According to [5] a business process is any set of actions that include one or more types of input and offer a customer-satisfactory outcome. This definition covers the relationships’ semantics between the inputs and the outputs (pre-condition and post-condition) in a business process. So it is an abstraction of the concept of the process that becomes clear in this definition.
However, a workflow [12] [14] [55] ensures the automation of formal rules to restructure, simulate, and optimize the company’s business processes. According to [56] , the workflow optimization procedure, therefore, concerns the definition of the scheduling of fundamental interdependencies, the representation flexibility, at the time of the action, certain routes integrating the data specific to an instance particular process [18] [56] .
2.2. Petri Nets
In 1962, Carl Adam Petri innovated a formal modeling tool called the Petri Net [57] . They emerged as a powerful graphical tool for the representation of complex system and sequential mechanisms [57] . They have effectively been used for the specification, verification, and analysis of the behavior of complex systems [58] . With a variety of PNs [59] [60] [61] [62] application fields and their efficient uses to specify and verify the dynamic behavior of complex systems, PNs several classes have appeared in the literature. Using the advantages of the SPN to complex systems analysis and verification, we suggest a model that covers the life-cycle of the manufacturing process workflow. To specify, validate, and predict the execution delay associated with the duration of the tokens propagating within firing transitions, we propose a P-timed oriented extension of the SPN [63] [64] . This proposed model, as well as the tools for specification, verification, and evaluation, is presented in the following section.
3. Workflow P-Timed Stochastic Petri Net Model (WPTSPN)
Our WPTSPN is an extension of the SPN that adds new components (timed places, tokens, and transitions) for the FMS-Workflow context. The basic formal concepts of the WPTSPN are covered in this section. The model’s basic characteristics are formulated, interpreted, and illustrated after it has been defined. In addition, this proposed model incorporates WFMS notions [55] [65] , with refinements attributed in [6] and [25] .
3.1. Model Definition
The Workflow P-Timed Stochastic Petri Net, denoted WPTSPN, is the 8-uplets:
WPTSPN:
=<P, Tr, A, Sac, Ac, Typ-tk, GTyp-P, CardM>
·
, represents the finished set of places;
-
: all initial places,
-
: all workflow places,
-
: all resource places,
-
: all final places.
·
, represents the finished set of transitions (non-empty finite set);
-
: immediate transitions set,
-
: determinstic transitions set,
-
: stochastic transitions set.
· A: set of Workflow-actors is non-empty finished;
· Ac: workflow activities finished set;
· Sac: finished set of Sub-activities associated with a Workflow-activity;
· Typ-tk: the representation by our model distinguishes between four token types (activity, sub-activity, actor, and any encapsulation of tokens) then the Typ-tk-function is in charge of this classification.
(1)
· GTyp-P: the representation adopted by our model requires that we distinguish the ordinary places of a PN, those linked to the semantic workflow, and those endowed by a residence time. So, GTyp-P-function makes it possible to distinguish the model’s places.
(2)
· CdM: the marking cardinality of a WPTSPN is a family indexed by the set of places P, such that tokens (tk) in place p:M(p) is an element of CdM(M(p)).
The proposed WPTSPN aims to represent (specify) a flexible production business process according to a P-timed orientation, to then check (verify) the model properties that coincide with the domain of application, and finally to predict the delay relating to the execution of an activity (firing a non-immediate transition of the model). So to achieve these ends, we enrich our model with formal functions.
3.2. Formal Tools Enriching the WPTSPN Model
In this subsection, we enriched our model with the functions to increase the analytical coverage according to the workflow semantics, P-timed orientation, and the random residence time assigned to the tokens during a sequence of firing transitions. These <GDensity, GDistrib, TFringT, IRP, MST, GTruncated, MIP, MPO, MIT, MTO> formal tools are defined as follows:
· GDensity: the probability density function of the WPTSPN components (tokens, and stochastic transitions) represents a stochastic probability density (Normal, Log-Normal, or Exponential).
(3)
· GDistrib: each WPTSPN component (tokens, and stochastic transitions) is assigned an arbitrary probability distribution (Normal, Log-Normal, or Exponential). This assignment is performed by the function GDistrib.
(4)
· TFringT: Our model assigned three probability distributions (Normal, Log-Normal, or Exponential) to each stochastic transition [66] . This function makes it possible to determine each stochastic transition firing time, with TFringT-function, according to the distribution chosen. We use the gravity center method [48] which consists of taking the abscissa corresponding to the gravity center of the each stochastic density transition.
(5)
· IRP: IRPi function defines the static residence (stay) interval of the model’s places (initial or workflow). (
). When it leaves the place
, the output transitions firing becomes equal to
. After this random time (
), the token will be “dead” and will no longer participate in the transitions validation. Formally IRP is expressed as follows:
;
;
;
(6)
· MST: (Mean Stay Time) Taking into account the specificity of the token’s type (activity or sub-activity) in places of our model. So, the MST-function calculates each token’s average stay time in timed locations and which are of type (initial or workflow). We associate time value, framed by the
(
) and the
(
,
), taking into account the random distribution assigned to each token in this place. Practically, we use the gravity center method [48] which determines the abscissa corresponding to the density attributed to the place in question.
(7)
· GTruncated: We use a truncated density function to estimate and predict the delay related to the residence time of a token in a timed place. And for it to cover the densities allocated to the tokens’ residence time in each timed place. We define the generalized truncated density sojourn probability law of a timed place function as follows:
(8)
· Let MIP: the places input-transitions matrix:
(9)
Such that:
, if
, 1 if not
· Let MPO: the places output-transitions matrix :
(10)
Such that:
, if
, 1 if not.
· Let MIT: the transitions input-places matrix:
(11)
Such that:
, if
, 1 if not
· Let MTO: the transitions output-places matrix:
(12)
Such that:
, if
, 1 if not
The firing transitions semantics adopted by the WPTSPN model are defined in the next sections.
3.3. Firing Transitions Semantics Adopted by the WPTSPN
The firing semantics adopted by the WPTSPN depend on three factors: the static stay (residence) interval of the places at the transition input, the stochastic firing time, the average stay time of tokens in workflow entry places, and preconditions related to the interaction between the actors responsible for executing the activity represented by the transition. To explain this firing mechanism, we need to apply it to the context of the transition tr6. According to Table 3, the transition Tr6 which represents the operation below (“Machine run”).
Figure 1 illustrates the tr6 transition and the mechanism of division (splitted) into three micro-transitions:
.
The transition tr6 is stochastic according to the WPTSPN, so we assign a random value of firing time using
and
.
We note that according to the representation semantics of the WPTSPN: Let input places:
and output place:
.
· P0: specifies the park of actors,
;
· P7: specifies the both a machine bounded input and conveyor output buffer,
;
Figure 1. The tr6 transition and their micro-transitions and micro-places according to the division (splitted) mechanism of the WPTSPN.
· P8: specifies place of the maintenance sub-process,
;
· P10: specifies the end of workflow process
;.
It is assumed that non-workflow places (P0, P8), i.e., resources, are not timed, so the tokens they store are always available, such as actors, primary materials, or semi-finished products. The timed place P7 is a workflow place dedicated to storing an activity or sub-activity type token (noted tk:
). Then we assign a static interval of stay (residence):
.
At the moment when the token named tk such that Gtype(tk) = 2 (i.e. of type Sac) instead of p7, we assign it a stochastic value of stay using the density function (
) where ty varies between the three possible distributions of the model
. If there are several (Gtype(tk) = 2) type tokens, an average residence time is used using the
function.
The firing semantics of a stochastic transition with timed places assumes that a time counter is triggered when a token arrives. Let t be the value of this time counter. We associate a token-life-cycle time named
. We discuss the following three cases:
·
; so the tk token is not available.
·
and (
); During Tr6 firing, WPTSPN detects the transition type via the function calls Distinct(Tr6) = 3 and GTyp-dist(Tr6) = ln. We know that the overall firing time value is determined by the function call TFiringT(Tr6, ln). The transition firing Tr6, which is in the sub activity executing charge Sac1, consists in sequentially firing the three micro-transitions Tr6c,
and
. The transition pre-condition
is the uplet <11, time, 1> and the stochastic value (
). The micro-transition firing
is influenced by the stochastic value (
). Once the function activity call is done,
micro-transition firing is achieved. The
firing is immediate; i.e., the token Sac1 is moving towards the place P10 and the two tokens A1 and A3 will be released to the place P0 (the original place before firing Tr6), also a token in place P8.
·
; so the tk token is dead. We note that the tokens which circulate in the three micro-transitions have the same behavior according to the static residence time. Note that each micro transition from the split mechanism inherits a behavior similar to the transition (splitted).
The main properties that generally studied the WPTSPN are verification and checking. First, verification consists in determining the techniques for deciding on each of them. Second, checking, which is based on the dynamic timed evolution to analayze and verify this model properties, is then presented.
3.4. WPTSPN Checking Formal Tools
The WPTSPN model can be used to qualitatively analyze the basic FMS properties to provide the dynamic behavioral aspects of complex systems. The CdM (marking cardinalities graph) associated with the model at any time in time represents the number and position of tokens concerning the places of the model. Firing a transition moves the model into a new marking cardinality. The marking cardinality of an WPTSPN helps to define which places are occupied and which are free.
The model adopts two verification approaches:
· Checking based on the elapsed time following a firing transitions sequence:
- Reachability (Accessibility): A CdM’ marking cardinality is said to be accessible from CdM if there are sequences of markings cardinalities (CdM0 to CdMn) and transitions (
to
,
) such as
is immediately accessible from CdM’ (
) with
and
. The set of each markings cardinalities accessible from CdM is noted the set of reachability.
So reachability seems to be a tool for finding erroneous states, for practical problems the constructed graph usually has far too many states to compute. This allows us to detect execution failures of a business process (FMS) modeled by a WPTSPN.
- Safeness: An WPTSPN is safe if each of its places (
) is safe. So, a place p is safe if it does not contain more than one token. The model transitions if it can fire infinitely often, so if there is always a fixed (necessarily infinite) firing sequence that ensures the execution of a workflow activity.
- Boundeness: A WPTSPN is said to be bounded if it is composed only of bounded places. A place (
) is bounded if there is a limit on the tokens maximum number (
\(
)).
This property indicates that the system represented by a WPTSPN never risks exceeding the storage limits of semi-finished material, finished products, and workers… This property indicates that the system represented by a WPTSPN never risks exceeding the storage limits of semi-finished material, finished products, and workers…
- Conservativeness: A WPTSPN is said to be conservative if the tokens-number in the
remains constant.
It is obvious that conservativeness is a special case of structural delimitation and that coherence is a case of repetitiveness. Then this property can be partial, consistency and repetitiveness are the relaxations of the circulation of tokens in the places of the WPTSPN.
- Liveness: A transition is said to be alive if for each (
) there is a firing sequence which brings the WPTSPN to a CdM in which this tr transition is fired. An WPTSPN is active if each transitions (
) are active. If the WPTSPN is activated and correct, this indicates that there are no deadlocks in the FMS operations.
- Properness: if the initial marking CdM0 is accessible from each marking (
) in the accessibility set, the WPTSPN is said to be proper.
This property verifies that the tokens which represent the actors (worker) return to their place of origin before the each firing model’s transition for which they will always be available at the future firing (excution of an activity workflow FMS).
· Checking is based on randomly residence intervals associated with the token in workflow-places and the token life-cycle:
We keep the verification properties related to the firing transitions context, and we add other definitions related to the P-timed SPN contexts that we adopt in this work. Let DT is a finite time domain; Let t: time in finished time domain (
); Let state characterizing the WPTSPN graph situation be defined by a doublet SE = <CdM, Q>, where:
· CdM is the same as the previous definition of the WPTSPN marking function,
· Q is a time-of-stay application which associates with each token k (
) in place
(
) a real number
where
is the this token lifetime (the time elapsed since its arrival in place
). The
associated with a token k in the place
must be less than or equal to bi where
is the Randomly residence interval associated with the place
. This token k in the place
is involved in the activation and validation of its pO transitions when
age great. The token is considered dead when its lifespan (age) is strictly greater than
.
Note that the lifetime
of a token
(given by a local clock associated with it) is relative to this token arrival time in the place
. We suppose that the token k arrives in the place
at the instant
(given by a global clock for example), this token time duration is equal to zero. At the absolute instant
its lifetime is
. It participates in the validation of the output transitions of the place (
which contains it, only from the instant
, and it is dead from the instant
. Then, a token is dead if its lifetime becomes strictly greater than the upper limit of the dynamic interval associated with its host place and if none of its exit transitions is validated at this time. Therefore, a transition can be activated and validated in the semantics of autonomous PNs and not in the WPTSPN’s semantics because of time constraints.
· A transition (
) is potentially firable (validated in the semantics of model) from the state
if and only if:
- It is validated within the meaning WPTSPNs in this state, that is to say
(Card: function which counts the tokens number in input flow or respectively output flow)
, there is at least
tokens in the place such as:
and
is the dynamic interval associated with the place
. In addition, there are no j tokens (which do not participate in firing the tr transition) such as:
.
- Otherwise, this token is dead. It is, then, associated with this place interval:
.
Figure 2 illustrates the token life-cycle according to the firing semantics of the WPTSPN.
When we perform in the intersection of all these intervals (
, we associate an interval), we select the interval in which the transition remains potentially firable. According to the state SE notion, from a given state, an infinite number of states is generally accessible. There are, therefore, two possibilities of having this new state from an earlier state:
- the time fluidity (time passage);
- the transition firing (the potential firing interval lower limit is equal to zero from this new state).
Figure 2. Token life-cycle according to the firing semantics of the WPTSPN model.
· The state e’ accessibility from a previous state e (
):
- by a
time-flow: we note
, is verifiable if:
,
in the
place,
; where
(respectively
) is the token k lifetime in state e (respectively in state e’) and
is the dynamic interval upper bound associated with the place
.
- by firing a transition
if and only if:
can be firing directly (the lifetimes of all the marks which validate
are greater than or equal to the dynamic intervals lower bounds associated with their places) from e,
,
. When the tokens do not flow and keep the same lifetime in e and e’ (this is assumed to be an immediate transition), then we assume those tokens that are flowed or created have a lifetime (age) equal to zero. We note that the preceding firing rule allows us to determine the states and the state-space accessibility relations. The set of firing transitions’ sequences from the initial state characterizes the dynamic behavior of the WPTSPN.
According to the state analysis, either by time fluidity or by firing a transitions sequence, the WPTSPN verifiable properties are:
· An WPTSPN model’s state
is tokens-alive if all of the tokens in CdM are alive.
· A WPTSPN is token-alive for an initial CdM0 marking (the initial state e0) if all the markings accessible from CdM0 are token-alive states.
We adopt the hypothesis that if a token, in a cardinality marking a state accessible from e0, is verified dead, the WPTSPN is dead tokens. Consequently, this dead token no longer participates in the transitions validation. There are two objectives through which we can verify the token death upstream of a synchronization transition tr:
- the tokens on circuits containing it do not arrive at a compatible time in its entry places (
),
- the tokens, on the transition elementary oriented paths from parallelism to tr, do not arrive at compatible instants upstream of the transition tr.
· A transitions firing sequence (made up of the transitions and the associated firing time
is called a token-liveness sequence (k-v-sequence) if and only if each of the states accessible (
) by this transition sequence is token-alive states.
· A transition firing sequence (SE, u) is repetitive if, for a state
reachable from e0 (the initial state of graph states), e is accessible from e by the (SE, u) sequence transitions firing.
· A transition firing sequence (SE, u) is complete if it contains each of the transitions (
) composing the WPTSPN model. The WPTSPN model checking P-timed properties definitions help to adopt the tow following assumptions in [30] :
- If an WPTSPN has a repetitive and complete (tok-v-sequence), then this model has at least one operation which results in a steady-state after a finite time.
- If an WPTSPN is boundless, alive, and alive-tokens then each operation of the model results in a steady-state after a finite time.
After verifying the WPTSPN model’s probabilities according to two P- and T-timed orientations, we show our formal mechanism for predicting of the delay relative to the residence time of sac-token in timed places.
3.5. Delay Prediction Relative to the Randomly Residence Time in Model Place
In this subsection, we demonstrate the specificity in the delay prediction that is related to the token’ randomly residence time assigned in the model’ timed places. We include the Event-log related to WPTSPN model to provide delay semantics in the activities’ description. Let TD represent the temporal domain associated with the state firing sequence SE.
So, we define an Event Log by LEv = (SE, C, D):
· SE: states’ firing sequence set,
· C: cases finite set where each case specifies an FMS business process instance,
· D:
. A function to assign each event to time-space and classify it as a time function.
Each deterministic and stochastic transitions in the WPTSPN (
) are covered by the set SE. And, each SE/CdM states in the event log contain the C set. We can utilize a time capture approach based on a probabilistic aspect to assure the prediction of the delay associated to task execution in the business processes represented by our model. As a result, this model was integrated with an event-log (Eventlog : LEv) to predict remaining durations as well as the probability of execution delays. To induce the elapsed time required by the model, we use the same definition of a sequence of delays
, where
is the time elapsed before the occurrence of se0 and di is the elapsed time between occurrences of
and (
) The prediction method is based on:
· The enrichment of places with probabilistic delays in order to determine the duration of an activity and the associated stay time.
· To determine the probability of a decision outcome, assign weights to places.
· The probability density function associated with stochastic places determines the randomly residence time distribution.
· Using an adjacent algorithm in the WPTSPN to predict the residence delay based on the elapsed time.
A monitoring system that collects and records the FMS business process steps is required for our WPTSPN to be stochastically verified. According to this assumption, the time since the previous occurrence represents an information source that benefits the preacher in acquiring precise accuracy for the model. With the duration distribution, it is possible to visualize the conditional impacts on the remaining time. The formal representation is as follows:
·
: time space,
·
: timed transition,
·
: timed place,
·
: token,
·
: the duration distribution function,
·
: The differential function
becomes the generalized density function.
·
: the generalized truncated density function.
In a formal way, we denote that (
) represents time, tk token (
) and (
) is a timed place with the assigned static residence. Let (
;
) be tr the current place time sensor. Let GtruncatedΔ be the truncate delta function which captures the entire probability mass at a single point.
We aim to build an algorithmic prediction solution based on the immediate detection of events. It is assumed that the duration of each stay place is purely isolated from other independent activities. This hypothesis allows us to simplify the forecasting process while remaining within the norms of other prediction approaches.
To perform the forecast on a state case, we build the forecast algorithm with six entries:
· business process model, its states Graph representative or markings cardinalities graph,
· current moment noted t0,
· minimum time limit:
,
· maximum time limit:
,
· Nbt: activity Cases total number,
· activity current trace c which represents all the events observed up to the moment t0.
The organizational chart illustrates the prediction process, which begins with a case activity search taking place in the model or one of its representative SE states. It’s a SE graph in the WPTSPN that specifies all of the observed events in this scenario.
Notation: we use the same concept which is an alignment method for localizing the current state in the business process model by adjusting the (place/transitions). The next step is to arrange the results of the probabilistic simulation (tm, tM, MST(P), se, Nbr: iterations number). Based on the WPTSPN firing sequence states, the simulated case probability distribution type is established for each iteration. Despite the fact that their represented place’s probability density is the same, all cases are thought to be independent. The simulation operation is responsible for simulating the trace sequences in the restricted sampling model using conditioned truncated distribution densities without analyzing the transition source GDistrib(P). Then, the conditioned truncated distributions must be raised one more
(
) samples.
We must notice that the remaining durations are estimated using the empirical estimation method.
4. Study Case: Flexible Manufacturing Systems
We show in this section the potential of a modeling approach based on the WPTSPN model via an application of industrial modeling. This approach is composed of the specification, the verification, and the delay prediction. In this case study, we use our WPTSPN to specify, verify, analyze, and simulate the production process.
In addition, the modeling of flexible manufacturing systems (FMS) in order to specify, analyze, verify, and optimize a manufacturing system according to different criteria. So it’s a performance study to detect any source of failure. This objective is summarized in a study to evaluate and compare several models of manufacturing systems by selecting the most suitable according to specific pre-selection criteria [64] . Our modeling process combines new formal tools specific to WPTSPN, with those of SPN [63] [64] to formulate a clear and expressive approach to specification, analysis, evaluation, and the checking process. Also, most FMS’ stochastic modeling studies [67] [68] have focused on steady-state analysis based on metrics such as throughput, productivity, and lifetime [4] [63] [64] [69] .
We note that the application of our model and its adjacent tools to an FMS example corresponds to the production chain section represented in [4] . In the present work, we rely on mixed specification, analysis, and verification between timed transitions, timed places (random residence time), and lifecycle tokens to detect delay sources. Our approach to modeling a flexible production chain based on the WPTSPN covers concepts related to delays, the temporal properties of transitions, and the circulation of tokens endowed with randomly timed life cycles (activities, sub-activities, actors, etc.).
The FMS system architecture [4] (See (Table 1)), modeled by WPTSPN, is composed of machines served by conveyor belts [4] . The raw material automatically comes from an unlimited buffer representing the raw material stockyard. The time between the arrival of these materials is distributed randomly. Knowing that the raw materials flow into the conveyor belt according to a strategy based on predictions of breakdowns. It is possible to assume that these two operations specify the movements on the conveyor chain. Firstly, the first operation is deterministic (with Delta Time) and designates the transport time between the pallet and the input buffer of the production machine, denoted (location 7) [4] . Suppose that the conveyor belt injects the raw materials into (slot 7) which specifies both a machine-limited input buffer and a conveyor output buffer. Thus, to synchronize logistics, the production system adopts a rule that blocks the conveyor belt when the location is saturated (two rooms in location 7). Secondly, the machine execution service is specified by operation 6. In parallel, the system estimates the lifetime according to a stochastic law. To simplify the calculations, we consider that the service is always available [4] . The control system assumes a breakdown/repair sub-process of the production chain: The time between two successive breakdowns distributed according to a normal distribution [4] .
Figure 3 illustrates the production chain [4] represented by Bizagi Modeler [70] adopting the BPMN 2.0 notification. Table 1 explains the business process steps (operations) represented by the FSM workflow. The Workflow Nets (WF-Net) notion [8] [71] , based on a Petri Net modeling, was introduced by Van Der Aalest [72] [73] . Also, the refinements made Van Der Aalest [6] [63] exploit the Petri Net criteria by behaving like an intuitive graphical language which results in Workflow models whose definition is clear and precise. We cannot leave the profile of an end-user in charge of generating Petri nets which are rather the expert’s language in the field of mathematical modeling. The conversion [72] [73] from a WF-Net to a Petri Net necessitates the interpretation of states (of a Role, a Resource, or a Tool) as “places” and operations (of the same model), usually represented by squares, as “transitions” [71] [72] [73] [74] .
4.1. FMS Specification by WPTSPN
We adopt a conversion manual method of the WF-Net (represented by BPMN) to WPTSPN using the terms adapted by [71] [72] [73] [74] .
Figure 3. Flexible manufacturing systems modeled based on BPMN 2.1 notation.
Table 1. Description of the FMS-business process steps.
· The application field is an FMS-Workflow.
· The set of
: the actors set representing human resources allocated to a workflow.
· The workflow activities set named AC represents the finished product manufacture via an FMS business process.
· The set
the sub-activities to be executed sequentially or in parallel according to a work scheduling strategy on the production multiple lines.
· Places Specification:
The set
.
The model places, without taking into account the intermediate places, are explained by the Table 2.
The
places set represents intermediate places set represents the intermediate places (micro-places) when we adopt the splitting approach for non-immediate transitions (like in [7] ). Such micro-places’ role is to avoid the loss of tokens during the transitions splitting as explained in [7] . In specifying the FSM, P1 is deemed as an initial place and P10 is a final place.
· Transitions Specification:
Like in [7] , the WPTSPN is liable to distinguish between the three transition types (immediate, deterministic and stochastic). Each stochastic or deterministic model transition is divided into three micro-transitions (Trc, Trw, and Trp). The sub-model transition specification and the associated probability values are well described in Table 2.
Each model transition, whether stochastic or deterministic, is divided into
three micro-transitions (Trc, Trw, and Trp). Table 3 and Table 4 contain a detailed description of the sub-model transition specification as well as the corresponding probability values. Table 3 describes the transition Tr6 (which corresponds to Op6 in Table 1) as follows: (“Machine run operation”).
· Tokens Specification:
Three different token types are adopted by our WPTSPN, which is an FMS business process representation:
- A firing sequence triggered by the presence of a SAC-type token named sac1 specifies the finished product cycle, from its primary form to its packaging. In other words, the FMS workflow represented by the WPTSPN, started by P1 is considered as begin place contains sac1.
- To ensure the execution of the semi-automatic operations of the FMS workflow modeled by WPTSPN, we represent five types of tokens A having the execution agents’ role in the production section or the maintenance workflow. Place P0 is considered the workers’ park.
- An encapsulation tokens type comes from the places-entries of a non-immediate transition. This new token role guaranteed the non-loss of the tokens-entries during the division and the sequential micro-transitions firing.
4.2. FMS Model Represented by WPTSPN
In this subsection, with the development of the model WPTSPN representative
Table 3. The business process FMS transitions specification.
of the FMS business process. The specification phase is completed by this step which summarizes the previous subsection steps.
From the FMS workflow specified by our WPTSPN model representing an extension of model in [7] , we consider an abstraction with two levels:
· The first level presents the graphical PN representation via places, tokens randomly residence (stay), transitions, arc, tokens, and firing pre-conditions (see Figure 4(a)).
· According to a micro-level life cycle, the second level explains the micro places, micro-transitions, and their firing pre-conditions (tokens consumption phase, execution phase, and tokens production phase) (liken in [7] ).
To illustrate the micro-places and the micro-transitions, we present the abstraction-second level applied to the transition Tr6 in Figure 4(b). The Cardinality Marking Graph (Figure 5), State Graph based (Figure 6) on the timed places, Randomly residence (stay) time tokens, and tokens’ life-cycle shown earlier are helpful tools to interpret and verify the P-timed properties following a transitions firing sequence.
Figure 4. FMS business process represented with WPTSPN and Tr6 splitted into tree micro-transitions.
Figure 5. FMS represented by WPTSPN model cardinality marking graph.
4.3. FMS Model Checked Based on WPTSPN
The rules for conversion from a markings cardinalities graph CdM to a state graph G-SE are:
· each CdM is transformed into a state e;
· in case
comes from a
by firing an immediate transition of the WPTSPN, then a new state will not be considered and we associate a reversible arc in state
.
Table 5 illustrates the correspondence between SE states and cdM markings and their generating transitions.
According to the markings cardinalities graph and the states graph associated with the WPTSPN, we notice:
· According to the workflow semantics of the FMS system modeled by WPTSPN, the arrival of a sac1 type token in the place considered initial. Then the state e0 and cdM0 are interpreted as the start of the FMS management process.
· The state e4 and cdM6 are interpreted as the end of the FMS workflow.
· According to the hypothesis of state stability during the firing of an immediate transition [63] , we observe that two tr3 and tr4 generate a state of temporal stability despite the change in the marking cardinality based on ordinary circulation tokens.
· The firing of the tr7 transition generates, according to the semantics of the workflow [6] , a change in the state of the sub-activity sac1 from in-execution to suspended.
· Each firing sequence comprising the two immediate transitions tr7 and tr8 generate a return to the (cdM5, e2), so it is a firing circuit.
· The study of markings cardinalities graph allows us to notice that it is possible to fire three transition sequences:
;
;
. The s3 firing sequence ends with a transition providing the finished product (the sac1 token instead
Table 5. Markings cardinalities, states, and generating transitions in FMS management process.
Figure 6. FMS business process represented by States Graph.
P10), which contains no transition circuit, so its firing is assumed to be purely sequential.
The model’s properties are checked according to verification semantics based on T-timed:
· The WPTSPN associated with the FMS workflow for the firing sequence transition s3 is 9-bounded.
· The WPTSPN is not pure.
· The WPTSPN has no source transition.
· The transitions are quasi-live so the WPTSPN model is almost alive.
· Note that the WPTSPN has an accessibility problem when it reaches cdM6.
· We see that cdM5 and cdM8 are equivalent to what a firing circuit shows.
· The marking cardinality cdM5 has no successor. So it’s a deadlock.
· The WPTSPN is quasi-live, non-conservativeness, not proper, not balanced, and not sound.
The model properties specificity verifying based on the P-timed semantics and the tokens cycle life carried following a behavioral simulation of the FMS business process. So, the following subsection is dedicated to simulating the tokens’ randomly timed behavior in the places at the WPTSPN sequence s3.
4.4. FMS Model Simulation
A cardinality marking graph/state graph interpretation verifies that cdM6/e4 is the final state of the FMS business process. We select the transitions in three sequences
,
, and
lead to the final state.
The s3 sequence is preferred to be simulated since it does not contain circuits. In our firing and randomly residence time analysis, we try to apply the method adopted by the WPTSPN.
· Let
: the states’ firing sequence corresponding to s3.
· Let
: the places’ subset is involved in the s3 firing sequence.
· Let MIP3: the matrix of the places input-transitions involved in the transitions sequence s3.
· Let MPO3: the matrix of the places output-transitions involved in the transitions sequence s3.
· Let MIT3: the matrix of the transitions input-places involved in the transitions sequence s3. Let MTO3: the matrix of the transitions output-places involved in the transitions sequence s3.
Thus, the simulated system evolution depends on different situations according to the densities types (Exponential, Normal, and Log-Normal). To calculate the firing time of each transition as well as the tokens’ random stay in each timed place, we target the transitions firing sequence S3. A data collection specifying the parameters of our simulation solution must be provided as an input {places, MIP3, MPO3}, {transitions, MIT3, MTO3, times at the latest, and firing rates}, and the parameters related to the probability distribution type (
,
and
). Table 6 illustrates our simulation transitions basic data.
After retrieving the input data, our simulation process follows the following steps:
· Step 1: The gravity center method [48] [50] which is used by the
(
) function, is used to determine the firing time for each transition in the firing sequence (s3/se3). This function returns three-time values, one for each density type (exponential, normal, and log-normal). The outcomes of this stage are presented in Table 7: (sorting time with the gravity center method according to the three types of distribution and their cumulative values).
We note:
- EGFT: Exponential Gravity Center Transition Firing Time;
- NGFT: Normal Gravity Center Transition Firing Time;
- L-NGFT: Log-Normal Gravity Center Transition Firing Time;
- CEGFT: Cumulative Exponential Center Transition Firing Time;
- CNGFT: Cumulative Normal Center Transition Firing Time;
- CL-NGFT: Cumulative Log-Normal Gravity Center Transition Firing Time.
· Step 2: In this simulation phase, we calculate the cumulative firing time (
) for each transition
in its firing sequence order (s3/se3). Also, for each transition, the three cumulative firing time values (see (Table 7)) are the basis for determining token dwell times. Then, for each timed place applied to the sequence, the lower bounds of the static stay intervals are determined from the matrix MIP3. For each density type, the MEFIP3, MNFIP3, and ML-NFIP3 matrix are constructed to select each
Table 6. Simulation transitions basic input data.
Table 7. Each value of transitions gravity center firing time is expressed in minutes.
min-value row corresponding to the lower sac-token boundary at the current timed place (random residence).
· Step 3: In this third phase, we fix a random residence interval upper limit, which is assigned to a token in each timed place occurring in the sequence s s3/se3. For each density type, the MEFIT3, MNFIT3, and ML-NFIT3 matrices are elaborated to select the minimum value of each column corresponding to the upper limit of the token’s stay.
After determining the randomly residence limits for each sac-token in WPTSPN’ timed place, we clarify that stochastically using the density functions according to the three distributions. Figure 7 represents the sac-token’ randomly residence distributions in the timed place P7.
· The last step is summed up in determining for each place its three means of the stay time according to the gravity center method using the function
, (
).
Table 8 illustrates the three randomly residence of all sac-token in the place P7, its average residence times according to the three densities (exponential, Normal, and Log-normal), and a token sac1 cycle-life according to the time horizon.
Figure 7. Token random residence time in the place P7 according to the three densities.
Figure 8 specifies the process of determining the stay dynamic interval according to the place P7 and the decision about the token’s life-cycle, according to its time sensor value. The token sac1 arriving in the place P7 following the transition tr5 firing is equipped with an automatic time sensor. This time sensor can activate a perception operation of the Randomly residence and compare its value, triggered from the first moment in the place, with the MST(P7).
The following subsection shows our delay detection and prediction process related to the randomly residence time in a firing sequence.
4.5. FMS Business Process Prediction Delay
The verification and simulation, allow us to detect a delay problem of the execution time relating to the operation op6 of the FMS business process, knowing that the latter is specified by the transition tr6. So, we determine the cumulative
Table 8. Three randomly residence intervals of the token sac1 and their life cycle in the place P7.
Figure 8. Process of determining the stay dynamic interval and the decision about the token’s life-cycle.
transition sequence firing time (s3/se3), after that, we check this delay indicated in the Figure 9. This figure illustrates the cumulative firing time, according to the three densities, for each transition making up the sequence. The delay detection step launches the prediction process linked to the tokens random residence in timed places. We apply the same prediction process to the micro-places, which are obtained following the division mechanism adopted by the model WPTSPN).
The model prediction approach requires converting the cardinality markings graph and/or the state sequence graph to Event-log: Lev, matching each cdM/se in Event. According to our FMS workflow simulation and verification results, firing sequence transitions denoted s3/se3 create a delay risk in FMS execution. Therefore, we propose a delay prediction procedure based on the algorithmic aspect illustrated in Figure 8. Knowing that the delay causes the token death in timed places during the transitions firing sequence. So, we use a prediction process based on a density truncation with the three possible distributions. This last process is illustrated by Algorithm 1.
An illustrative example of the truncated randomly residence densities is applied to sac-token in P7 and shown in Figure 10. According to our model of transitions division approach (like in [7] ), it is possible to apply the truncating process at the second level (micro-places), as illustrated in Figure 11 and Figure 12.
Knowing that the two places (P17, P18) are considered as two micro-places preventing the splitting mechanism of the tr6 transition. As our model based on the no interpretation hypothesis of immediate transitions, then
does not temporally generate interpretable micro-states.
So, the immediate micro-transition
densities’ truncation is not performed (like in [7] [48] ). The delay margin calculating the operation is based on subtraction between the time corresponding to the gravity center stay of the
Figure 9. The firing time of all transitions in s3/se3 according to all densities adopted by the WPTSPN model.
Figure 10. The firing times of all transitions in s3/se3 according to all truncated densities adopted by the WPTSPN model.
Figure 11. All the randomly residence densities in the micro-place P17 truncated.
Figure 12. All the randomly residence densities in the micro-place P18 truncated.
truncated density and the truncation time. After that, a statistical set is generated by observing the truncation operations on the densities. The empirical mean and empirical variance are determined for each density, with the confidence interval forming the aim around the truncation times delayed estimations. Since the statistical population number is reduced, we adopt the empirical estimate method in [7] and [75] .
Table 9 illustrates the prediction results based on our truncation process applied to P7, P17 and P18 micro-places. Thus, we determine the delay margins for truncated density. To explore the numerical values meaning in Table 9, we note:
· LST: Lower Limit of Stay Interval;
· TT: Truncated Time or Gravity Center Stay Time;
· EM: Empirical Mean of Truncated Densities;
· EMS: Empirical Margin of Stay;
· EL: Empirical Likelihood;
· CM: Empirical Confidence Margin.
The temporal analysis of tokens’ random residence in timed places adopted by our WPTSPN, shows that if we use an exponential density, then the stay-delay tends towards stability. So, Figure 10 shows a uniformly distributed truncated stay density on the time horizon. According to Table 9, we notice that the stay margin distributed with the log-normal density gratitude is compared to that distributed with the normal one. Also, in the FMS business process evolution, the tr6 transition favors the end of production because of a maintenance sub-process. The proposed model applies the prediction tool to the micro-places which result from the transitions division mechanism. We note that the prediction process, oriented towards the P-timed context, requires retrospection on the past input transitions firing time, and a future vision (estimation) of the transitions firing time output.
Table 9. Three randomly time residence intervals in the places P7, P17, and P18 truncated.
5. Conclusions
In this article, we propose an extension of stochastic Petri nets [63] named WPTSPN and which combined with Workflow-Nets [6] . This extension endowedwith an orientation P-Timed [30] [58] with (sojoun) residence times of the tokens determined randomly using the centers of gravity assigned to the density functions [31] . We apply their specification and verification approach in the context of the FMS Workflow [76] . In addition, the random residence time of tokens in timed places and the mechanism for triggering transitions are determined not only by the stochastic and deterministic aspects but also by other conditions adapted to the FMS context. The micro-steps are formally represented respectively by micro-places (micro-transitions [7] ) and sequentially concern the consumption, the execution of the task (sub-activity), and the production of tokens. The latter allows us to distinguish and locate, in a precisemanner, any type of execution failure. Our verification process adopted by the WPTSPN can bejustified by a state space based on the state graph, which represents firing sequences to control and localize shared resource conflicts.
We note that this model is enriched by formal tools based on the elapsed time to predict the remaining time and estimate the residence time (residence) of the tokens in the timed places during a firing sequence of a state. The residence time (stay) of the tokens in each model timed place, representative of an FMS, also indicates the expiration time of the primary or semi-finished material.
On the one hand, in our future work, we want to expand the expressiveness of the WPTSPN by incorporating the sharing of resource restrictions [76] , the interdependence between the time of activities [77] , and the performance evaluation of synchronous operations [30] [31] . This may be accomplished utilizing model transformation approaches, fluid Stochastic Petri Net models [26] , or RecatNets models [78] , which can be used to drive the tool to automatically change the development of the BPMN model into a WPTSPN like in [74] and [71] .
The WPTSPN, on the other hand, can be enriched with formal tools to cover a dynamic workflow context, ensuring the dynamic display of real-time performance and checking the dynamic workflow criteria to effectively assess the system’s strengths and weaknesses according to personalized criteria.