BearCrow

Simulate models with sustainability info, and process and visualize the simulation results.

ℹ️ About

The plugin works by extending Scylla, a business process simulator, by processing sustainability information of a business process, passing it through the Scylla simulation, and outputs data insights.

Why is sustainability information important?

Provides insights into the environmental impact of business processes/activities.

What is Cost Driver(CD)?

Cost Driver is the term used to describe the cost of an activity. Here we abbreviate them into CD. Abstract cost driver (ACD) is a category consuming resource and causes environmental impact. Concrete cost driver (CCD) is the concreteized case of ACD. Take Delivery packages in our life, delivery can be considered as an ACD while delivery by a lorry or bicycle can be its CCD.

What is the Cost Variant?

Cost variants govern what specific combinations of concretizations can occur during individual process instances based on the environmental cost driver hierarchy. In other words, what sets of concrete environmental cost drivers can, during process execution, take the place of the abstract environmental cost drivers during activity execution?

What are LCA Scores?

A quantified score of environmental impacts associated with the life cycle of a commercial product.

🎯Objective

Whilst the concern for the world’s ecosystem seems to grow, industries need to measure how much their business processes impact the environment. Thus, considering the environmental impacts of business processes has become an important factor that needs to be considered. Business process model and notation (BPMN) has been introduced to organizations to allow them to construct models of their business processes. Within this business process exist activities that contain further information about the activity itself. Scylla is a BPMN simulator being used in the case, the plugin is an extension of Scylla by dealing with the additional sustainability info.

More information can be found in our report.

🛠️ How to run it?

[For Developers]

  1. git clone our repository
  2. Download and add Scylla.jar and scylla-tests.jar into libs
  3. Navigate to src/main/java/cost_driver/Main and run.
  4. Select the desired configuration files in the samples UI and check "cost_driver" as a plugin.
Screenshot 2024-01-17 at 23 10 06 5. The logged data files will be found in a folder with the format: "output_yy_mm_dd...."

NOTE

*1. Please remember to put the latest scylla.jar & scylla-tests.jar files in the ./lib folder
*2. Another way of managing the plugin is by replacing the current Scylla dependencies, with the following. Please ensure you are using the latest Scylla package

      <dependency>
            <groupId>de.hpi.bpt</groupId>
            <artifactId>scylla</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>de.hpi.bpt</groupId>
            <artifactId>scylla</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <scope>compile</scope>
        </dependency>

[For users]

  1. Download the latest version of scylla.zip
  2. Download our plugin package cost_driver.zip
  3. Unzip them
  4. Create a directory "samples" under Scylla and put desired samples in
  5. Double click scylla.jar and obtain the UI as step 4 above

A demo video can be found here.

🧱 Components

Three Plugins are cooperating to achieve this.

Global Configuration Parser Plugin

Parses the global config file which describes the abstract CDs and their children, concreteCDs with details that it consists of:

<bsim:costDriver>
    <bsim:abstractCostDriver id="[Abstract Cost Driver ID]">
      <bsim:concreteCostDeiver id="[Concrete Cost Driver ID]" cost="[LCA Score]"/>
      <bsim:concreteCostDeiver id="[Concrete Cost Driver ID]" cost="[LCA Score]"/>
	...
    </bsim:abstractCostDriver>
	...

Simulation Configuration Parser Plugin

Parses the simulation config file which describes the cost variant by ID, frequency of occurrence, and cost:

<bsim:costVariantConfig>
      <bsim:variant id="[Cost Variant ID]" frequency="[double]">
        <bsim:driver id="[Abstract Cost Driver ID]" cost="[Cost]"/>
      </bsim:variant>

Logger Plugin

Logs the extended simulation data as an XES and XML file.

Results

The results will be shown in two files, *.xes and *_statistic.xml.

Event log (enclosed with .xes)

The event log is composed of a sequence of activity instances. We put the activity cost, process cost reference Abstract Cost Driver, and Concrete Cost Driver inside so that the utilization of resources used is clear.

<trace>
	<string key="concept:name" value="cost[Process_Instance_ID]"/>
	<string key="cost:Process_Instance" value="[Total Cost]"/>
	<string key="cost:variant" value=[Cost Variant A]/>
	<event>
		<string key="cost:driver" value=[Abstract Cost Driver(Concrete Cost Driver): [cost]]/>
		<string key="cost:driver" value=[Abstract Cost Driver(Concrete Cost Driver): [cost]]/>
		<string key="concept:name" value=[Activity]]/>
		<string key="lifecycle:transition" value="[state]"/>
		<date key="time:timestamp" value="2023-12-25T09:00:00+01:00"/>
		<string key="cost:activity" value=[activity cost]/>
	</event>
	...
</trace>

Aggregated sustainability information (enclosed with _statistic.xml)

The outputted file shows a complete detailed breakdown of sustainability info. Explanation of nodes moving downwards:

<Sustainability_Info>
    <Average_Cost_Variant_Cost id="[id]">[cost]</Average_Cost_Variant_Cost>
    ...
    <Average_Process_Instance_Cost>[cost]</Average_Process_Instance_Cost>
    <Activity_Cost>
        <Activity id="[id]">
            <Activity_Average_Cost_Variant_Cost id="[id]">[cost]</Activity_Average_Cost_Variant_Cost>
            ...
            <Activity_Average_Cost>[cost]</Activity_Average_Cost>
        </Activity>
        ...
    </Activity_Cost>

    <Activity_Instance_Cost>
        <Activity id="[id]">
            <Cost_Variant id="[id]">
                <activity_instance_cost ProcessInstance_IDs="[IDs]" count="[counts]">[cost]</activity_instance_cost>
            </Cost_Variant>
            ...
        </Activity>
        ...
    </Activity_Instance_Cost>
</Sustainability_Info>

References:

Pufahl, L., & Weske, M. (January 2018). Design of an Extensible BPMN Process Simulator. Retrieved from https://www.researchgate.net/publication/322524759_Design_of_an_Extensible_BPMN_Process_Simulator?enrichId=rgreq-55dc4561329b473ce8f8871f05e56dba-XXX&enrichSource=Y292ZXJQYWdlOzMyMjUyNDc1OTtBUzo1OTU2ODQ2MDQ1MjY1OTJAMTUxOTAzMzY4NTAwNg%3D%3D&el=1_x_3&_esc=publicationCoverPdf
Ng, K. Y. (1996). An Algorithm for Acyclic State Machines. Acta Informatica, 33(4), 223–228. https://doi.org/10.1007/BF02986351