This function is part of Process Mining (PM) functions in Axcel and generates a resource 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.RESOURCE.ANIMATION(data, [type], [colored], [coordinates], [zoom])
The AXCEL.PM.RESOURCE.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 process. 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 resources. If you would like to set the position of nodes manually, you should define it in a table as follows:
In this table, you define the latitude and longitude of resource nodes. 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. This should be greater than 0. Otherwise, Axcel does not generate a map.
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 resource animation is also generated in the task pane:
In another example we use the dataset called “example-log-resource” from Axcel datasets which you can pull by running AXCEL.DATASET(“example-log-resource”). Assuming this data is pulled at cell A1, we can show the resource animation on a map by running:
which generates a graph as presented below: