This function is part of Process Mining (PM) functions in Axcel and generates a process animation. This function animates the cases stored in an event log on top of a process model. Each case is represented by a token that travels through the process model according to the waiting and processing times of activities.
AXCEL.PM.PROCESS.ANIMATION(data, [type], [colored], [coordinates], [zoom])
The AXCEL.PM.PROCESS.ANIMATION function syntax has the following arguments:
data Required. This is a table of events. Input data could be provided in 4,5, and 6 column formats.
Data should be structured in the order of record, process, resource, and timestamp as follows:
|record 1||process x||resource y||2012-01-02T12:23:00.000+01:00|
In this format, Axcel assumes that all processes are “complete” and every event is an individual process.
Data should be structured in the order of record, process, resource, start_time and end_time as follows:
|record 1||process x||resource y||2012-01-02T12:23:00.000+01:00||2012-01-02T12:46:00.000+01:00|
Data should be structured in the order of record, process, resource, timestamp, status and handling_id as follows:
|record 1||process x||resource y||2012-01-02T12:23:00.000+01:00||start||1|
|record 1||process x||resource y||2012-01-02T12:46:00.000+01:00||complete||1|
type Optional. By default Axcel uses absolute type but user can define “absolute”, or “relative”. Here is the definition of each:
- Absolute frequency of flows
- Relative frequency of flows
colored Optional. By default (TRUE), Axcel shows tokens with different colors based on allocated resources. If set FALSE, all tokens are shown in single color red.
coordinates Optional. By default, Axcel set the position of the nodes in a way to provide an optimal view of the process. If you would like to set the position of nodes manually, you should define it in a table as follows:
|activity||latitude (x)||longitude (y)|
If you use a map to show the positions (please see zoom), you need to define latitude and longitude of nodes. Otherwise, you define the positions in a X-Y plane. Also, please note that you need to define all positions as well as the start and end positions which must be defined as ARTIFICIAL_START and ARTIFIIAL_END, respectively.
zoom Optional. If you defne coordinates as explained above, you need to set zoom level for creating maps. If you define coordinates in a X-Y plane, you need to set this variable to 0.
Here is an example based on patient-hospital operation data. You can pull this data by executing AXCEL.DATASETS(“hospital-process-mining”). Considering you pulled your data in cell A1#, you need to run:
After execution, the details of the event is shown in the console and a process animation is also generated in the task pane:
In another example we use the dataset called “example-log” from Axcel datasets which you can pull by running AXCEL.DATASET(“example-log”). Assuming this data is pulled at cell A1, we can show the process animation on a map by running:
which generates a graph as presented below:
Alternatively, you can present this process in a X-Y plane. In our example, you need to run:
which generates this graph: